Creating object checkpoints

As in run-of-the-mill scripts in Keyword Tests, we can add the checkpoints. In this recipe, we will consider a simple example of Object Checkpoint creation.

Getting ready

Launch the Calculator Plus application (C:Program Files (x86)Microsoft Calculator PlusCalcPlus.exe).

How to do it...

To create an Object Checkpoint, it is necessary to complete the following actions:

  1. In the list of Operations, select the Checkpoints element and drag-and-drop the Object Checkpoint element to the place in the test where you are going to add the checkpoint (in our example, we are using a new test with no actions whatsoever).
    How to do it...
  2. In the opened Create Object Checkpoint window, drag-and-drop the sign of the target onto the text field of the calculator.
  3. Click on Next three times, and then click on Finish.
    How to do it...
  4. In the result, checkpoints of the object, that is, the text field of the calculator, will be added to the test.
    How to do it...

How it works...

With the help of Object Checkpoint, it is possible to check several properties of the object at once (for example, text, visibility, availability, and any others).

The object itself will be stored in the project element of Stores | Objects. In the future, all the verifiable properties can be changed, if needed.

See also

  • In this recipe we have taken up the process of Object Checkpoint creation, and that—quite briefly. If you would like to learn in greater detail about creation parameters and checkpoint editing possibilities, refer to the Creating object checkpoints recipe from Chapter 3, Scripting.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.163.62