Forum Discussion
SmartBear_Suppo
SmartBear Alumni (Retired)
Hi Ali,
If you want information on the assertion-level you would have to create a script before the loop that goes through the list of assertions for each teststep:
def soapStep = testRunner.testCase.testSteps["soap step 1"]
for( assertion in soapStep.assertionList )
{
log.info "Assertion [" + assertion.label + "] has status [" + assertion.status + "]"
for( e in assertion.errors )
log.info "-> Error [" + e.message + "]"
}
etc..
does that help?
/Ole
eviware.com
If you want information on the assertion-level you would have to create a script before the loop that goes through the list of assertions for each teststep:
def soapStep = testRunner.testCase.testSteps["soap step 1"]
for( assertion in soapStep.assertionList )
{
log.info "Assertion [" + assertion.label + "] has status [" + assertion.status + "]"
for( e in assertion.errors )
log.info "-> Error [" + e.message + "]"
}
etc..
does that help?
/Ole
eviware.com
ritesh23487
8 years agoOccasional Contributor
HI Ole,
I have a test Suite with 20 Test Cases. From Reporting point of view i am expecting to capture the failure of any Test Step in a Specific Test Case.
Could you please assist in simple groovy script (which is populated at the end when all the test cases have been executed) which captures all the Failure Test Step Name from all the test cases in the particluar Test Suite .
Thanks
Ritesh Bharuka
Related Content
- 3 years ago
Recent Discussions
- 5 days ago