Closed priyaa02 closed 7 years ago
Why not just assign a unique category to the test and filter upon report creation?
If you really want 3 separate reports, you can create 3 separate instances of ExtentHtmlReporter for 3 different file locations and attach all to ExtentReports.
Thanks, Anshoo. I will implement creating different instances of the report and attach it to report. Also, can you help me how to implement or create customized report name based on the build or date time htmlReporter = new ExtentHtmlReporter(System.getProperty("user.dir")+"\Report\"+ formatter.format(date)+"_"+env_V+"_Sanity.html");
Actually, I want to Name the report based on the build + env+date, whereas extent report looks for the file in the location. I wanna create a new file each time.
Reports.zip
Issue in creating new customized reports.
In my project, I have settings sheet which defines which type of test suite is executed like Sanity, Regression, Functional. Based on each test type, I want to generate a new report each time I execute my build.
Sample