Share this page

# Add content

This topic describes how to add content, such as Web Service calls, to a Web Services Vuser script.

Prerequisites:

Create an empty Web Services Vuser script. Click File > New Script and Solution and choose the Web Services protocol. You can create either a single-protocol or multi-protocol Vuser script.

To record a session:

1. Click the Start Recording button on the VuGen toolbar or press Ctrl+R to open the Recording wizard.

   For user interface details, see Specify Services dialog box.

2. Add services to the list. Click Import to load a WSDL for the test. Indicate the location of the WSDL file.

   For details, see Import Service dialog box.

3. Click Next. Specify the location of the application and any other relevant arguments. For details, see the Specify Application to Record dialog box.

To add a new service call:

1. Import a service. Select SOA Tools > Manage Services. Click the Import button.

   For user interface details, see Import Service dialog box.

2. Click the cursor at the relevant location in your script (Editor) or in the test steps (Step Navigator).

3. Click the Add Service Call button. The New Web Service Call dialog box opens.

4. In the Select Web Service Call section, select a Service, Port Name, and Operation.

5. To specify an endpoint other than the default Target Address, select Override Address and insert the new endpoint to which you want to submit the requests.

6. Expand the nodes and specify argument values. To create sample values for all Input arguments, select the Input Arguments node and click Generate.

   Tip: To instruct VuGen to interpret a string as text, and not markup data, you can use a CDATA section. For example, suppose you want to specify an input string “<3558>&abc”. Instead of using escape characters such as &lt;3558&gt;&amp;abc, add a CDATA section in the following format: <![CDATA[<3558>&abc]]>.

   To edit, import, or export the element's XML structure, see Assign values to XML elements.

7. To parameterize an input argument, click the node and select the Value option. Click the ABC icon and proceed with parameterization. For more information, see Parameterize scripts.

8. Select the Transport Layer Configuration node to specify advanced options, such as JMS transport for SOAP messages (Axis toolkit only), asynchronous messaging, or WS Addressing. For more information, see Send messages over JMS.

To add attachments:

1. To add an attachment to an input argument, choose an operation in the left pane. Select Add to request (Input). VuGen prompts you to enter information about the attachment and adds it to the method's tree structure. For details, see the Add Input Attachment dialog box.

2. To specify an output attachment through which to store output arguments, choose an operation in the left pane. Select Save received (Output). Select the relevant option: Save All Attachments or Save Attachment by Index based on their index number—beginning with 1. For details, see Web Service call attachments.

3. To edit the properties of either an Input or Output attachment, click the attachment in the left pane, and enter the required information in the right pane.

To specify SOAP headers:

1. Select the Custom SOAP Header node in the left pane and enable the Use SOAP header option.

2. You must individually specify SOAP headers for each element. To compose your own, click Edit and edit the XML.

3. To import an XML file for the SOAP header, click Import.

To import SOAP:

1. Import a service if one is available. Click Manage Services to access the Import dialog box. For more information, see the Import Service dialog box.

2. Click the Import SOAP button to open the Import SOAP dialog box.

3. Browse for the XML file that represents your SOAP request.

4. Select the type of step you would like to generate: Create Web Service Call or Create SOAP Request. In order to create a Web Service Call, you must first import at least one WSDL that describes the operation in the SOAP request file. To view the SOAP before loading it, click View SOAP.

5. Click Load to import the XML element values.

   For a Web Service Call, set the properties for the Service call as described in the New Web Service Call dialog box.

   For a SOAP Request, provide the URL and the other relevant parameters.

6. For a Web Service Call, if there are multiple services with same operation (method) names, select the service whose SOAP traffic you want to import.

7. Click OK to generate the new step within your script.

To analyze server traffic:

To create a script by analyzing a file containing a dump of the server traffic, click Analyze Traffic.

For details, see Server traffic scripts overview.

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: