Parameterize security elements

This task describes how to independently parameterize the security elements in a script.

To parameterize security elements:

  1. Open the Security Scenario Editor

    Select SOA Tools > Security Scenario Editor.

  2. Set up a scenario for each Vuser

    Set up a scenario for each Vuser as described in Create and manage security scenarios. We recommend you use the names user1, user2, and so forth, and save them in a new folder, %script root%/WSDL/referencedConfig.

  3. Open the Parameter List window and create a parameter

    Select Vuser > Parameters List. Create a new parameter, <ServiceName>_shared_config. Replace the <ServiceName> with the case-sensitive name of the service you are testing. To determine the exact name of the service, click Manage Services to see the list of services.

  4. Add parameter values

    In the values table, in each row add the file names of the security scenarios with their .stss extensions. You can use a relative path, relative to the script folder. Click Add Row to add multiple values. Close the Parameter List dialog box.

  5. Call the parameter

    1. Click Manage Services and select the Protocol and Security tab. Click Edit Data.

    2. Select Shared Scenario. Click the Browse button and enter the parameter name, <ServiceName>_shared_config, in the test box.

  6. Back to top