I have an ExtentReports API implemented into my Java code in my Selenium - Web Automation project.
What ExtentReports does is, After running the code it produces a report. Currently it saves the created file on my project folder.
I would like to save the reports on a specific directory, and not using "user.dir".
For example I would like to save it on C:Reports
How would I do that?
Here is my currently working code for saving :
System.getProperty("user.dir") + "/test-outputExtentReports/STMExtentReport" + currTimeDate + ".html", true);
extent.loadConfig(new File(System.getProperty("user.dir") + "\src\extentReports\extent-config.xml"));
Please help with the given directory above.
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…