Forum Discussion
Buschfunk
Frequent Contributor
Found the solution:
or
def result = testRunner.getStatus()
if (result == com.eviware.soapui.model.testsuite.TestRunner.Status.valueOf("FINISHED")) {
log.info("Test passed")
} else {
log.info("Test not passed")
}
or
def result = testRunner.getStatus().toString()
if (result == "FINISHED") {
log.info("Test passed")
} else {
log.info("Test not passed")
}
vikititor
6 years agoContributor
I am sorry, but this gives me always "RUNNING" when I try to execute test..
So there is really no way.. how to in side TC get status?
Thanks a lot.. I am lost after few hours to found solution..
- vikititor6 years agoContributor
This works only in tear donw script.. but not in groovy test step.. In groovy test step you will get only "RUNNING"..
Related Content
- 7 years ago
- 6 years ago