Previous Topic: Convert XML to Element ObjectNext Topic: Compare Strings for Next Step Lookup


Compare Strings for Response Lookup

The Compare Strings for Response Lookup step is used to inspect an incoming request to a virtual service and determine the appropriate response. You can match the incoming requests using partial text match, regular expression, and others.

This step is automatically filled out and added to a virtual service when using the Virtual Web Service HTTP Recorder.

To open a step editor, click the step.

Complete the following fields:

Text to match

Enter the text against which criteria is matched. This value is typically a property reference, such as LASTRESPONSE.

Range to match

Enter the Start and End of the range.

If no match found

Select the step to be executed, if no match is found.

If Environment Error

Specifies the action to take or the step to go to if the test fails because of an environment error.

Default: Abort the test.

Store responses in a compressed form in the test case file

Selected by default. This option compresses the responses in the test case file.

Case Response Entries

In this table you can add, move, and delete entries by clicking Add, Move, and Delete. The columns in the table are as follows:

Enabled

Selected by default when you add an entry. Clear to ignore an entry.

Name

Enter a unique name for the case response entry.

Delay Spec

Enter the delay specification range. The default is 1000-10000, which indicates to use a randomly selected delay time from 1000 through 10000 milliseconds. (The syntax is the same format as Think Time specifications.)

Criteria

This area provides the response of this step if the entry matches the Text to match field. To edit the criteria, in the Criteria Column area select the appropriate row, and enter a different setting in the criteria list. Click Enter to update it in the subsequent row.

Compare Type

Select an option for the Compare type from the list:

Response

Allows for the update of the step response for an entry.

Criteria

Updates the criteria string for an entry.

Response

This area provides the response of this step if the entry matches the Text to match field. To edit the response, in the Case Response Entries area select the appropriate row, and enter a different setting in the Response list. To get it updated in the previous row, click Enter.