Saturday, November 20, 2010

Check Points

A checkpoint enables you to identify whether the Web site or application under test is functioning correctly or not by comparing a current value for a particular property with the expected value for that property.
After we 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 is being performed. We can change the name of the checkpoint if
needed.
Types of Checkpoints:
1.Standard checkpoint

2.Image checkpoints

3.Bitmap Checkpoint

4.Table checkpoints

5.Accessibility Checkpoint

6.Text Checkpoint

7.Page Checkpoint

8.Database Checkpoint

9.XML checkpoints
Standard checkpoints allow checking the object property values in the Web site or application under test. Standard checkpoints evaluate (compare) the expected values of object properties captured during recording to the object's current values during a run session. For example we can check that a radio button is activated after it is selected. Standard checkpoints are supported for all add-in environments.
Standard checkpoints can be used to perform checks on
Images,
Tables,
Web page properties, and
Other objects within your application or Web site.
Standard checkpoints can be created for all supported testing environments (as long as the appropriate add-in(s) are loaded).
Image checkpoints allow you to check the properties of an image in the application or Web page. For example, you can check that a selected image's source file is correct or not. An image checkpoint can also be created by inserting a standard checkpoint on an image object. Image checkpoints are supported for the Web add-in environment
With Bitmap Checkpoint we can check an area of a Web page or application as a bitmap. While creating a test, we have to specify the area to check by selecting an object. An entire object or any area within an object can be checked. Bitmap checkpoints are supported for all add-in environments
By adding table checkpoints to the test, we can check the content of tables displayed in the application. For example, we can check that a specified value is displayed in a certain cell. Certain environments also support checking the properties of the table object. For example, a check that a table has the expected number of rows and columns. A table checkpoint can also be created by inserting a standard checkpoint on a table object.
Accessibility Checkpoint recognizes areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines.For example, check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines. Accessibility checkpoints are supported for the Web add-in environment
QuickTest can check that a text string is displayed in the appropriate place in an application or on a Web page with Text Checkpoint. Text checkpoints are supported for the Web add-in environment, plus some Web-based add-in environments
Page Checkpoint checks the features 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. A page checkpoint can also be created by inserting a standard checkpoint on page object. Page checkpoints are supported for the Web add-in environment
The contents of a database accessed by your application can be checked by Database Checkpoint. Database checkpoints are supported for all add-in environments
By adding XML checkpoints to your test, you can check the contents of individual XML data files or documents that are part of your Web application. The XML Checkpoint option is supported for all add-in environments

QTP Shortcut Keys

QTP Shortcut Keys

Be a Smart key
 
Ctrl + N- Creates a New Test
Ctrl+Shift+N- Creates a New Business Test
Ctrl+Alt+N- Creates a New Application Area
Shift+Alt+N- Creates a New Function Library
Ctrl+O- Opens an Existing Test
Ctrl+Shift+O- Opens an existing business component
Ctrl+Alt+O- Opens an existing Application Area
Shift+F2- Rename the Action name
Ctrl+M- Make the comment on current row
Ctrl+Shift+M- Remove the comment
Ctrl+Space- Completes the word if you are typing any VBScript method or object in Expert View
F12- For Standard Checkpoint
Ctrl+F12- For Standard Output Values
F7- Step Generator
F8- New Step in Keyword View
Shift+F8- New Step after block of statement
F3- Recording
F4- Stop the Recording
F5- Run the Script
Ctrl+F5- Run the selected step in the script
Ctrl+R- Open the object repository
Shift+Alt+F3- Analog Recording
Ctrl+Shift+F3- Low Level Recording
F11- Step Into
F10- Step Over
Shift+11- Step out
Ctrl+F10- Run to Step
Ctrl+T- Adds the selected item in the Watch tab
Ctrl+F7- Check the Syntax error in the script.
Ctrl+Page Up or Page Down- Toggles between the Keyword and Expert View.