Checking Pages
In this section, you will 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.
In the Keyword View, expand (+) Action1 > Welcome: Mercury Tours.
Highlight the Book a Flight: Mercury row in the Keyword View. The page is displayed in the Active Screen.
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.
Highlight Page: Book a Flight: Mercury (the top level) and click OK.
The Page Checkpoint Properties dialog box opens.
When you run the test, QuickTest checks the number of links and images in the page and the load time, as described in the pane at the top of the dialog
box.
QuickTest also checks the actual target URL of each link and the actual source of each image.
Accept the default settings and click OK.
QuickTest adds the page checkpoint to your test. It is displayed in the Keyword View as a checkpoint operation on the Book a Flight: Mercury page.
3 Save the test.
Choose File > Save or click the Save button.


No comments:
Post a Comment