Forum Discussion
HimanshuTayal
8 years agoCommunity Hero
Hi 678,
Try below code, it will fetch desired data and then you can export these values into excel or text file and can use later on:
def obj = context.testCase.getTestStepByName("Get Quote");
def assertions = obj.getAssertionList()
assertions.each
{
log.info(it.name + ' --> ' + it.status)
log.info it.getToken() //it will display data inside assertion
}
Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)
Thanks and Regards,
Himanshu Tayal
678
8 years agoRegular Contributor
Thank you for your code but i am looking to get this Assertion values on HTML reports generated by ReadyAPI