cancel
Showing results for 
Search instead for 
Did you mean: 

Send a custom message from an event to junit report?

SOLVED
Highlighted
Occasional Contributor

Send a custom message from an event to junit report?

We need to send request and response from all the failed tests in a project to the junit report. For this, we want to implement an event after each REST test step to validate the status and on error code, collect the request and response and populate the junit report.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Yes. I was able to figure this out. Using the option in Preferences -- ReadyAPI -- Log Complete Messages on Errors is solving our requirement.

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

what is your use case?

The tool saves the request and response for the failed cases any way. Why do you want the report to have request and response? which may become huge?


Regards,
Rao.
Highlighted
Community Hero

Do you currently have any assertions for the rest request? If so, what type of assertions?


Regards,
Rao.
Highlighted
Occasional Contributor

Yes. I was able to figure this out. Using the option in Preferences -- ReadyAPI -- Log Complete Messages on Errors is solving our requirement.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors