Automation Testing Basics UFT Basics

UFT Classes #4: “Objects” – The fundamental building blocks for UFT Test Automation!

“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!

UFT Objects

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?

  1. Open browser
  2. Identify Address/Location bar
  3. Action: Enter Google.com
  4. Action: Hit Enter button
  5. Identify Search textbox
  6. Action: Enter keyword
  7. Identify ‘Google Search’
  8. Action: Click ‘Google Search’
  9. Identify the first result hyperlink
  10. 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.

UFT Object Identification

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

Save

Save

Save

Save

Save

Save

Save

Save

Leave a Reply

Your email address will not be published. Required fields are marked *