Forum Discussion

sonya_m's avatar
sonya_m
Icon for Alumni rankAlumni
5 years ago
Solved

[TechCorner Challenge #9] A script to include custom details to the report

Hi ReadyAPI Community!

 

I bring more challenges πŸ™‚

 

If you have the "Complete error logs" option enabled, the printable report includes the Raw request and Raw response for the failed test steps. But, you may need to get this info for passed test steps, as well.

 

Currently, there is no built-in option in ReadyAPI to show raw request and response of passed test steps in the printable (Jasper) report. 

 

Task: Write a Groovy script for the "TestRunListener.afterStep" event that will post the raw request URL and the full raw response to the printable report.

 

Difficulty


Here is an example:

 

 

 

πŸ’‘Hint: https://community.smartbear.com/t5/SoapUI-Pro/TechCorner-Challenge-9-A-script-to-include-custom-details-to-the/m-p/205242/thread-id/46875

 

Check out the TechCorner Leaderboard here.

Good luck😊