Skip to main content

Squish tip of the week: Picking additional properties for that 'Hard to Find' object

When dealing with a non-standard, dynamic or hard to find object, additional or alternate object properties may be required to properly identify the object.

Topics discussed:

  • Using the Pick tool
  • Adding new object properties to an Object Map entry
  • Validating the updated Object Map entry

NOTE

If you haven't worked with the Pick tool before, I recommend scanning (at minimum) the following documents before proceeding:

Using the Pick tool

  1. Launch your AUT, and navigate to the object of interest
    • Click the Launch AUT button, and manually navigate to the object of interest OR
    • Set a break point just prior to the object of interest, and run your script to the break point
  2. Click the Pick tool, and select the object of interest in your application.

    click to zoom

Adding additional object properties to an Object Map entry

  1. Right-click on the object in the Application Objects list and select Add to Object Map
  2. Right-click the object again, and select Copy Symbolic Name
  3. Click the Object Map button (to the right of the Test Suite drop-down list), and paste the copied symbolic name in the search box
  4. Select the search result to view the object's Real Name properties and values

    objectMapWithObjectProperties

  5. Identify an object property in the Properties list which may provide additional information when finding the object, right click and select Copy Property Name
  6. Click New in the Real Name section of the Object Map, and paste the copied property name in the Name column
  7. Copy or enter the property's value from the Properties list, and enter the value in the corresponding row's Value column.

    realNameProperties

Validating the updated Object Map entry

Use the Check Existence and Highlight Object* buttons to confirm Squish can find the object using the updated real name.

highlightObject

*Highlight Object is not available for Web applications

Further reading

Comments

    The Qt Company acquired froglogic GmbH in order to bring the functionality of their market-leading automated testing suite of tools to our comprehensive quality assurance offering.