Forum Discussion
RJanecek
13 years agoRegular Contributor
in each test case tear down script you can set property with result of this testCase:
and then in groovy script you can iterate over this testCase properties:
def tc = runner.testSuite;
for ( testCaseResult in runner.results )
{
tc.setPropertyValue("result",testCaseResult.getStatus().toString())
if (testCaseResult.getStatus().toString() == "FAILED") {
break;
}
}
and then in groovy script you can iterate over this testCase properties:
testRunner.testCase.testSuite.project.getTestSuiteList().each {
it.getTestCaseList().each {
println it.getPropertyValue("result")
}
}
Related Content
- 9 years ago
- 4 years ago
Recent Discussions
- 22 days ago