Forum Discussion

larsn's avatar
larsn
Contributor
11 years ago

[R]two data sources but single CSV source doesn't loop corre

I have a test case using two data source loops but the same underlying CSV file is used.

The problem I'm having is that the 2nd loop doesn't restart where I expect it to.

Currently I have the first loop to iterate for rows 0-3 (the remaining rows trigger errors) and the second loop start row 1.
The issue I have is that the 2nd loop is starting at row 3 and not row 1. I have the 2nd data source set for "Restarts DataSource when step is run".
When I remove the ending row constraint on the 1st data source the 2nd loop still does not work as expected.
  • Hi,

    Can you show a screenshot of how you have the DataSources configured in SoapUI Pro?


    Regards,
    Marcus
    SmartBear Support
  • I've attached a screenshot - let me know if this is enough.
  • Hi,

    The "Restarts DataSource when step is run" needs to be checked for "datasource - same" options for it to apply to the second datasource.



    Regards,
    Marcus
    SmartBear Support
  • Hi,

    I can't reproduce this behavior. It's possible that the errors that occur after rows 0 to 3 are throwing off the datasource. Are these errors exceptions that are happening in the error log tab?


    Regards,
    Marcus
    SmartBear Support
  • Thanks - I should have sent you a screenshot of the other datasource loop setups. A co-worker found the problem.
    I had the 2nd datasource loop testStep using the 1st datasource testStep and not the 2nd - arg!