Forum Discussion

Varun_Sharma's avatar
16 years ago

segmented datapool

I am using using soapUI Pro 3.0.1

In my load test I want to simulate a user load of say 5 users.
I have say 100 records in my datapool.
I want each of the 5 VUs to do 20 transactions on data from the datasource.
Each record in the datasource can be used only  once. A record once used is exhausted and can't be reused by other thread or same thread in subsequent iteration.


Do i have to write some code to achive this segmentation of datapool? Or is the feature readily available and I am just not able to find it?
  • Hi!

    What if you set the datasource to be shared and the loadtest to run with 5 threads (simple strategy, no delay)  for a total of 5 runs?

    regards!

    /Ole
    eviware.com
  • Prudential_UK_A's avatar
    Prudential_UK_A
    Frequent Contributor
    Hi Ole,

    I can use a unique record to process a request in the Load test by following the approach mentioned above.

    Could you please let me know what the best way is, if I need a delay between two subsequent requests?

    One way of doing this is by adding ‘Delay test step’ to the test case.  When I use this approach statistics info shows more value as compared to the delay set.

    As shown in attached screenshot, Delay set= 220ms;
    During load test, delay replayed is 241 to 242 ms

    Thanks
  • Hello,

    The reason that the actual delay is longer than the set value likely has to do with what is executed in other Threads while delaying, and how many Threads are running. If the other Threads are utilizing a lot of memory than this may cause Garbage Collection to run. If Garbage collection runs during the LoadTest, this can cause a delay to take much longer than expected. Unfortunately there isn't much we can do about this. I have tweaked a few things that should improve delay timing slightly, which will be available in the next nightly build (soapUI 3.5 beta only). The Garbage Collection related probelms still exist though.

    Regards,
    Dain
    eviware.com