cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

SOLVED
New Contributor

Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

Hi All,

 

I was exploring the possibility of capturing the Raw Requests and responses in the Junit style HTML report that is generated after the test execution. In my previous company our team had written a library and did some scripting in groovy in tear down steps to generate an custom HTML report file and also capture the raw requests and responses from each REST step. But I was looking if there is any in built mechanism or settings in SOAP UI pro that captures the same in the report that is automatically generated after an execution of a test case / test suite.

 

Thanks,

Arjun

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

@arjunrao :

 

You can get help from below link on how to add request and response in junit reports

 

https://community.smartbear.com/t5/SoapUI-Pro/TechCorner-Challenge-9-A-script-to-include-custom-deta...


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

5 REPLIES 5
Community Hero

Re: Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

@arjunrao :

 

You can get help from below link on how to add request and response in junit reports

 

https://community.smartbear.com/t5/SoapUI-Pro/TechCorner-Challenge-9-A-script-to-include-custom-deta...


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

New Contributor

Re: Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

Thanks for the pointers @HimanshuTayal  . I think the solution in the link that you shared is applicable only to the Printable style of report. I am looking at appending requests and responses to the J unit report. 

 

But the J unit HTML report however does not go to the granular and detailed level of displaying each test step does it ? It only displays the test cases in each test suite and whether it passed or failed. Since that is the case I guess I cannot expect the raw request and response to be captured in J unit report.

 

Community Manager

Re: Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

Hi @arjunrao , please check out this article for more info about JUnit-style HTML reports:

https://support.smartbear.com/readyapi/docs/testing/reports/existing/html.html

 

Also, the following article mentions that "JUnit-Style HTML reports – Use them to get a simple overview of functional test results in the HTML format."

 

So, yes, you are correct. This is just an overview.

 

 

 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Contributor

Re: Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

Thanks @sonya_m . 

 

Never mind I used some of the resources in the links shared above and added some of my own custom groovy scripting to generate a HTML report. Closing this topic.

Community Manager

Re: Is there a way to capture the Raw Requests and responses in the Junit style HTML report ?

@arjunrao Glad to hear this! Would you mind sharing the custom script you created so that anyone facing the same task would find it here? That would be awesome!


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:
Announcements
Top Kudoed Authors