Checkpoints are often used in automation testing to validate a properties of an object. You record your actions and in order to check that the results are according to your expectations you define a checkpoint.
Verification can be performed by clicking a Verify button on the recorder widget when doing the recording:
Verifying that login is successful would mean to validate the property of an object present on the first page after log on. During recording, you choose a static property of an object to be checked at execution.
Choose a value on this screen to be checked during test execution so that it would validate that the test went well until this checkpoint. In this example we would verify a control text property. As a recommendation, it is best to choose a value that is likely to stay the same and that is specific to this SAP flow. In this example we will use the Verify action to check that after logging on to SAP the text of the top control you may see in the screenshot above contains the text “SAP Easy Access”.
Start a Recorder and connect and login to your SAP system.
Click on Verify button on the Recorder widget and click on the value you want to verify; in our case it will be the text “SAP Easy Access” of the top control.
Save the recording.
When the test execution will get to this step in will check that the value stored in the Qualibrate data set contains the value recorded for that control; in this specific case: “SAP Easy Access”. If the verification result is True, Qualibrate will continue the execution with the next task step. Otherwise, you will be prompted with an error.
If the SAP application will get updated afterwards and the text of this control will change, the value stored in the Qualibrate data set should be updated, too. Otherwise, the result of the Verify action will be False.
To see more information related to the recorded action expand the Recorder widget by clicking on the down-arrow next to the task name.
Expanded Recorder widget extra details:
User Action: Verify
Parameter name: P_GUITITLEBAR_TITL
Parameter type: INPUT
Recorded value: SAP Easy Access
For more configuration options please select the Configuration button of the Recorder option.
The Step Configuration window will be displayed showing BASIC configuration with the following information:
Select control property:
Current property value:
Verification test result:
The Select Control Property drop-down enables you to choose from the control property from the dropdown list.
There are also many options for the operations you want to include in the Verify action:
Greater than or equal to
Less than or equal to
Does not contain