Bitmap Checkpoint in QTP 9.2

Bitmap checkpoint captures the expected bitmap of an object while recording. During a run session if the actual bitmap matches the expected bitmap returns a pass to the test result or a fail otherwise. It is always better to insert a bitmap checkpoint while recording and not on the active screen because the active screen might not have updated the latest bitmap and any change in the screen might throw a fail.


How to insert a bitmap checkpoint in QTP 9.2


We will insert a bitmap checkpoint for a disabled FLIGHT button and run the script and then we will enable the FLIGHT button and run the script and see the difference.

1. Open a Blank Test in QTP.

2. Open the Flight Reservation application and stay in Insert Order window.

3. Click Record button. In the record and Run settings Window, select the Windows Application Tab select the Radio Button for “Record and Run test on any windows based application. Click OK.

4. Now go to Insert > Checkpoint Select Bitmap Checkpoint.


5. Now the cursor will change to hand sign. Also the Quick Test will minimize and only the Flight Reservation Application will be active on the screen.

6. Select the FLIGHT Button which in Disabled State.


7. Click OK on the Object Selection – Bitmap Checkpoint Properties.

8. Now the Bitmap Checkpoint Properties window will be opened where in you can check which are of the bitmap image you want to display and also can change the checkpoint timeout and click OK button.


This line of code is displayed.

Window("Flight Reservation").WinButton("FLIGHT").Check CheckPoint("FLIGHT")

Now run the script and you will see that QTP will record a pass in the Test Result.



Lets try to run the script with a small change in the Flight Reservation Application.

Now in the Flight Reservation enter the Date of Flight, Fly From and Fly to. Now the FLIGHT button is Enabled. Now go back to the script and run the script and see that the test result will throw fail status because while recording the expected result is disabled and the actual result while play back is enabled.




Generally Bitmap check point is used specially to check the images on your application or sites to find out any variation in the pixel or color etc.

1 comments:

w3webschool said...

Nice post By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
Digital Marketing Training India

Post a Comment

/* Tynt Insight tracker ----------------------------------------------- */