froglogic / Blog / Squish tip of the week: How does Squish find objects?

Squish tip of the week: How does Squish find objects?

A critical component to any automated gui testing solution is how objects are identified and interacted with

Squish uses the Object Map to store select properties, and their values or othe object real name, which is then referenced by scripts using a symbolic name.

Example: An OK button

Real name
{text='Yes' type='QPushButton' unnamed='1'
visible='1' window=':Address Book - Delete_QMessageBox'}
Symbolic name
:Address Book - Delete.Yes_QPushButton
Object Map Entry

click to zoom

Should the Yes in the button change to Confirm or OK, simply update the property value in the Object Map, and no changes are required in your scripts.

In this case as well, the ‘window’ property value is dynamic, and can be handled with a regular expression or wild card from within the Object Map (or within the script directly) If using an image-based solution, such dynamic changes become a maintenance nightmare.

Changes to objects in an application are handled quickly and from a central location – no updating screenshots or XPaths to objects (however XPath is supported as an option). Additional properties can be added, or undesired or unneeded properties can be removed from an object’s real name as well. The key is the extensive flexibility the Object Map profiles, along with the accuracy with which it can find and interact with objects. Learn more about object vs image-based object recognition

Read more about how Squish finds objects below

Leave a Reply

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

Copy link
Powered by Social Snap