Friday, December 10, 2010

Checkpoints in QTP

Checkpoints:
Checkpoint is a verification point that compares a current value for a specified property with the expected value for that property.

When you add a checkpoint, QuickTest adds a checkpoint to the current row in the Keyword View and adds a Check Checkpoint statement in the Expert View. By default, the checkpoint name receives the name of the test object on which the checkpoint was created.

Types of Checkpoints:
1.      Standard checkpoint: checks the property value of an object in your application
2.      Image checkpoint: checks the value of an image in your application. For example, you can check that a selected image's source file is correct. You create an image checkpoint by inserting a standard checkpoint on an image object.
3.      Bitmap checkpoint: checks an area of your application as a bitmap.
4.      Table checkpoint: checks information within a table. You create a table checkpoint by inserting a standard checkpoint on table object.
5.      Text checkpoint: checks that a text string is displayed in the appropriate place on a Web page or application.
6.      Text-Area checkpoint: checks that a text string is displayed within a defined area in a Windows-based application
7.      Page checkpoint: checks the characteristics of a Web page. For example, you can check how long a Web page takes to load or whether a Web page contains broken links.You create a table checkpoint by inserting a standard checkpoint on page object.
8.      Database checkpoint: checks the contents of a database accessed by your application
9.      Accessibility checkpoint: identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines.
10.  XML checkpoint (from Application): checks the data content of XML documents in Web pages and frames.
11.  XML checkpoint (From resource): checks the data content of XML documents in XML files

Note : Database and XML from resource checkpoints can be inserted without record mode (Shown below).
QTP Checkpoint creation
QTP > Checkpoint creation


Screenshots of various Check points in QTP (Click on the images to enlarge):

1.      Standard Checkpoint:
QTP Standard Checkpoint
QTP > Checkpoint : Standard
2.      Image checkpoint:
QTP Image Checkpoint
QTP > Checkpoint : Image

3.      Bitmap checkpoint:
QTP Bitmap Checkpoint
QTP > Checkpoint : Bitmap

4.      Table Checkpoint:
QTP Table Checkpoint
QTP > Checkpoint : Table

5.      Text checkpoint:
QTP Text Checkpoint
QTP > Checkpoint : Text

6.      Text-Area checkpoint:
QTP Text Area Checkpoint
QTP > Checkpoint : Text-Area

7.      Page Checkpoint:
QTP Page checkpoint
QTP > Checkpoint : Page

8.      Database checkpoint
QTP Database Checkpoint
QTP > Checkpoint : Datablase

9.      Accessibility checkpoint:
QTP Accessibility Checkpoint
QTP > Checkpoint : Accessibility

10.  XML checkpoint (from Application):
QTP XML Checkpoint (Application)
QTP > Checkpoint : XML (Application)

11.  XML checkpoint (from Resource):
QTP XML Checkpoint (Resource)
QTP > Checkpoint : XML (Resource)


No comments:

Post a Comment

Please leave your comment here...