Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void init() {
- ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(OUTPUT_FOLDER + FILE_NAME);
- String js = "$(document).ready(function() { $('.test.fatal, .test.fail').click(); })";
- htmlReporter.config().setDocumentTitle(Util.readPropFile("PROJECT_NAME")+" Automation Report");
- htmlReporter.config().setReportName(Util.readPropFile("PROJECT_NAME")+" Test Report");
- htmlReporter.config().setTestViewChartLocation(ChartLocation.BOTTOM);
- htmlReporter.config().setTheme(Theme.DARK);
- htmlReporter.config().setCSS("body:not(.default) {overflow: scroll !important;}");
- htmlReporter.config().setJS(js);
- extent = new ExtentReports();
- // extentXReporter = new ExtentXReporter("127.0.0.1",27017);
- extentXReporter = new ExtentXReporter(Util.readPropFile("HOST_NAME"),27017);
- extentXReporter.loadXMLConfig("extent-config.xml");
- extentXReporter.setAnalysisStrategy(AnalysisStrategy.CLASS);
- extentXReporter.config().setProjectName(Util.readPropFile("PROJECT_NAME"));
- extentXReporter.config().setReportName(Util.readPropFile("BUILD"));
- extent.attachReporter(htmlReporter);
- extent.attachReporter(htmlReporter,extentXReporter);
- }
Add Comment
Please, Sign In to add comment