JimL
14 years agoContributor
Problem with test case under load test (repeating?)
Hi,
I have a test case with two test steps:
- A Groovy test step, which populates some properties
- A SOAP request, which uses the properties from the first test step via property expansion
Among the properties that the Groovy test step populates is a "Id" attribute in a SAML assertion in the SOAP message, and the Groovy test step is basically incrementing that "Id" property each time the Groovy test step is run.
If I manually run the test case (by clicking the green arrow on the test case window) several times, I can see the "Id" attribute incrementing by 1 each time, both in our server logs and in the test case Properties window. That's good.
So then I created a load test, using that test case. For now, I'm using the "Simple" strategy in the load test.
When I run the load test, and check the server logs, I see some/many messages with the same "Id" attribute, repeated. Also, at the end of the load test, I checked the server logs, and there are about 2000 requests, but the highest "Id" value I have is 79, whereas it should be some more on the order of 2000+.
I've been searching the forum, and noted this thread:
viewtopic.php?f=5&t=2218&p=8191&hilit=test+case+sequence#p8191
and where it says "The TestSteps of an individual TestCase are always executed Sequentially...".
But, based on what I'm seeing, it seems like that is not the case, i.e., it looks like the Groovy test step is not always being invoked before the SOAP request test step. In other words, it looks like the Groovy test step is executed, but then multiple SOAP request steps are being executed after that, before the Groovy test step is executed again (and incrementing the "Id" attribute)?
FYI, I'm currently using SOAPUI non-Pro V4.0.0 for this testing, downloaded and installed about a week ago.
Thanks,
Jim
I have a test case with two test steps:
- A Groovy test step, which populates some properties
- A SOAP request, which uses the properties from the first test step via property expansion
Among the properties that the Groovy test step populates is a "Id" attribute in a SAML assertion in the SOAP message, and the Groovy test step is basically incrementing that "Id" property each time the Groovy test step is run.
If I manually run the test case (by clicking the green arrow on the test case window) several times, I can see the "Id" attribute incrementing by 1 each time, both in our server logs and in the test case Properties window. That's good.
So then I created a load test, using that test case. For now, I'm using the "Simple" strategy in the load test.
When I run the load test, and check the server logs, I see some/many messages with the same "Id" attribute, repeated. Also, at the end of the load test, I checked the server logs, and there are about 2000 requests, but the highest "Id" value I have is 79, whereas it should be some more on the order of 2000+.
I've been searching the forum, and noted this thread:
viewtopic.php?f=5&t=2218&p=8191&hilit=test+case+sequence#p8191
and where it says "The TestSteps of an individual TestCase are always executed Sequentially...".
But, based on what I'm seeing, it seems like that is not the case, i.e., it looks like the Groovy test step is not always being invoked before the SOAP request test step. In other words, it looks like the Groovy test step is executed, but then multiple SOAP request steps are being executed after that, before the Groovy test step is executed again (and incrementing the "Id" attribute)?
FYI, I'm currently using SOAPUI non-Pro V4.0.0 for this testing, downloaded and installed about a week ago.
Thanks,
Jim