Update Responses

ldt Portal lets you update the response that is associated with a specific transaction. You can also add and delete responses.
dts103
DevTest
Portal lets you update the response that is associated with a specific transaction. You can also add and delete responses.
2
Change the Think Time of a Response
Each response for a specific transaction includes a field named
Think time spec
. This field specifies how long to wait before sending the response. If the virtual service was created from recording, the initial value is based on the response behavior that was observed during the recording.
To simulate faster performance, decrease the value.
To simulate slower performance, increase the value.
By default, the value is in milliseconds. To specify the unit of time, add a suffix to the number. Case does not matter. The following suffixes are allowed
:
Suffix
Description
Example
t
milliseconds
50t
s
seconds
10s
m
minutes
2m
h
hours
1h
You can specify a number range. The think time is randomly selected from the range. For example, the value
100-1000
specifies a random think time from 100 to 1000 milliseconds.
If the think time is 10 milliseconds and it takes 5 milliseconds to process the request and find the response, you only incur an extra 5 milliseconds of delay.
If the think time is 0, or is less than the time that it took to process the request, the
VSE
sends the response as fast as it can.
The unknown responses in a virtual service have the same field.
When you deploy a virtual service, you can configure a related field named
Think time scale
. This field specifies the percentage by which to multiply all of the
Think time spec
fields in a virtual service.
Follow these steps:
  1. Open a virtual service.
  2. Locate the response for the specific transaction or unknown response.
  3. Change the value of the
    Think time spec
    field.
Edit the Response Metadata
In a virtual service, the term 
metadata
 refers to name/value pairs that can impact how responses are handled during playback.
Assume that you record a virtual service with the HTTP transport protocol. The response metadata in the virtual service includes the HTTP response code and the content type.
Response metadata is not used in matching.
Follow these steps:
  1. Open a virtual service.
  2. Ensure that the advanced mode is displayed.
  3. Click the 
    Metadata
     link to the right of the 
    Response
     label.
  4. (Optional) Click the column heading to sort the response metadata alphabetically ascending. Click again to sort descending.
  5. Add, change, and delete metadata as necessary.
Add and Delete Responses
Normally, a specific transaction has only one response.
DevTest
 Portal lets you add responses. However, some protocols ignore any response other than the first response.
Follow these steps:
  1. Open a virtual service.
  2. Display the specific transaction.
  3. To add a response:
    1. Click the 
      Add Response
       button.
    2. Add the body and metadata.
  4. To delete a response, display the response and click the 
    Delete Response
     button.