Forum Discussion

MCotter's avatar
MCotter
Occasional Contributor
13 years ago

Help with Datasource Loop

Hi SmartBear Support

I seem to be getting a little lost in setting up a test.

In a scenario I'm using a Datasource Test Step that holds 2 / 3 fields from a Database Table (I'm only using a limited number of rows from the table). I then have a Transfer properties step that is feeding a row of data into 2 / 3 nodes on a subsequent SOAP Request Test Step that is to be run using this added data.

What I'd like to do is loop back following the successfull submission of the SOAP Request and then use a different row from the database to populate my SOAP Request. Trouble is I'm not sure how to set this up. It will take the 1st row but that's as far as I've got with it. I've not been able to loop back let alone select a different row of data.

Any ideas? I just seem to be getting more confused when I try and add a Datasource Loop or a Conditional GoTo step.

2 Replies

  • Hi!

    add a DataSourceLoop step after your request and configure it to loop back to the property-transfer for each row in your DataSource - your setup should be:

    1) DataSource
    2) Property Transfer
    3) Request
    4) DataSourceLoop; loop back to (2) for each row in (1)

    Hope this helps!

    /Ole
    SmartBear Software