Rename Extent Report after running the tests

Asked

Viewed 16 times

0

Is there any way to rename and move an Extent Report after the tests are finished? I would like the name to be saved dynamically at the end of each execution, adding for example the date and time of execution. Currently it creates with the name Extentreport.html and always overwrites the previous report.

@CucumberOptions(features = "src/test/resources/features/", 
        plugin = { "pretty", 
        "com.cucumber.listener.ExtentCucumberFormatter:src/test/resources/relatorios/ExtentReport.html", 
                "html:src/test/resources/relatorios/cucumber-reports/",
                "json:src/test/resources/relatorios/cucumber-reports/cucumber.json",
                "junit:src/test/resources/relatorios/cucumber-reports/cucumber-reports/Cucumber.xml" },

Thank you in advance!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.