cancel
Showing results for 
Search instead for 
Did you mean: 

Combine multiple SoapUI project jUnit html report into a single report

Occasional Contributor

Combine multiple SoapUI project jUnit html report into a single report

Hello,

 

Is there any way to combine multiple SoapUI project jUnit html report into a single combined report.

 

Input:

Project 1 - index.html

Project 2 - Index.html

 

Output:

CombinedIndex.html (Content of Project 1 and Project 2)

 

Thanks

10 REPLIES 10
Super Contributor

Re: Combine multiple SoapUI project jUnit html report into a single report

You could just merge the html reports using something like:

https://www.mobileread.com/forums/showthread.php?t=29369

 

Highlighted
Occasional Contributor

Re: Combine multiple SoapUI project jUnit html report into a single report

I am using Gradle Build to trigger the SoapUI test execution and generating the jUnit HTML report.

It is getting done in Linux env using Jenkins job. 

 

Number of SoapUI project is dynamic and its passed as parameter.

 

So i can not use any desktop software.

 

I can write a html code to merge it, but i wanted to explorer the option in SoapUI or Gradle task to do it. 

 

and my main focus is on merging the test summary as well.

 

Super Contributor

Re: Combine multiple SoapUI project jUnit html report into a single report

Community Hero

Re: Combine multiple SoapUI project jUnit html report into a single report

I am pretty sure the functionality you are after is not (currently) a feature I am aware of in ReadyAPI / SoapUI NG Pro. That being said, as @sanj pointed out, there are other ways of making this happen outside of the software.


If that's not sufficient, you may be able to concatenate the files if you add on a Project that contains a groovy script that can do that for you. Barring that, you can make a Feature Request here.




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
Community Hero

Re: Combine multiple SoapUI project jUnit html report into a single report

@getarbind,

 

If I have to achieve the same, here is what I would do. 

 

  • Execute the project so that it generates Junit Test Report in xml format
  • Repeat this as many times as you want
  • Make sure all the Report xml files in the same location.
  • Now pass all the report files (TEST-*.xml) with regular expression to reporting task at the end.

 

And I believe that we do not have do any thing except that provide all the junit report xml file to transform into html. Just change of sequence. The generated report appears exactly what you wanted.

 

Personally do not use gradle, but ant and doing the above mention way to achieve the same. You should be able to achieve it using gradle too, I guess.

 



Regards,
Rao.
Super Contributor

Re: Combine multiple SoapUI project jUnit html report into a single report

My earlier post gas the link to stackoverflis which explains how this can  be done

Occasional Contributor

Re: Combine multiple SoapUI project jUnit html report into a single report

@sanj @nmrao @msiadak 

Thank you all for the valuable input.

 

There are multiple html report file are being generated for a single SoapUI project as part junit report generation so concatenating them all or concatenating corresponding html file will not meet the requirement where i need to have combined summary report.

 

@nmrao Yes.. I am thinking in same line where we can merge the XML report collecting all testsuite elements from all XML reports and putting them together and then convert that into HTML so that i will have Combined summary report.

Community Hero

Re: Combine multiple SoapUI project jUnit html report into a single report

@getarbind,

Multiple file for single project? Strange.

Would you mind showing the below?
1. TEST-*.xml (you may replace orignal names with dummy

2. build.gradle file and what task are you calling?


Regards,
Rao.
Occasional Contributor

Re: Combine multiple SoapUI project jUnit html report into a single report

 

This is files in report folder. It has all html and xml reports. Apart from this there is one subfolder which has couple of

supporting html files.

 

junit_report_folder.PNG

For 2nd point, I have got couple of report merger plugin. Need to check them and create task using those plugins.

 

https://github.com/bhovhannes/junit-report-merger#mergeFiles

 

 

 

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