Monday 27 May 2013

CheckPoints in QTP

QuickTest enables you to add checks to your test. A checkpoint is a verification that compares the current value for specified properties of an object with the expected value. This helps you to identify whether your application is functioning correctly.


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

Types of CheckPoints-

You can insert the following checkpoint types to check objects in an application-


Standard Checkpoint-  Checks property values of an object in your application. For example, you can check that a radio button is activated after it is selected or you can check the value of an edit box. 
Standard checkpoints are supported for all add-in environments.

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. Image checkpoints are supported for the Web add-in environment.

Bitmap Checkpoint-  Checks an area of your application as a bitmap. For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. Using the bitmap checkpoint, you can check that the map zooms in correctly. 
You can create a bitmap checkpoint for any area in your application. Bitmap checkpoints are supported for all add-in environments.

Table Checkpoint-  Checks information within a table. For example, suppose your application contains a table listing all available flights from New York to San Francisco. You can add a table checkpoint to check that the time of the first flight in the table is correct. 
Table checkpoints are supported for all add-in environments that have a Table test object. Table checkpoints are also supported for some list view objects, such as WinListView and VbListView.

Text Checkpoint-  Checks that a text string is displayed in the appropriate place in an application. For example, suppose a Web page displays the sentence Flight departing from New York to San Francisco. You can create a text checkpoint that checks that the words "New York" are displayed between "Flight departing from" and "to San Francisco". Text checkpoints are supported for most add-in environments.

Text Area Checkpoint-  Checks that a text string is displayed within a defined area in a Windows-based application, according to specified criteria. For example, suppose your Visual Basic application has a button that says View Doc <Num>, where <Num> is replaced by the four digit code entered in a form elsewhere in the application. You can create a text area checkpoint to confirm that the number displayed on the button is the same as the number entered in the form. 
Text area checkpoints are supported for all Windows-based environments, such as Standard Windows, Visual Basic, and ActiveX add-in environments.

Accessibility Checkpoint-  Identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines. For example, guideline 1.1 of the W3C Web Content Accessibility Guidelines requires you to provide a text equivalent for every non-text element. You can add an Alt property check to check whether objects that require the Alt property under this guideline, do in fact have this tag. Accessibility checkpoints are supported for the Web add-in environment. 

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 page checkpoint by inserting a standard checkpoint on a page object. Page checkpoints are supported for the Web add-in environment. 

Database Checkpoint-  Checks the contents of a database accessed by your application. For example, you can use a database checkpoint to check the contents of a database containing flight information for your Web site. Database checkpoints are supported for all add-in environments. 

XML Checkpoint-  Checks the data content of XML documents in XML files or XML documents in Web pages and frames. For more information on XML checkpoints, see XML Checkpoints. 
The XML Checkpoint (Web Page/Frame) option is supported for the Web add-in environment. The XML Checkpoint option is supported for all add-in environments.


No comments:

Post a Comment