Forum Discussion
jkrier
10 years agoRegular Contributor
I think I figured it out and I am going to post the script in case anyone else ever looks this up on the forums. It was really simple, I just had to convert the status to a string.
obj = context.testCase.getTestStepByName("MyTestStep")
assertions = obj.getAssertionList()
assertions.each{log.info(it.name + ' --> ' + it.status)
stat = (it.status).toString()
if(stat == "FAILED"){
log.info "FOUND FAILED"
testRunner.gotoStepByName("NewTestSTep")
}
}