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:
Enter the text against which criteria is matched. This value is typically a property reference, such as LASTRESPONSE.
Enter the Start and End of the range.
Select the step to be executed, if no match is found.
Specifies the action to take or the step to go to if the test fails because of an environment error.
Default: Abort the test.
Selected by default. This option compresses the responses in the test case file.
In this table you can add, move, and delete entries by clicking Add, Move, and Delete. The columns in the table are as follows:
Selected by default when you add an entry. Clear to ignore an entry.
Enter a unique name for the case response entry.
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.)
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.
Select an option for the Compare type from the list:
Allows for the update of the step response for an entry.
Updates the criteria string for an entry.
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.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|