cancel
Showing results for 
Search instead for 
Did you mean: 

ReadyAPI - How to export test results in different formats?

rajs2020
Frequent Contributor

ReadyAPI - How to export test results in different formats?

Sometimes, one needs to share with their teammates the results of failed tests which one ran in Ready api, so that the teammate can look into the failures. Is there a way to export the test results as an html file or such? Otherwise, one has to copy all the details manually from ready api and also take screenshots sometimes. This is what I'd like to have in my report:

 

1 - Fully qualified name of the failing tests.
2 - Reasons for test failure in detail.

An extra feature could be to export the report to a web link so that we can easily share it with our teammates. The default storage location of such reports could be google drive, dropbox etc. The location can be set by a company instead of the end user.

4 REPLIES 4
ChrisAdams
Contributor

Re: ReadyAPI - How to export test results in different formats?

Hi,

 

The licensed version offers reports 'out of the box'.

 

If you don't have the licensed version, or don't like the standard reports, you could script your own report.

 

Here's an example post that shows how to script a html report... https://community.smartbear.com/t5/API-Functional-Security-Testing/readyapi-report/m-p/196193

 

richie
Community Hero

Re: ReadyAPI - How to export test results in different formats?

Hey @rajs2020,

It might be a little overkill and it isnt pretty (not like an .html report perhaps) but i use an event handler (to record my test evidence automatically) to create a .txt file for each teststep in each test case and it shows ALL the details.
I mean the input and output (request/response) all parameters, authentication details etc. It saves the output into separate testcase directories and creates a file for every test step, and even appends multiple runs and loops along with test status (pass/fail).

It logs all this detail whether pass or fail, i'm sure you could edit the groovy on the event handler to grab only fails, but i keep it to record everything as testevidence.

Would this be of interest at all?

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
sonya_m
Community Manager

Re: ReadyAPI - How to export test results in different formats?

Thank you for your replies, Richie and Chris!

 

@rajs2020 do the replies help? Please mark the best one as a solution - this will help a lot of people coming to this thread in the future. 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. ⬇️⬇️⬇️
rajs2020
Frequent Contributor

Re: ReadyAPI - How to export test results in different formats?

Thanks. That sounds interesting, at least from a learning perspective. Do you have a test or script which for that which you could share publicly?

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors