Skip to content

Generates Extent Spark & Pdf Report for Rest Assured API Automation Tests run with Cucumber-JVM

License

Notifications You must be signed in to change notification settings

grasshopper7/cucumber-rest-assured-extent-report-plugin

Repository files navigation

Spark & Pdf Extent Report generation for REST Assured API Testing executed with Cucumber-JVM

This artifact deals with the creation of Spark and Pdf Extent Report for REST Assured validation with Cucumber by using a Maven Plugin. The artifact uses the REST Assured Filter from the Allure Framework for generating the report data. This works with JUnit and TestNG testing frameworks. This avoids the mixing of Extent Report calls within the test code. All that is required in the code is an addition of a REST Assured filter and two Cucumber plugins. The remaining changes are all POM configuration changes.

For more details refer to this article. Sample usages for JUnit and TestNG.

Sample POM - POM for JUnit and for TestNG.

Maven Failsafe Plugin Configuration - Plugin configurations for JUnit and TestNG.

Report Plugin -

<plugin>
  <groupId>tech.grasshopper</groupId>
  <artifactId>cucumber-rest-assured-extent-report-plugin</artifactId>
  <version>2.3.1</version>
  <executions>
    <execution>
      <id>report</id>
      <phase>post-integration-test</phase>
      <goals>
        <goal>extentreport</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Default configuration details and tips be modify them can be found in the article.

Pdf Report Images -

Dashboard

sample

Tests

sample

Spark Report Images -

Dashboard

sample

Tests

sample

About

Generates Extent Spark & Pdf Report for Rest Assured API Automation Tests run with Cucumber-JVM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published