|
QuickTest Professional (QTP) Questions and Answers
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(Continued from previous part...)
What's Checkpoints for QTP?
A checkpoint verifies that expected information is displayed in your application while the
test is running.
QuickTest Professional offers the following types of checkpoints:
|
Checkpoint Type
|
Description
|
Example of Use
|
|
Standard Checkpoint
|
Checks values of an object’s properties.
|
Check that a radio button is selected.
|
|
Image Checkpoint
|
Checks the property values of an image.
|
Check that the image source file is correct.
|
|
Table Checkpoint
|
Checks information in a table.
|
Check that the value in a table cell is correct.
|
|
Page Checkpoint
|
Checks the characteristics of a Web page.
|
Check how long a Web page takes to load or if a Web page contains
broken links.
|
|
Text / Text Area Checkpoint
|
Checks that a text string is displayed in the appropriate place in a Web page or application window.
|
Check whether the expected text string is displayed in the expected locatio
|
|
Bitmap Checkpoint
|
Checks an area of a Web page or application after capturing it as a bitmap
|
Check that a Web page (or any portion of it) is displayed as expected.
|
|
Database Checkpoint
|
Checks the contents of databases accessed by an application or Web site
|
Check that the value in a database query is correct.
|
|
Accessibility Checkpoint
|
Identifies areas of a Web site to check for Section 508 compliancy.
|
Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines.
|
|
XML Checkpoint
|
Checks the data content of XML documents.
|
Note: XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML
document within a Web page.
|
How to add a standard checkpoint in your test ?
1. Start QuickTest and open your test.
In the Open Test dialog box, locate and select your test, then click
Open.
2. Save the test as Checkpoint.
Select File > Save As. Save the test as Checkpoint.
3. Confirm that the Active Screen option is enabled.
If you do not see the Active Screen at the bottom of the QuickTest window,
click the Active Screen button, or choose View > Active Screen.
4. Locate the page where you want to add a standard checkpoint.
5 Create a standard checkpoint.
In the Active Screen, right-click element in your application and choose Insert
Standard Checkpoint.
6 Save the test.
How to add a page checkpoint to your test?
The page checkpoint checks that the number of links and images in the page when
you run your test is the same as when you recorded your test.
1 Locate the page where you want to add a page checkpoint.
2 Create a page checkpoint.
Right-click anywhere in the Active Screen, and choose Insert Standard
Checkpoint. The Object Selection - Checkpoint Properties dialog box opens.
Note that this dialog box may include different elements, depending on
where you click in the Active Screen.
3 Save the test.
(Continued on next part...)
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|