Forum Discussion
SmartBear_Suppo
14 years agoSmartBear Alumni (Retired)
Hi Finan,
This should work:
I've added it to the Scripting Tips & Tricks page.
/Henrik
eviware support
This should work:
for( testCaseResult in runner.results )
{
testCaseName = testCaseResult.getTestCase().name
log.info testCaseName
if( testCaseResult.getStatus().toString() == 'FAILED' )
{
log.info "$testCaseName has failed"
for( testStepResult in testCaseResult.getResults() )
{
testStepResult.messages.each() { msg -> log.info msg }
}
}
}
I've added it to the Scripting Tips & Tricks page.
/Henrik
eviware support
- harish4b47 years agoSenior Member
When I use above code...It is printing results in random order.
i.e let say i have test cases named with A,B and C in order..when I run above code multiple times it prints results in random order like C,A,B or B,A,C.
In order to prepare Customized HTML reports i want to access results in order.Can some one give solution ASAP.
Thanks in advance.
Related Content
Recent Discussions
- 22 days ago