Skip to content

This is demo project with TestNG + Selenium + JAVA and reporting tool as Allure.

License

Notifications You must be signed in to change notification settings

unnatisolanki64/allure-testng-gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allure Reporting with Gradle + TestNG + Selenium + JAVA

This is demo project with TestNG + Selenium + JAVA and reporting tool as Allure.

Pre-Requisite

  • Java 8 or above
  • Gradle 6.6 or above
  • Eclipse

Installation

Install Allure in Windows

  1. Open Windows PowerShell and install scoop. Refer: https://scoop.sh/
  2. Now Install Allure using : scoop install allure
  3. Allure should get installed. Check Allure version with allure --verion command.

Screenshot 2022-01-10 200147

Execution

  1. Clone this repository.
  2. Go to terminal and run test using : gradle clean test
  3. Go to build directory using cd build and Generate Allure report using : allure generate allure-results --clean -o allure-report
  4. Now Generate result from Allure report using : allure serve allure-results

Result

Using Allure reporting you can generate different reports along with detailed test description and steps in the reporting. Enjoy!

result

Screenshot 2022-01-10 203530

Screenshot 2022-01-10 203558

Report on Git Actions

Using Git actions, We can configure and publish this result on Github pages. Checkout this configuration for workflow.

Result of workflow: https://unnatisolanki64.github.io/allure-testng-gradle