Creating a verification point

A verification point checks the value of one or more UI elements in a window of the app under test. The verification point is added as follows. Open the view of an active test specification. The view shows all screens of the test case related actions. Click on the ‘Edit’ button in the upper right corner of the form.

veri image 1

Select the window on which you want to add the verification point. Do this by selecting the checkbox displayed just above the upper left corner of the window.

veri image 2

This selection indicates that the window will be used for an operation. The available operations are listed in the upper right part of the form. Click on the ‘Copy’ button. This will copy the window. Create the verification point on the first occurrence of the copy. The second occurrence will execute the action.veri image 3

Click on the first occurrence of the copied window. The detail view opens. This window displays the result of a search operation for pasta recipes. The search resulted in two recipes. The verification point will check the number of found recipes and the title of the window.

veri image 4

Click on the edit button in the upper right corner of the form. The form goes into edit mode. All elements that can be changes get a pencil icon next to them. This form was to perform an action. It needs to be changed into a verification point. Click on the icon right to the Action title.

veri image 5

Select in the displayed list the ‘Verification Step’ entry.

veri image 6

Move with your pointer on the image of the window. The different UI elements will highlight. Put the pointer on the menu of the window and click. On the right hand site, the form displays the selected UI element and its parents. The title of the window is a textInfo element.

veri image 7

Click on the textInfo link. A form with available attributes to check opens. The left column lists the available conditional operators. In this case there is just one operation, the ‘exists’ operation which returns true if the UI element exists in the window. In the right column the attributes of the UI element are listed. The ‘text’ attribute is the one to verify. Click on the ‘text’ link.

veri image 8

A new form opens with the available check for this attribute.

veri image 9

The value of the text attributes is a string. For string values only the left column applies. In our case, the exact value of the string needs to be matched. Click on the ‘equals to string’ link. The entries in the left column are:

String conditions Description
Equals to string The value of the attribute is matched against a specified string. Both strings need to be equal in order to return the value true
Matches a regular expression The value of the attribute is matched against a specified regular expression. If the full value matches the regular expression, the condition returns ‘true’.
Matches a similar string The value of the attribute must match a specified similar string. Two strings a similar if the letters in the string are almost the same. For example: ‘Forgot password’ and ‘Password forgotten’ are similar strings.

If the value of the attribute is a numeric value, then the checks of the right column can apply. These checks are:

Numeric conditions Description
Equals to number The value of the attribute equals to a specified number.
Is greater than The value of the attribute is greater than a specified number.
Is greater than or equals The value of the attribute is greater than or equals a specified number.
Is lesser than The value of the attribute is lesser than a specified number.
Is lesser than or equals The value of the attribute is lesser than or equals a specified number.

The value against which the condition is executed can be a constant value, a value from a data point, a value from a data table or the value of an iterator. If the condition is against a constant value, then the value can be filled in the edit field. As soon as the value is typed, click on the button with the V mark.

veri image 10

The first part of the verification point is now defined. Click on the ‘Done’ button in the upper right corner of the form.

veri image 11

In order to add the second condition of the verification point, click on the edit button in the upper right corner of the form. The form changes into edit mode. A new condition can be added, in this case both the old and new condition need to be both true in order to have a successful verification. Click on the ‘Add’ button. This will create a verification whereby both conditions need to be true.

In case if at least one of both conditions must be true, click on the ‘… or’ button. In this case the old and new condition will be put in an ‘or’ statement meaning that the verification point will be successful if at least one of both conditions is true. In the sample, a condition is added by clicking on the ‘Add’ button.

veri image 12

In the second condition, the number of found elements for the search will be checked. This is done by checking the number of elements of the list object. Point with the mouse on an UI element inside the list and click. In the object tree section, you get the element and the parents of the element. One of the parents is the list object. Click on the list object.

veri image 13

The form with the attributes of the list object opens. Select the attribute ‘getNumberOfItems’ of the list object.

veri image 14

Since this attribute denotes a number value, the ‘equals to number’ condition is selected in the sample.

veri image 15

Again, the number to check against can be a constant value, value from an iterator, a value from a data point or a value coming from a data table. In the sample, the number to check against is a constant value, i.e. the value ‘2’. Fill in the value 2 the edit field and click on the ‘V’ marked button.

veri image 16

The second condition is now completed. The ‘Done’ button in the upper right corner of the form is clicked to confirm the completion.

veri image 17

The final verification point now looks like:

veri image 18