Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

Creating an infinite loop

I have test case where in the first step I query some random row from some table in the database and then pass that information to some request.

As a last step I want to goback to my first step (get random data from database). I tried using datasourceloop by setting datasourcestep and targetstep to the datasource but this did not result in a infinite loop as I had anticipated

1. Why does setting datasourcestep and targetstep equal to that datasource 'NOT' cause an infinite loop.

2. is there any other way I can do this.

Thanks

Ali

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    1) If your DataSource only has one row then the DataSourceLoop will never loop back

    2) Create a groovy script containing

    testRunner.gotoStepByName( "" )

    Hope this helps!

    regards,

    /Ole
    eviware.com