Forum Discussion

cbrzana's avatar
cbrzana
Occasional Contributor
14 years ago

DataSource Not Looping through values in loadtest

I have a loadtest configured (Strategy = thread), start/end threads = 1, limit the test run to 10 total runs. My load test consists of a datasource step, followed by a soap request that uses values pulled from that datasource. The load test will pass on the first iteration, but the subsequent 9 calls are failing. Looking at the response details, it is because the values being used from the datasource are always the values from the first row.

Am I missing something here? I know I've done this setup in the past, where values from the datasource are uniquely used for each request.

Thanks,
Chris

3 Replies

  • Hi,

    I am facing same issue.
    Any workaround or solution is appreciable
  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Do you have the "Shared" property checked in the DataSource Options?
  • Hi,

    yes i have the shared property checked.
    What i aim to do is to generate unique id's for each thread.
    I am using a datagen to generate unique id.
    And using this id value in a soap request just after the datagen.
    There are just 2 steps in my test case: a datagen and a soap request.
    Now the problem is, When i run the load test with mulitple threads, the unique id's are generated correctly in proper sequence. But they are not submitted in proper order.
    The id's generated are:
    3500,3501,3502, and so on
    and i want them to submit in that order only
    But what actually happens is, request with id 3501 is submitted before 3500 which fails the test case.
    Is there any way i can ensure that request get submitted in sequence of the id's generated by each thread?