LoadTest
I use soapUI 4.5.1.
I have a TestSuite with 4 steps, see below, and a Load Test.
Now I will say what each TestStep do in this context.
- Properties; I create one variable "number" and set a value ( eg: 100);
- Groovy Script : I increment this variable with (+1) and set the new value;
- Property Transfer : I transfer the value from variable "number" and put on element in XML inside the Request.
My goal it is run the LoadTest "LoadTest-Request" and check the time for each request on interval of 60 seconds.
My problem it is that each request don't update with the new value executed on Step "Property Transfer".
Hi johnnybegood
Begin by creating a DataSource step in your TestCase, configuring it to read ClientIDs from a file, such as a CSV or Excel document, and ensuring the ClientID column is properly mapped.
- Next, add a DataSource Loop, placing it after the DataSource step, and configure it to utilize the created DataSource.
- Within the loop, create a SOAP Request step, using property expansion to insert the ClientID, denoted as ${DataSource#ClientID}.
- Finally, add a Groovy Script step at the end of the loop, employing a script to control the iteration.
This setup enables the reading of ClientIDs from the DataSource, execution of the SOAP Request for each ClientID, and restarting of the loop until all ClientIDs are processed.
Best Regards