Forum Discussion

ashishm's avatar
12 years ago

help req to create independent data source for each thread

Hi,
I am new to Soap UI and I am trying to run a load test using soap UI but i stuck witha scenario where i need run a load test with 2 threads but i want these two threads to use different values present in one data source. so that once a value is used by one thread, it cann't be used by any other thread at all (to use it as unique for the request xml)

For example
I have a data source that have 10 values, let say 1 to 10 and my test step is using these unique values with each request fired (in each iteration of load testing). I want toto run a load test with 2 threads (for example). but I want that if thread 1 to use values from 1 then thread2 should use value 2 and so on.
can some one suggest me to how to go for it .. basically I think am trying to create independent data source for each thread for a single testcase.

Thanks in advance.

Regards
Ashish

1 Reply

  • PaulDonny's avatar
    PaulDonny
    Regular Contributor
    This is very very very interesting. My initial thoughts would be to isolate the data but that would likely be a pain. Other than that, possibly loading into a singular java function that runs in the background that tracks the data.

    This will be difficult without separating out the data in some way. Personally, I would probably give one set evens and one set odds or something easy and simple like that.