Checkpoint: is a method used to check
the content before and after the step, i.e. it is used to compare the expected
value with the actual value displayed in the application, these checkpoints can
be customized according to the requirements.
The checkpoint can be added
while recording the application or it can be added after the recording is
completed using Active screen (For adding Checkpoint after recording the Active
screen must be enabled while recording)
Once the checkpoint is
added, the QTP adds a checkpoint to the current row in keyword view and adds a
checkpoint statement to the expert view.
The types of checkpoint are,
1)Standard Checkpoint:
The standard checkpoint
checks the object property values in an application or a webpage.
It checks objects like
Radio buttons, combo boxes, images, Tables, Web page properties, links etc.
The Table checkpoint can be
used to check all the values in the table, it can be created by inserting
standard checkpoint on the table.
The page checkpoint can
also create by inserting standard checkpoint on the object; the page check
point can be used to check the time taken to load a webpage.
2)Bitmap Checkpoint:
The Bitmap checkpoint can
be used to check an area of a webpage or an application as a bitmap. It checks
that particular area by pixel to pixel comparison between actual and expected
images.
3)Image Checkpoint:
The Image checkpoint is
used to check the properties of an image in the application or a webpage like
verifying the selected image source file is correct or not.
The difference between
Bitmap checkpoint and Image checkpoint is in Bitmap Checkpoint we can check the
images on pixels basis where in Image checkpoint it cannot be done.
4)Text Checkpoint:
The Text checkpoint is used
to check the expected text from an application or a web page. It can be a
specific region or a small portion of the text displayed.
5)Database Checkpoint:
The Database checkpoint is
used to check the database accessed by the application.
This checkpoint creates a
query during record time and the database values are stored as the expected
values. The same query is executed during run time and the actual &
expected values are compared.
6)XML Checkpoint:
The XML checkpoint checks the data content of XML documents in XML files or XML schema related to the webpage.
The XML checkpoint checks the data content of XML documents in XML files or XML schema related to the webpage.