Forum Discussion

sebisteiner's avatar
sebisteiner
Occasional Contributor
13 years ago

Problem with soapUI DataSource

Hi

I have the following soapUI TestCase:

1. DataSource
The DataSource reads a text file with a list of numbers. I have the following settings turned on: Shared and Restart Shared. Restart on Run is turned off.

2. SOAP request
"Get Person by PIN" request with the value read from the DataSource

3. Property Tranfer
Set the actual PIN as a TestCase property (later used in loadUI for logging...)


Now to the loadUI setup:

1. Virtual Users Generator
100 users with a request interval of 10 seconds

2. soapUI Runner
Runs the TestCase described above. In the settings i activated Add TestCase Properties to Result Message.

3. Table Log
Connected to the Results Connector of the soapUI Runner


Now I run my load test. In the table log I can clearly see that the PIN has always the value 1, which is the first row of my text file.
I would expect the test to iterate through my DataSource.

I've tried a lot of different settings but can't get it to work!

Any ideas?

Thanks a lot,
Sebi

8 Replies

  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    Setting on the data source in SOAPUI to "Share this data source between running threads in a load test."
  • sebisteiner's avatar
    sebisteiner
    Occasional Contributor
    AndyHughes wrote:
    Setting on the data source in SOAPUI to "Share this data source between running threads in a load test."


    Hi Andy

    Yes, that's the Shared setting i meant. I have already set it, but it doesn't help.

    Thanks anyway!
  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    The only one I have set is the shared one. None of the restart ones. See if that works.
  • sebisteiner's avatar
    sebisteiner
    Occasional Contributor
    AndyHughes wrote:
    The only one I have set is the shared one. None of the restart ones. See if that works.


    Unfortunately no... As you can see in the attached screenshot of the Table Log, the Pin is always "1"...

  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    Is the pin the value you are trying to read in?
    I did a property transfer to get out both the request and response properties for each test run. That way I could see exactly what value was used for each.
  • sebisteiner's avatar
    sebisteiner
    Occasional Contributor
    Yes, PIN is the value I read from the DataSource.

    Via Property Transfer in soapUI I write the value into a Test Case Property.
    Then in loadUI I activated Add TestCase Properties to Result Message.

    And as you can see, for each test run the value 1 is retaken...
  • AndyHughes's avatar
    AndyHughes
    Regular Contributor
    hmmmmmm wierd.
    I'm stumped. Have you tried using a grid for the data source?
  • sebisteiner's avatar
    sebisteiner
    Occasional Contributor
    No I haven't...

    Now I'm using a DataGen Test Step.
    I create a new Property with Type List and set it to Shared.

    That works as expected. But I have to Copy & Paste my test data from the txt-file into the DataGen Test Step.
    That's not very nice I think... But however, it works ;-)