Share this page

# Prepare scripts for replay

This task describes how to prepare the script for replay and run it. It describes how to use the output of one Web Service call as input for another.

You first save the output result to a parameter, and then reference that parameter in a later Web Service call.

To assign input parameter values:

1. Save the output parameter.

1. In the Step Navigator, double-click the Web Service call whose output you want to use, to view its properties.

2. In the left pane, select the output argument whose value you want to save to a parameter.

3. In the right pane, select Save returned value in parameter. Specify a name in the Parameter box.

2. Use the saved parameter for input.

1. In the Step Navigator, double-click the Web Service call whose input parameters you want to set.

2. In the left pane, select the input argument for which to use the saved parameter.

3. In the right pane, select Value, and click on the abc icon. The Select or Create Parameter box opens.

4. Select the saved output parameter from the Parameter name list.

5. To specify an input parameter in Script view, select the value you want to replace and select Use Existing Parameters from the shortcut menu. Select one of the available parameters.

### Set the runtime settings - optional

Open the runtime settings (F4) to configure JMS and VM settings. Click the JMS > Advanced node. For details, see the JMS > Advanced view in the runtime settings.

### Configure XSDs with any type elements - optional

For Web Services that have an XSD schema with an Any type element, `<xsd:element name="<`Any_element`>" type="xsd:anyType" />`, check that the script conforms with the following model:

    BEGIN_ARGUMENTS,
                   "xml:Any_element="
                   "<Any_element>"
                   "<string>the string to send</string>"
                   "</Any_element>",
    END_ARGUMENTS,

The actual SOAP may differ slightly, but as long as your script conforms to the above model, it will run properly.

You can also send complex type elements for the <any> type. For example:

    "xml:Any_element="
             "<Any_element>"
             "<myComplexTypeName>"
             "<property1>123</property1>"
             "<property2>456</property2>"
             "</myComplexTypeName>"
             "</Any_element>",

### Run the script

Click Replay > Run. Observe the output log for relevant messages.

### Review the test results

Display the Replay Summary to review results of the test run. For details, see Replay Summary pane.

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1-26.3 All View Local Help Center View Online Help Center Version: