Extent Reports
Selcukes Extent Reports is used to generate Extent reports for Cucumber JVM.
Features
- Generates Emailable extent report
- Full page screenshots attached to report as base64 format
- Supports to add JUL based info logs to report
Setup
Selcukes Extent Reports is primarily used as a Java dependency . We typically use a build tool (such as Maven or Gradle) to resolve the Selcukes Extent Reports dependency.
- Maven
- Gradle
<dependency>
<groupId>io.github.selcukes</groupId>
<artifactId>selcukes-extent-reports</artifactId>
<version>${selcukes.version}</version>
</dependency>
dependencies{
implementation("io.github.selcukes:selcukes-extent-reports:${selcukes.version}")
}
selcukes-reports
.If you are using selcukes-reports
,then ignore adding this dependency explicitly.
selcukes-testng
then refer <<_selcukes_testng, Selcukes TestNG>> for extent reportintegration
Usage
Create extent.properties
file in src/test/resources
folder
[source,xml]
extent.reporter.spark.start=true
extent.reporter.spark.out=target/extent-reports/Sample.html
systeminfo.Author=Ramesh
selcukes.reports.timestamp=false
selcukes.reports.thumbnail=false
Add Selcukes Extent Reports plugin to cucumber runner as follows
@CucumberOptions(tags = "@tag1", plugin = {
"io.github.selcukes.extent.report.SelcukesExtentAdapter:",
"html:target/cucumber-reports/cucumber.html", "json:target/cucumber-reports/cucumber.json"
})