Forum Discussion
M_McDonald
15 years agoSuper Contributor
I have tried adding a Groovy script step at the end of the test case like so:
This seems to work when I run the test case manually, but not when running a load test.
def ds = testRunner.testCase.getTestStepByName("Test Data")
if (ds.getCurrentRow() == ds.getEndRow()) {
log.info "Resetting test data source."
ds.setRestartOnRun(true)
ds.prepare(testRunner, context)
} else {
ds.setRestartOnRun(false)
}
This seems to work when I run the test case manually, but not when running a load test.
Related Content
- 3 years agoasnaeb
- 3 years agomsalvador
- 3 years agoUConnAnnMarie
- 3 years agovertikav