Forum Discussion
Finan
14 years agoFrequent Contributor
ah ok, that explains it a bit.....
so on the testSuite.tearDownScript level the following script returns the results from each testCase:
1. In case a testCase has failed, I'd like to know which testStep has failed. How do I script this?
2. For each testCase that returns a FAILED status, I also want to know the results from each testStep. Again, how to script this?
I tried the following, did not work:(
so on the testSuite.tearDownScript level the following script returns the results from each testCase:
for(result in runner.results)
{
log.info result.getStatus()
}
1. In case a testCase has failed, I'd like to know which testStep has failed. How do I script this?
2. For each testCase that returns a FAILED status, I also want to know the results from each testStep. Again, how to script this?
I tried the following, did not work:(
for(result in runner.results)
{
log.info result.getTestCase().name
if(result.getStatus().toString() == 'FAILED')
{
log.info "TestCase has failed"
for(a in result.getTestCase.results())
{
log.info a
}
}
}
Related Content
Recent Discussions
- 21 days ago