Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 2.49 KB

File metadata and controls

49 lines (33 loc) · 2.49 KB

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