.withBrowser(FIREFOX) .withUrls(ImmutableMap.of("http://testurl", urlConfig)) .withWindowHeight(100) .build(); testee.close();
.withBrowser(CHROME_HEADLESS) .withUrls(ImmutableMap.of("testurl", urlConfig)) .withWindowHeight(100) .build();
.withBrowser(FIREFOX) .withUrls(ImmutableMap.of("http://testurl", urlConfig)) .withWindowHeight(100) .build(); testee.close();
.withBrowser(FIREFOX) .withUrls(ImmutableMap.of("http://testurl", urlConfig)) .withWindowHeight(100) .build();
public static Builder copyOfBuilder(JobConfig jobConfig) { return configBuilder() .withName(jobConfig.name) .withUrls(jobConfig.urls) .withHttpCheck(jobConfig.httpCheck) .withBrowser(jobConfig.browser) .withGlobalWaitAfterPageLoad(jobConfig.globalWaitAfterPageLoad) .withPageLoadTimeout(jobConfig.pageLoadTimeout) .withWindowHeight(jobConfig.windowHeight) .withThreads(jobConfig.threads) .withScreenshotRetries(jobConfig.screenshotRetries) .withReportFormat(jobConfig.reportFormat) .withGlobalTimeout(jobConfig.globalTimeout) .withDebug(jobConfig.debug) .withLogToFile(jobConfig.logToFile) .withCheckForErrorsInLog(jobConfig.checkForErrorsInLog); }
@Before public void setup() { initMocks(this); runConfig = RunStepConfig.jLineupRunConfigurationBuilder().withWorkingDirectory("src/test/resources").build(); jobConfig = configBuilder() .withUrls(ImmutableMap.of( "http://url", new UrlConfig(ImmutableList.of("/"), 0.05f, null, null, null, null, ImmutableList.of(1001), 10000, 2, 0, 0, 0, null, 5, new HttpCheckConfig(),0, false))) .withWindowHeight(WINDOW_HEIGHT) .build(); testee = new ScreenshotsComparator(runConfig, jobConfig, fileService, imageService); }