Page title verification points verify that the primary
request for a page returns the expected page title. If the returned
title is unexpected, the test log reports a failed verdict event.
Although the comparison is case-sensitive, it ignores multiple white-space
characters (such as spaces, tabs, and carriage returns).
Procedure
- In the Test Navigator, browse to the test and double-click
it. The test opens.
- Right-click the test name or a page, and select Enable
Page Title VPs. Your choice determines whether
the verification point is added to all pages in the test or to one
page.
- Click the page title to display the editing fields in the Test
Element Details area.
- Ensure that the Expected page title field
shows the string that you expect to be included in the response. Although
you can change the string, the value listed is what was returned between
the <title></title> tags during recording.
What to do next
You can also change the preferences so that Page Title verification
points are set automatically. To do this:
- Change the HTML page title. Click , and select HTML Page Title. This changes subsequent tests
that you record.
- Optionally, regenerate existing tests with the changed preference,
as shown in Generating a new test from a recorded session.