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
- 8 years ago
- 6 years ago
- 8 years ago
- 9 years ago
Recent Discussions
- 5 days ago
- 10 days ago