Locating specific types of test elements

A test script can include multiple requests and responses with many test elements and attributes. To locate elements of a specific type in the Test Contents area, click Select. The results are displayed in a table, and you can sort the table columns. This option is also useful for viewing attributes of test elements that are the same type.

Procedure

  1. In the Test Navigator, browse to the test and double-click it.
    The test opens.
  2. To restrict the search to specific instances of elements, select them in the test. For example, you might want to search for text in specific responses, rather than in all responses.
  3. Click the test editor tree to give it focus, and then click Select.
    A list of element types opens. This list is generated dynamically based on the contents of the test. For example, if a test does not contain verification points, they are not listed.list of element types
  4. To include only the elements that you selected, select Restrict To Highlighted Elements.
  5. To include only the elements that contain specific text from the Test Contents area, select Use Filter Text.
  6. Select the type of test element to view from the list.
  7. If you selected Use Filter Text, enter the filter text in the prompt, and then click OK.
    To use regular expressions in the filter text, click the Search Options icon to the right of the prompt, and then select Regular expression. By default, if Regular expression is not selected, the asterisk (*) and question mark (?) are interpreted as wildcard characters. To search for a URL that contains an asterisk or question mark, type a backslash (\) before the asterisk or question mark.

Results

The Test Element Details area displays the results under the heading Multiple Items.

Example

The following example shows results for an HTTP request. Other protocols might display less detailed information. Double-click a table row to locate the element within the test.HTTP results of clicking Select