Load Test from java with WsdlLoadTest Class
Hi,
In my SoapUI I have my TestSuite with its TestCase. The TestCase has a REST endpoint as TestStep. The REST endpoint gets its unique values from the TestCase properties, as such, ${#TestCase#memberId}. In my java code, I create a LoadTest inside the TestCase. And then I create a Groovy script as a second TestStep, that when I run the LoadTest is supposed to run before the REST endpoint. This Groovy script gets memberId's from the Database and assigns the value to the TestCase property "memberId" so that when the REST endpoint is called it will get the memberId from there.
So, when I run my LoadTest with limit type of runs per thread the Groovy script is not ran but until the 3rd run. Since the script is not being run, the property "memberId" of the TestCase is not being changed and the REST endpoint is being called with an empty memberId, therefore returning a 404. In the 3rd run, the script does run and the REST endpoint is called with different "memberId's" for each thread or virtual user.
Is there anyway I can force the LoadTest to run the Groovy script every time? I don't know why SoapUI is doing this, but there has to be a way to solve this.
Thank you in advance!