extentreports-cucumber7-adapter icon indicating copy to clipboard operation
extentreports-cucumber7-adapter copied to clipboard

Set report path at runtime

Open Grimuldan opened this issue 2 years ago • 0 comments

Hello, I couldn't find a way to set a dynamic path to my report.

my current understanding is that you have to provide the report under extent.reporter.spark.out=path/to/ExtentSpark.html but for my project to provide a custom path based on the app i'm testing that would be something like {custom}/path/to/ExtentSpark.html is there a way to overwrite this path on runtime ?

I was searching into ExtentService.getInstance().getReport() but I didn't find any method for that works i saw a initSpark() method under the ExtentReportsLoader but it's impossible to access because it's private

Does anybody has a solution for that ?

Grimuldan avatar Nov 06 '23 10:11 Grimuldan