Skip to main content

Cucumber Extent Report using Cucumber 7 Adapter

Since Cucumber JVM version 7 is out in October 2021. Let’s test this version with the corresponding extent Adapter dependency provided by Grasshopper today.

If you are using TestNG do watch the TestNG specific video, although the steps are quite similar.

Now, if you are working on an older version of Cucumber JVM, on the programsbuzz website you will find a corresponding article for it.

Step 1: Add tech grasshopper maven dependency from here

<!-- -->

This article was tested with Cucumber version 7.2.3.

Step 2: Create file in src/test/resources/

Note: The original HTML Extent Reporter was deprecated in extent report version 4.1.3 and removed in 5.0.0.  ExtentReports has been updated to version 5, which has resulted in multiple reporters getting deprecated.  So you have to make sure which reporter you are enabling in the extent properties file.

Let’s enable spark report in an extent properties file:


Step 3: Add the plugin

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

Step 4: Execute your code

For screenshot refer this article.

Submitted by tgoswami on January 27, 2022

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.


At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.