Identifying properties are element properties that are used to look up the
element during test execution. To add an element you must specify at least
one identifying property.
Identifying properties
The following identifying properties are available:
Think of the identifying properties as filters for elements. Every specified
property will further reduce the set of matching elements. For example
specifying both Text and Color will look for elements
that have the text content and the corresponding color.
If your application supports several platforms, the element identifying
properties may differ per platform. Suitest allows you to specify a
separate set of identifying properties per platform.
During the test execution Suitest will automatically determine the platform
for which to load the identifying properties based on what platform is
supported by the device.
Saved elements properties can be edited via the "Edit" button once a saved element is selected.
In edit mode the properties picker is active, clicking on saved elements, mouse selection or view
structure will grab the element properties and show the changes.
In edit mode the "Update all" button is available. This updates the properties of the element if the
element is currently present on the devices screen. This can be used to update the elements state when
the apps state changes.
Allows you to take a baseline element, edit it and then save it as a new element. You will need to change
the Name and API Id of element to make sure it is unique.
When you add an element to the repository Suitest looks it up in the
application's view tree and collects some data about the current state of that
element. We call this data "a baseline snapshot
of the element properties". When you later make assertions in your tests
Suitest autocomplete them with the data from the baseline snapshot.
You can save one baseline snapshot per platform. To make sure that the data in
the snapshot is trustworthy it is best to create the snapshot when connected
to a device on which the application is known to work.
Sometimes you might need to copy an element from one application to another. For example, if you are using a white label app.
You can import or export elements to and from the Element repository. This can be done while viewing or editing elements. The element is exported with all its properties in JSON format.