You can create verification points for any object properties,
such as label, color, and count, and you can verify that an object
property is enabled, that it has focus, whether it is clickable, and
so on. You can create verification points while recording a script
or afterwards.
Before you begin
You can create verification points in the tests that are
created from Android, iOS, hybrid or Web UI applications.
About this task
Verification points verify that an expected behavior occurred
during a run, or verify the state of a control or an object. When
you create a verification point, you capture information about a control
or an object in the application to establish this as baseline information
for comparison during playback. When you run a test, the property
is compared to see whether any changes have occurred in the application,
either intentionally or unintentionally. This is useful for identifying
possible defects when an application has been upgraded for example.
An error is reported if the expected behavior did not occur.
Procedure
To create verification points:
- In Rational® Test Workbench , open the test script and in the Test
Contents area, click an action item for which you want
to create a verification point.
- Click the insert button and select Verification
point for Android, iOS or Web UI, depending on the target
application. Alternatively, right-click the selection or click Options and insert in
the test editor to select the menu item.
- In the Test Element Details section
select a value for the Graphic object and Verify
attribute artifacts identified as required for the action
selected. Some artifacts are dependent on others, so when you select
an attribute, you must select the values required for the options
related to the selected attribute. To combine several attributes for
the selected object, select the choice all of and
select the object’s attribute. Click the add attribute
line button to add a new attribute. You can click
the remove attribute line button to remove an attribute.
- Optionally select the Retry verification point
until attribute is verified or time out expires and enter
a value for the time out. The values
in the graphic object and attributes lists are different for web UI
apps and Android apps.
- Save the test.