Forum Discussion

Filip's avatar
Filip
Occasional Contributor
12 years ago

Using LoadUI to load data

I am trying to use LoadUI not for performance testing but for actual data load.
I would like to do it using 50 threads.
Case description:
LoadUI project consisting of "Fixed load" generator and "SoapUI Runner".
The soapui consist of: "DataSource" (jdbc), "soap" and loop.
Problem statement:
When I run the project it does not stop when data from a query finishes but starts from the beginning. I know that I can set limits. I intend to run it as a batch and then manipulating arguments of the script becomes a bit complex.
Question:
Is there a different way to stop the loadui then by setting the limits?
  • Hi Filip,
    The best way to do this is to make the SoapUI TestCase fail when the data source is out of data. Then set the Failure limit in LoadUI to 0.

    The easier way(less robust) to do this is setting the Request limit to the number of lines you have in your data source.

    Regards,
    Max
  • Filip's avatar
    Filip
    Occasional Contributor
    I tried to set this flag in the SoapUI but it did not help. It was starting the next loop. Either there is a bug or there is a different purpose for it.
  • Hi again,
    So you have checked your "Fail on Empty" setting in the DataSource in SoapUI?

    Oh forgive me, you should actually set the "failure limit" to 1(see picture) not 0 as i said in my previous response.

    Please try this instead. It should work.

    Regards,
    Max
  • Filip's avatar
    Filip
    Occasional Contributor
    A nice idea but it fails sometimes of other reasons. I ended up with going complex with some shell, sql and generating a .bat file with a limit. Thank you for the ideas. Maybe this case could be added to the new features list...