Forum Discussion

CSmith's avatar
CSmith
New Contributor
13 years ago

[Res] Problem with 'Restart on Run' option for datasources

Hi all,

I am using SoapUI Pro 4.0.0. I have 2 datasources and 2 loops nested. First off the outer loop works smoothly. The problem I see is that inner loop only loads all the rows of data in it's respective data source once. When the outer loop is executed for it's next row of data, only the last row of data in the inner loop is used. I would like to iterate through all the data in the second datasource for each row of data in the first. I have the "Restart on Run" option checked in the inner data source properties. I assumed that this would fix the issue, but hasn't. Let me know if I can provide any additional details.

Here is the structure of the test case:
-DataSource1
-DataSource2
-Request
-DataSourceLoop2
-DataSourceLoop1

Thanks!

4 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    hmm, how have you configured the DataSourceLoop steps?

    regards,

    /Ole
    eviware.com
  • CSmith's avatar
    CSmith
    New Contributor
    These are the values for the DataSourceLoop steps. This follows the test case layout of my original post.

    DataSourceLoop1
    -DataSource Step: DataSource1
    -Target Step: Request

    DataSourceLoop2
    -DataSource Step: DataSource2
    -Target Step: Request

    Thanks,
    Don
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Don,

    try setting the Target Step of the DataSourceLoop1 to DataSource2 (so it gets reset for each outer loop)..

    does that help?

    regards,

    /Ole
    eviware.com
  • CSmith's avatar
    CSmith
    New Contributor
    That did the trick! Time to have some fun now

    Thank you for the help.

    Don