< Previous | Next >

Lesson 6: Creating a verification point

In this lesson, you add a verification point to the test that you created previously.

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 comparison 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.

  1. Start by opening the test that you recorded in Lesson 4: Recording a test. If the test is not already open, double-click the test in the Test Navigator to view the test in the test editor.

    As shown below, the Test Contents window of the test editor displays the chronological sequence of steps in the test. If you used the UICatalog application to record the test, the test looks like this:

    Generated test

    The test editor consists of four quadrants, with two quadrants across the top, and two at the botton. To the right of the Test Contents window is the Details window.

    The Details window displays details about the currently selected step in the test. Here is what the Details window looks like when the second step in the test is selected.

    User Action Details

    Note: The full name of the Details window varies, depending on the step that is selected in Test Contents. For example, in this case, the window is named User Action Details.

    The lower half of the test editor looks like this:

    Test editor lower half

    The lower left quadrant is the Mobile and Web UI Data window, which includes two tabs: Screen Capture and Elements. To the right of that is the Properties window, which shows the properties of the selected object.

    Now that you have familiarized yourself with the basic layout of the test editor, add a verification point. The purpose of this verification point is to verify that the OK button is selected.

  2. In the Test Contents window, select the step Click item at Position 3 in Table view.

    See how the UICatlaog app is displayed below in the Screen Capture window.

    UICatalog app in Screen Capture window

  3. Now, in the Test Contents window, select the step Click on Button 'OK'.

    The Alerts page of UICatalog is now shown in the Screen Capture window. The Details window shows that the Button object is identified by its title, and the actual title is labeled OK.

    Button object identified by Title

  4. Back in the Screen Capture window, scroll down until you see the OK button selected.

    OK button in Screen Capture window

  5. Right-click the highlighted OK button and click Create Verification Point for Title.

    A verification point is added to the test as a new line in the Test Contents window - Verify that Title equals OK on button.

  6. Click File > Save.
  7. Run the test.

In the Mobile and Web UI report a successful verification point is displayed as follows:

Lesson checkpoint

In this lesson you learned about verification points and the test editor.
You learned the following things:
  • About the different parts of the editor
  • How to create a verification point
< Previous | Next >

Feedback