Sunday, 26 July 2015

QTP CHECKPOINTS WITH EXAMPLES


CHECK POINT:
            Checkpoint is defined as validation pointer test point which checks the objects state or bitmap state or data state during execution at any point of time

Operational over view of checkpoint:
            Checkpoint works in two phases

i.     Pre-execution Phase:
·    It captures the expected value
·    Generates the corresponding test script statement
ii.   While-execution phase:
·    It captures the actual value
·    Compared the actual value with the expected value
·    Displays the result

Types Of Checkpoints:
a.    Standard checkpoints
b.    Bitmap checkpoint
c.    Text checkpoint
d.    Text area checkpoint
e.    Data base checkpoint
f.     XML checkpoint

a.    Checkpoints:

Standard checkpoint is used for checking the standard GUI objects properties value it can be inserted through application

Navigation through application:

·         Keep the cursor in the desired location
·         Keep the tool under recording mode
·         Activate the menu item insert
·         Go to checkpoint
·         Select the option standard checkpoint
·         Click on the desired object in the AUT
·         Click on OK
·         Select the desired properties to be checked
·         Specify the desired expected values
·         Click on OK
·         Stop Recording



(b) Bitmap checkpoints:
                        Bitmap checkpoint is used for checking the complete bitmap or a part of a bitmap. It can be inserted in through application
Navigation through application:
·         Keep the cursor in the desired location of the screen
·         Keep the tool under recording mode
·         Activate the menu item insert
·         Select the option bitmap check point
·         Click on the desired bitmap
·         Click on OK
·         If at all one need select a part of bitmap then select it using the select area button
·         If at all one need save only the selected part then select the check box save only selected area
·         Click on OK



 (C). Text Checkpoint:
                        Text checkpoint is used for checking the text present on a specified object. It can be inserted in through application

Navigation through application:
·         Keep the cursor in the desired location of the screen
·         Keep the tool under recording mode
·         Activate the menu item insert
·         Click on check point
·         Click on text checkpoint
·         Click on the desired text
·         Select the following option
o   Match case
o   Exact match
o   Ignore space
o   Text not displayed
                                           Click on OK

 (d) Text Area Check Point:
                                  Test area checkpoint is used for checking the test presenting a specified area. It can be inserted only through the application but not through the active screen





Navigation through application:

·         Keep the cursor on the desired location of the screen
·         Keep the tool under recording mode
·         Activate the menu item insert
·         Select the opinion text area checkpoint
·         Select the exact area through cross hair pointers
·         Choose the following options
o   Match case
o   Exact match
o   Ignore space
o   Text not displayed
·         Click on OK
·         Stop Recording

(e) Data Base Checkpoint:
              Data base check point is used for checking the contents of the data base





Navigation:
·         Activate menu item insert
·         Go to check point
·         Select the option data base checkpoint
·         Select the option specify AQL statement manually
·         Click on meet
·         Click on create
·         Click on new
·         Select the desired driver
·         Slick on next
·         Click on finish
·         Click on select
·         Select the desired database
·         Click on ok
·         Click on ok
·         Click on ok
·         Specify the designed query statement
·         Click on finish
·         Select the desired contents to be checked
·         Select one of the following option
o   Before current step
o   After current step
·         Click on ok


(f) XML Check Point:
                                  XML is a universally understandable language which is mainly used for data information
Note: XML check point is used for checking the contents of an XML file

     Navigation:
·         Activate the menu item insert go to check point
·         Select the option XML check point
·         Browse the desired XML file
·         Click on OK
·         Select the desired contents to de checked
·         Select one of the following option
o   Before current step
o   After current step
                                           Click on OK

No comments:

Post a Comment