electric_Insura
14 years agoContributor
Datasource loop - get rid of last (extra) loop?
I have test cases that look like this:
1) Datasource
2) Groovy step - generate random number for use in request
3) Request - contains an assertion based on response content
4) Data sink
5) Datasource loop - loops back to the Groovy step each time to generate a new random number
The test always runs one extra loop to generate a new random number after there are no rows left in the datasource. A request is sent with no data, the request assertion fails, so the last loop always returns a failed result.
Any ideas on how to eliminate the last loop? I'm looking at the request properties but nothing is jumping out at me.
thanks.
1) Datasource
2) Groovy step - generate random number for use in request
3) Request - contains an assertion based on response content
4) Data sink
5) Datasource loop - loops back to the Groovy step each time to generate a new random number
The test always runs one extra loop to generate a new random number after there are no rows left in the datasource. A request is sent with no data, the request assertion fails, so the last loop always returns a failed result.
Any ideas on how to eliminate the last loop? I'm looking at the request properties but nothing is jumping out at me.
thanks.