Cucumber TestNG: Generate Extent Report using Extent Adapter (Grasshopper)

Profile picture for user devraj

In previous article we generated Extent Report using Avent Stack TestNG Listener, in this articles let's do it using Grasshopper plugin technique.

Step 1: Add following dependency to your pom.xml. You can download the latest one from here.


Step 2: Add adapter as a Plugin to your Cucumber Options:


plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"}

Runner File 

        tags = (Constants.TAGS),
        glue = {Constants.GLUE}, 
        plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"},
        features = {Constants.FEATURES})

public class RunCucumberTest extends AbstractTestNGCucumberTests 


Step 3: Add to src/resources/test with below 2 lines


Step 4: Execute your Runner File

cucumber testng extent report generation

generate extent report using cucumber testng

Video Tutorial: Cucumber TestNG Extent Report (Grasshopper)