Customization of HTML Report for Cucumber specific Test Results

We have seen the cucumber integration with Appium and Junit in my previous posting but the test results was shown in the raw format. Now I want to customize the cucumber specific test reports in the Junit part using the open source utility.

Before get in to the HTML report customization in Cucumber implementation, I would like to thank Mr. Anshoo Arora and Mr. VimalRaj Selvam for their contribution in github to make it happen. I have used their github contributed jar files to implement the fantastic HTML based test reports for easy understanding. Acceptance testing report is going to be published with the help of the below github contributors jar files, which is again an open source.

GitHub Repositories for your future reference;

https://github.com/email2vimalraj/CucumberExtentReporter

https://github.com/anshooarora/extentreports

Steps to follow;

  1. Download the reports supporting jar files from the below URL’s;

http://search.maven.org/remotecontent?filepath=com/vimalselvam/cucumber-extentsreport/1.1.0/cucumber-extentsreport-1.1.0.jar

http://relevantcodes.com/wp-content/plugins/download-monitor/download.php?id=17

  1. Map all the downloaded jars in the Java build path in eclipse(Refer below list);

cucumber-extentsreport-1.1.0

extentreports-java-2.41.1

HTML_1

Now coming to Junit class and add the below code snippet for visualizing the advanced HTML reports;  You will be adding the plugin details in the cucumber options and call the formatter method and configuration xml file for report format. extent-config.xml file was downloaded from the URL https://github.com/anshooarora/extentreports with the supporting jars.

HTML_2

That’s it, start executing the script in Junit class as stated below;

BDD_2

Report will be generated in the output folder associated with the target project location;

Please find the below test reports for your understanding.

HTML_3

HTML_4

HTML_5

You can change the layout and features in the extent-config.xml file downloaded from the URL https://github.com/anshooarora/extentreports 🙂

 

2 thoughts on “Customization of HTML Report for Cucumber specific Test Results

  1. I tried with your solution and it worked for me successfully.
    Thanks a lot as i was searching for solution for generating report from long time and i got the solution through you.
    Cheers!!!!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s