Extent PDF Report in Cucumber TestNG

Profile picture for user devraj

This article will explain how to generate a PDF report using the grasshopper plugin. Follow the below steps:

Step 1: Follow this article to Add POM.xml, create and configure extent property file and add the plugin to the Test Runner class.

Step 2:  To attach screenshot to your extent report, refer method 1 here  

Step 3: Add below 2 lines in extent.properties file

extent.reporter.pdf.start=true
extent.reporter.pdf.out=test-output/PdfReport/ExtentPdf.pdf

Execute your code, You will find PDF in folder mentioned in extent properties file.

Video Tutorial: Cucumber Extent PDF Report TestNG