private ReportService getReportService() { if (reportService == null) { reportService = new ReportService(getOutputDirectory(), getDefaultReporters()); } return reportService; }
private ReportService getReportService() { if (reportService == null) { reportService = new ReportService(getOutputDirectory(), getDefaultReporters()); } return reportService; }
public static ReportService getReportService(Configuration systemConfiguration) { return new ReportService(systemConfiguration.getOutputDirectory(), ReportService.getDefaultReporters()); }
public static ReportService getReportService(Configuration systemConfiguration) { return new ReportService(systemConfiguration.getOutputDirectory(), ReportService.getDefaultReporters()); }
public static ReportService getReportService(Configuration systemConfiguration) { return new ReportService(systemConfiguration.getOutputDirectory(), ReportService.getDefaultReporters()); }
private ThucydidesContext(String defaultDriver, StepListener... additionalListeners) { configuration = Injectors.getInjector().getInstance(Configuration.class); webdriverManager = Injectors.getInjector().getInstance(WebdriverManager.class); outputDirectory = configuration.getOutputDirectory(); this.defaultDriver = defaultDriver; if (defaultDriver != null) { webDriverFactory = new WebDriverFactory(); pages = new Pages(getDriver()); stepFactory = new StepFactory(pages); } else { stepFactory = new StepFactory(); } registerStepListeners(additionalListeners); reportService = new ReportService(outputDirectory, ReportService.getDefaultReporters()); }
private ThucydidesContext(String defaultDriver, StepListener... additionalListeners) { configuration = Injectors.getInjector().getInstance(Configuration.class); webdriverManager = Injectors.getInjector().getInstance(WebdriverManager.class); outputDirectory = configuration.getOutputDirectory(); this.defaultDriver = defaultDriver; if (defaultDriver != null) { webDriverFactory = new WebDriverFactory(); pages = new Pages(getDriver()); stepFactory = new StepFactory(pages); } else { stepFactory = new StepFactory(); } registerStepListeners(additionalListeners); reportService = new ReportService(outputDirectory, ReportService.getDefaultReporters()); }
private ThucydidesContext(String defaultDriver, StepListener... additionalListeners) { configuration = ConfiguredEnvironment.getConfiguration(); webdriverManager = ThucydidesWebDriverSupport.getWebdriverManager(); outputDirectory = configuration.getOutputDirectory(); this.defaultDriver = defaultDriver; if (defaultDriver != null) { pages = new Pages(getDriver()); stepFactory = StepFactory.getFactory().usingPages(pages); } else { stepFactory = StepFactory.getFactory(); } registerStepListeners(additionalListeners); reportService = new ReportService(outputDirectory, ReportService.getDefaultReporters()); }