Adding a Bitmap Checkpoint While Editing the Test in QTP in Testing

To add a Bitmap Checkpoint while editing first we have to run a test and after that we can add the checkpoint for it.

  1. Make sure the Active Screen button is selected; see:

    Active- Screen.jpg

     
  2. Click a step in the Keyword View to add a checkpoint. The Active Screen displays the Web page or application corresponding to the highlighted step; see:

    Highlighted-Step.jpg
      
  3. Right-click an object in the Active Screen and choose Insert Bitmap Checkpoint. If the location you click is associated with more than one object, the Object selection- Bitmap Checkpoint Properties dialog box opens; see:

    Insert -bitmap-checkpoint.jpg

  4. Select an object from the tree on which to create a bitmap checkpoint; see:

    Object -Selection.jpg

  5. Click OK. The Bitmap Checkpoint Properties dialog box opens. A bitmap of the object you selected in the previous step is displayed in the dialog box; see:

    Checkpoint-property-dialog-box.jpg

  6. In the Name box, either accept the name that Quick Test assigns to the checkpoint or specify another name for it.

    Name-checkpoint.jpg

  7. If you want to check a specific area of the object, click the Select Area button. Use the cross-hairs pointer to specify the area you want to select. That instructs Quick Test to check only the selected area and to ignore the remainder of the bitmap.

    Select-Area.jpg

     
  8. If you want to save only the selected area of the object with your test, select the Save only selected area check box. The Test Results window displays only the selected area of the bitmap.

    Save-only-Area.jpg

  9. Specify the Checkpoint Timeout if you want to define the time interval during which Quick Test attempts to perform the checkpoint successfully.

    Timeout-Checkpoint.jpg

  10. Click OK to add the bitmap checkpoint. A checkpoint statement is added for the selected object in the Keyword View and Expert View.

    Expert- View-bitmap-Checkpoint.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all