grasshopper7 / extentreports-cucumber7-adapter

Cucumber-JVM 7 Adapter for Extent Framework
https://ghchirp.online/3196/
MIT License
17 stars 8 forks source link

Offline mode? How to set it now #25

Closed GhsVilela closed 1 year ago

GhsVilela commented 1 year ago

Hi, after updating my project to use this new version of cucumber 7 adapter my report file is no longer being generated with link references to the local folder, does anyone knows how to fix this?

its like this now:

image

Should be like this:

image

This is an issue when using the report file with Jenkins since it has a security policy and it doesn't allow external links references.

grasshopper7 commented 1 year ago

Set the offlineMode to true in spark-config.xml

GhsVilela commented 1 year ago

@grasshopper7 I wasn't using this file before, going to try using it now, thank you

GhsVilela commented 1 year ago

It worked, thanks @grasshopper7

<?xml version="1.0" encoding="UTF-8"?>
<extentreports>
    <configuration>
        <encoding>UTF-8</encoding>
        <documentTitle>HTML Test Report</documentTitle>
        <reportName>Spark Report</reportName>
        <offlineMode>true</offlineMode>
    </configuration>
</extentreports>

extent.properties

extent.reporter.spark.config=src/test/resources/spark-config.xml