Forum Discussion

Voropaeva_Kris's avatar
Voropaeva_Kris
New Contributor
6 years ago

Can i automate clearing results DataSource-DataConnection after each run?

I have a DataSource step with the type DataConnection. 
Now I have the next problem: each time when I run new trying of a test - results in DataSource step keep and each time using the first result, but I have to use the last result.
How I can do this? Maybe, I can clear result after each running?

Thank you

  • Hi Voropaeva_Kris,

     

    As far as I know, DataSource doesn't allow specifying the record number to start the iteration.

    The only way you can use is to create a groovy script that will iterate through your DB store in a way you want.

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Voropaeva_Kris,

     

    As far as I know, DataSource doesn't allow specifying the record number to start the iteration.

    The only way you can use is to create a groovy script that will iterate through your DB store in a way you want.