Allure Reporting | Selenium WebDriver Framework| Page Object Model | TestNG | Maven- MAC,WINDOWS



As a tester we are mainly interested in generating very good html reports to get to know the Test cases passed and failed. TestNG which is a java framework helps us in generation of index.html and emailable-report.html contains the information about the Test case Status. Even though it generates the status of the testcases we are mainly interested in taking screenshots,generation of PIE charts,LINE charts. In this tutorial we are doing to discuss on usage of Allure Framework to generate reports for different languages : JAVA,PYTHON,JAVASCRIPT,RUBY,GROOVY,PHP,DOT NET and SCALA.

GENERATE ALLURE REPORTING:
Create a Maven project

Subscribe to our YOUTUBE channel for more updates on automation videos


Project Source Tree Directory Structure:
The standard layout for Maven projects (the application sources reside in ${basedir}/src/main/java and test sources reside in ${basedir}/src/test/java, where ${basedir} represents the directory containing pom.xml).

MavenDirectoryStructure-Allure configuration

MavenDirectoryStructure-Allure configuration

Configuration for Allure: pom.xml




Add the allure.properties under src/test/resources

TestExecutionListener.java

OpenMRSTests.java

OpenMRSPage.java

TestBase.java

ProjectConfiguration.java

totalqa.xml

Right Click on the project and select Run configuration

AllureConfiguration

AllureConfiguration


Maven Goals as ‘site’

maven goals site

View the Reports in Firefox Brower only.

allure-maven.html

allure-maven.html

Finally, we are able to capture the allure reports as shown below:

allure-maven.html

allure selenium report

History of Test Execution Results

AllureReportHistory

AllureReportHistory

Duration and Retries Trend

AllureGraphs

AllureGraphs

Refer to the below Links for Practice
Collections in Java
Complete List of Selenium Basics
50 Real Time Interview Questions
Real Time Scenario’s
Java Platform Standard Edition 8 Documentation
Java Quiz
Java OOPS Quiz
Selenium Advanced Quiz
Selenium Quiz

Leave a Reply

Your email address will not be published. Required fields are marked *