Saturday 19 September 2015

Checkpoints in QTP

A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property. This enables you to identify whether your Web site or application is functioning correctly according to expected value or not.

Methods in adding Checkpoints to a test:
There are several ways to add checkpoints to your tests.
  • We can add checkpoints while recording
  • We can add a checkpoint while editing your test

Add checkpoints while recording:
We can add checkpoints while recording the test. We can use the commands on the Insert menu, or click the arrow beside the Insert. Then we click on the Checkpoint button on the Test toolbar. This displays a menu of checkpoint options that are relevant to the selected step in the test script
Add check points while editing the script:
We right click on the step where we need to insert the check point and then we will be opened with the insert option and click on the checkpoints and select required checkpoint which is relevant to the test script written. We can even use active screen and from menu to insert a checkpoint in a script.
Types of Checkpoints:
A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property. This enables you to identify whether your Web site or application is functioning correctly or not.They are as follows .
  • Standard Checkpoints
  • Text/Text area Checkpoint
  • Bitmap Checkpoint
  • Database Checkpoint
  • Accessibility Checkpoint
  • XML Checkpoint

Standard Checkpoint:
Checks values of an object’s properties Image Checkpoint Checks the property values of an image Table Checkpoint Checks information in a table Page checkpoint Checks the characteristics of a Web page
Text / Text Area Checkpoint:
Checks that a text string is displayed in the appropriate place in a Web page or application window
Bitmap Checkpoint:
It checks an area of a Web page or application after capturing it as a bitmap
Database Checkpoint:
It checks the contents of databases accessed by an application or Web site
Accessibility Checkpoint:
It Identifies areas of a Web site to check for Section xxx compliance
XML Checkpoint:
It checks the data content of XML documents and .xml documents in Web pages and frames.
The table gives us clear view of types of checkpoints available and what all the properties they are going to check.


Type
Description
Standard Checkpoint
Verifies the property values of an object in application under test and supported by all add-in environments.
Bitmap Checkpoint
Verifies an area of your application as a bitmap
File Content Checkpoint
Verifies the text in a dynamically generated or accessed file such as .txt,.pdf
Table Checkpoint
Verifies the information within a table. Not all environments are supported.
Text Checkpoint
Verify if the text that is displayed within a defined area in a Windows-based application, according to specified criteria.
Text Area Checkpoint
Verifies if the text string is displayed within a defined area in a Windows-based application, according to specified criteria.
Accessibility Checkpoint
Verifies the page and reports the areas of the Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines
Page Checkpoint
Verifies the characteristics of a Web page. It can also check for broken links.
Database Checkpoint
Verifies the contents of a database accessed by the application under test.
XML Checkpoint
Verifies the content of the .xml documents or .xml documents in Web pages and frames.


Generally in QTP the standard and Data base checkpoints are by default enabled while testing a stand alone application in windows.

No comments:

Post a Comment