Parameterize security elements
This task describes how to independently parameterize the security elements in a script.
-
Open the Security Scenario Editor
Select SOA Tools > Security Scenario Editor.
-
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.
-
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.
-
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.
-
Call the parameter
-
Click Manage Services and select the Protocol and Security tab. Click Edit Data.
-
Select Shared Scenario. Click the Browse button and enter the parameter name, <ServiceName>_shared_config, in the test box.
-