Forum Discussion
JHunt
8 years agoCommunity Hero
Add your request to a TestCase. Right-click and Disable the TestRequest, since we'll run it by script instead it running as part of the test case. In the request body, replace the client number with a property expansion, as in:
<PRID>${=context["clientNumber"]}</PRID>Add a new Groovy Script TestStep, and enter:
[1,2,3].each {
context["clientNumber"] = it
testRunner.testCase.getTestStepByName("Request 1").run(testRunner,context)
}
Replace 1,2,3 with all your real client numbers, and replace "Request 1" with the name of the SOAP Request TestStep you created.
Then run the TestCase.