QTP – Introduction to Checkpoints

Every test case will be having an “Expected Result” and during the execution, this needs to be compared with the “Actual Result” to verify whether the application under test is working properly as expected. QuickTest Professional provides an excellent feature called “Checkpoints” to accomplish this.

As the meaning of the word “checkpoint”, it compares the run time value for a specified property of an object to the existing value for that property.

There are eight different checkpoints available in QTP:

  1. Standard checkpoint
  2. Text checkpoint
  3. Text Area checkpoint
  4. Bitmap checkpoint
  5. Database checkpoint
  6. Accessibility checkpoint
  7. XML checkpoint (From an application)
  8. XML checkpoint (From a source)

To access the checkpoints in QuickTest:

Click Insert –> Checkpoint –> click on the desired checkpoint

Below figure shows the same.


Standard Checkpoint:

This type of checkpoint is used to verify the property value of an object during runtime. We will try to record a test, insert a checkpoint, and verify the expected result.

Test Scenario:

Record the below test steps on Flight sample application.

  1. Login with appropriate credentials
  2. Insert a new order
  3. Verify the new order inserted (Insert Checkpoint)

Once the steps 1 & 2 are done, then insert the checkpoint:

  1. Click Insert—> Checkpoint—> Standard Checkpoint
  2. Click on the Edit box containing label “Insert Done..” (ActiveX Threed Panel Control)
  3. Some properties are selected by default (enabled, height, width, x, y)
  4. Uncheck these check boxes
  5. Select “text” property
  6. Click OK



Below is the code generated after the record:

SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "admin"
Dialog("Login").WinEdit("Password:").SetSecure "4e9197d45a68ae7082b90807ff0c70a4ad5011f7"
Window("Flight Reservation").ActiveX("MaskEdBox").Type "120312"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Denver"
Window("Flight Reservation").WinComboBox("Fly To:").Select "London"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "Joseph"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").ActiveX("Threed Panel Control").Check CheckPoint("Threed Panel Control")
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"

Execute the recorded test and open the test result.  Result contains the checkpoint status. Go through the below figure.


Since the property “text” is selected while inserting the checkpoint, only that value is compared with the run time value and the status is set as “Passed”.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.