“Objects” are the Fundamental Building Blocks for UFT Test Automation & its necessary that you fully understand the concept of Objects & Object Identification. In this post let’s see what does “Objects” really mean!
Say you want to open Google in a browser >> Enter a keyword in the search bar >> Click ‘Google Search’ >> Select the first result hyperlink — all this using UFT Test Automation. What will be your first steps?
- Open browser
- Identify Address/Location bar
- Action: Enter Google.com
- Action: Hit Enter button
- Identify Search textbox
- Action: Enter keyword
- Identify ‘Google Search’
- Action: Click ‘Google Search’
- Identify the first result hyperlink
- Action: Click on the hyperlink
Now every Automation tool (including UFT Test Automation) uses a “human” like technology for the ‘Identify’ steps above. It’s all about “Objects”. Textbox, Button, Image, Checkbox, Dropdown, Hyperlink, etc. – everything which is visible in an application is known as “Object”. UFT Test Automation is all about identifying these “Objects” in the application and the subsequent “Actions” to-be-performed on it.
For example a simple statement like
Browser(”Google“).Page(“Google”).WebButton(“Google Search”).Click
directs UFT to identify Browser with Title ”Google“ >> Page with Title “Google” (within Browser ) >> WebButton with Name “Google Search” (within Page) >> Perform Click action on this button.
To be continued: UFT Object Model & Object Identification
Looking for a Job Change in QA/Testing technology? Get Regular Job notifications @ WhatsApp!