Creating verification points in a test

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 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:
  1. In HCL OneTest UI, open the test script and in the Test Contents area, click an action item for which you want to create a verification point.
  2. 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.
  3. 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 objects attribute. Click the add attribute line button add attribute line to add a new attribute. You can click the remove attribute line button remove attribute line button to remove an attribute.
  4. 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 apps and Android apps.
  5. Save the test.
    Note: You can add image properties, other properties and values to the step using the drag and drop method from the SmartShot View. For details, see Creating verification points from the SmartShot View.