@Test public void testGetTestRunner() throws Exception { when(sahiProxyProperties.getProxyPort()).thenReturn(9000); final TestRunner testRunner = testling.getTestRunner(); final String s = testRunner.toString(); assertContains(s, "sahiHost = localhost"); assertContains(s, "port = 9000"); assertContains(s, "threads = 1"); }
protected TestRunner getTestRunner() { String threads = "1"; final String sahiHost = "localhost"; final String sahiPort = sahiProxyProperties.getProxyPort().toString(); String startUrl = String.format("http: logger.info("connect Sahi-TestRunner:{}", startUrl); return new TestRunner( testSuite.getAbsolutePathOfTestSuiteFile(), testSuite.getBrowserName(), startUrl, sahiHost, sahiPort, threads); }
SahiConnector { protected TestRunner getTestRunner() { String threads = "1"; final String sahiHost = "localhost"; final String sahiPort = sahiProxyProperties.getProxyPort().toString(); String startUrl = String.format("http: logger.info("connect Sahi-TestRunner:{}", startUrl); return new TestRunner( testSuite.getAbsolutePathOfTestSuiteFile(), testSuite.getBrowserName(), startUrl, sahiHost, sahiPort, threads); } }
SahiConnector { protected TestRunner getTestRunner() { String threads = "1"; final String sahiHost = "localhost"; final String sahiPort = sahiProxyProperties.getProxyPort().toString(); String startUrl = String.format("http: logger.info("connect Sahi-TestRunner:{}", startUrl); return new TestRunner( testSuite.getAbsolutePathOfTestSuiteFile(), testSuite.getBrowserName(), startUrl, sahiHost, sahiPort, threads); }  }
SahiConnector { protected TestRunner getTestRunner() { String threads = "1"; final String sahiHost = "localhost"; final String sahiPort = sahiProxyProperties.getProxyPort().toString(); String startUrl = String.format("http: logger.info("connect Sahi-TestRunner:{}", startUrl); return new TestRunner( testSuite.getAbsolutePathOfTestSuiteFile(), testSuite.getBrowserName(), startUrl, sahiHost, sahiPort, threads); }  void init(); void startSahiTestSuite(); }
SahiConnector { protected TestRunner getTestRunner() { String threads = "1"; final String sahiHost = "localhost"; final String sahiPort = sahiProxyProperties.getProxyPort().toString(); String startUrl = String.format("http: logger.info("connect Sahi-TestRunner:{}", startUrl); return new TestRunner( testSuite.getAbsolutePathOfTestSuiteFile(), testSuite.getBrowserName(), startUrl, sahiHost, sahiPort, threads); }  void init(); void startSahiTestSuite();  }