Specifying the expected content

You can verify whether a response contained specified content.

With the test or a test page selected, the Enable Content VPs menu selection opens the Create/Enable Content Verification Point dialog box, which you use to select the text string(s) that you want a content verification point to look for in multiple responses throughout the test or test page. From this dialog box, you define a content verification point and then insert it in all or specified responses throughout the test or test page, using the Skip, Enable All, or Enable buttons.

As shown in the figure, if you are editing a Siebel test, the dialog box initially contains strings that are of interest in Siebel applications. Otherwise, only the User-defined category is present. If a string that you want the verification points to look for is not present, create it:
  • To create a new string by editing an existing similar string, click it and click Duplicate.
  • To create a new string from scratch, click New String.
See ./taddcontentvpstring.html for details.

With a single page request or request response selected, the Enable Content VPs menu selection inserts a single content verification point folder in the specified response.

Defining content verification points from the Test Element Details and from the Create/Enable Content Verification Point dialog box are similar. You can edit a specific content verification point in the Test Element Details that you inserted from the Create/Enable Content Verification Point dialog box. In the following instructions, only the first two steps are relevant when you are editing in the Test Element Details.

To define a content verification point:

  1. Set Verification fails if to either at least one of the checked strings is found or to none of the checked strings are found.
  2. In the list of strings in the Text area, check the strings that the content verification point should search for.
  3. Click Skip to advance to the next response without inserting the content verification point in the current response. If the scope is the test, the initial response is the first response in the test. If the scope is a test page, the initial response is the first response in that page.
  4. Click Enable All to insert the verification point into every test response (if the scope is the test) or every page response (if the scope is a page in the test).
  5. Click Enable to insert the verification point into the current response.
  6. Click Close when done.

Parent topic: Adding verification points to a test

Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.