Forum Discussion
HimanshuTayal
7 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
- 6787 years agoRegular Contributor
Thank you for your code but i am looking to get this Assertion values on HTML reports generated by ReadyAPI
- HimanshuTayal7 years agoCommunity Hero
ohk, i never found any option, related to your query.
In this scenario Lucian can help you as he is working on customized junit reporting.
Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)
Thanks and Regards,
Himanshu Tayal
- 6787 years agoRegular Contributor
any update on this request ?
Related Content
- 10 months ago
- 4 years ago
- 5 years ago
- 6 years ago
Recent Discussions
- 21 days ago