Showing results for 
Search instead for 
Did you mean: 

Get assertion values using groovy

New Contributor

Get assertion values using groovy

I am doing custom report. If assertion failed I am getting proper error messages. I am producing what are the assertion that we are using for even passed case.... Assertion has ID, LABEL and Description. I wanted to print in my report what is actual and expected as well in report along with assertion name and status How to do that?
Community Hero

Re: Get assertion values using groovy

Would you please show what you have done already?

Community Leader

Re: Get assertion values using groovy

@Namee92 :


What kind of report you are generating and also please let me know at which level you are invoking your reporting.



Click "Accept as Solution" if my answer has helped, and remember to give "kudos" 🙂 ↓↓↓↓↓

Thanks and Regards,
Himanshu Tayal
Community Manager

Re: Get assertion values using groovy

@Namee92 Could you provide the Community with a bit information like Rao and Himanshu are requesting? Thank you!

Sonya Mihaljova
Community and Education Specialist
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Script Wanted
The new challenge is here!

Create a script to сhange an XPath Match assertion to a JSONPath Match assertion for the TechCorner tag!

Scripts created in July:
- A script to generate an email when an assertion fails
- A script to change the request body before sending it to the server
Top Kudoed Authors