Allure Reporting

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

Allure Reporting,Testng,Selenium WebDriver Framework,Maven

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 chats like PIE charts,LINE charts. To overcome these issues we are using ALLURE REPORTING which is open source from Yandex Testing Team.

GENERATE ALLURE REPORTING:

  1. Create a Maven project.
  2. Project Source Tree Directory Structure:
  3. 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).

  4. Add the following content to pom.xml
  5. Create a BaseClass.java to create a driver instance and extended to the SubClass.
  6. /**************

    ******************/

  7. Create a SubClass named LoginPage.java extends BaseClass.java and implements Interface IHookable
  8. /**************LoginTests.java******************/

    /**************LoginPage.java******************/

  9. Right click on pom.xml and Select Run Configurations option.
  10. Maven Goals as ‘clean test site’
  11. View the Reports in Firefox Brower only.
  12. Finally, we are able to capture the allure reports as shown below:

Leave a Reply

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