cancel
Showing results for 
Search instead for 
Did you mean: 

Customize junit report

New Contributor

Customize junit report

Can we customize the junit report to print messages sent through ex. groovy script?

9 REPLIES 9
Community Hero

Re: Customize junit report

I am also curious about this + if there is any way to make the junit report prettier.



If my answer helped please click on the 'Accept as Solution' button.
Community Hero

Re: Customize junit report

Up!

 

I am very interested in this. Can anyone help? Other custom reportings don't seem to help since I want to be able to navigate through the report exactly as it is now except for a few more details in the content.

 

@Olga_T, please heeeeelp! Smiley Tongue



If my answer helped please click on the 'Accept as Solution' button.
Moderator

Re: Customize junit report

Hi all,

 

I'll do my best, @Lucian Smiley Wink

 

I have just asked one of our engineers, @Nastya_Khovrina, for assistance, and she has replied that, unfortunately, you cannot customize JUnit-Style reports.

 

You can customize only printable reports: https://support.smartbear.com/readyapi/docs/testing/reports/customizing.html

 

When using printable reports, ReadyAPI will output endpoints, as well as requests and response content for failed SOAP and REST test steps if the "Complete error logs" option is enabled: https://www.screencast.com/t/yl82E21jwI

 

I hope this helps,

Olga Terentieva,
SmartBear Assistant Community Manager

Community Hero

Re: Customize junit report

Are we talking about the JUnit-Style Report in SoapUI Open Source TestRunner (which produces an XML), or the JUnit-Style HTML Report in ReadyAPI?

 

Talking only for the Open Source (XML) version...

You could have your TestCases update their own properties. Then enable the option to include test properties in the JUnit-Style report.

 

For instance, run a Groovy script at the end of each test that does:

testRunner.testCase.setPropertyValue("MySomething", "ItsValue")

 In the XML report, you will have

<testcase time="0.062" name="TestCase 1">
    <properties>
        <property name="Blah" value="Blah123"/>
    </properties>
</testcase>
Community Hero

Re: Customize junit report

@Olga_T, thanks for the answer. I was hoping for a way to customize them.

 

@JHunt, I was interested in the HTML reports. Thanks for the answer anyway Smiley Happy



If my answer helped please click on the 'Accept as Solution' button.
Regular Contributor

Re: Customize junit report

@Lucian,

 

By any Luck, if you got the solution or any way to do styling in JUnit HTML report please do share it, as many of us wants to do the same.

 

Thanks,

Himanshu Tayal


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal
Highlighted
Community Hero

Re: Customize junit report

@HimanshuTayal,

 

From what I understand this is not possible.

 

I am working on a project to create a custom html report. I will create a git project and anyone will be invited to join... 



If my answer helped please click on the 'Accept as Solution' button.
Community Hero

Re: Customize junit report

@HimanshuTayal,

 

Here it is: https://github.com/lucadln/soapui/tree/master/ReadyAPI/Reporting

 

I will work on it and post the results here someday... Smiley Very Happy

 



If my answer helped please click on the 'Accept as Solution' button.
Regular Contributor

Re: Customize junit report

@Lucian

 

Thanks a lot for sharing Smiley Happy


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" Smiley Happy

Thanks and Regards,
Himanshu Tayal