Forum Discussion
jmueller
8 years agoNew Contributor
You were mostly there, it looks like you were only getting the name in your script is that right?
The property I think you are looking for is the status property of the various result classes. I put this in my tear down script and it worked well.
for (suiteResult in runner.results) {
log.info(suiteResult.testSuite.name + " " + suiteResult.status)
for (caseResult in suiteResult.results) {
log.info("\t" + caseResult.testCase.name + " " + caseResult.status)
for (stepResult in caseResult.results) {
log.info("\t\t" + stepResult.testStep.name + " " + stepResult.status)
}
}
}
You can write to a file instead of using log.info if you want to save this output for some type of reporting.
Jack
Related Content
- 5 years ago678
- 5 years agounderqualified