mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Reduce number of tests by single Selenium connection from 100 to 20.
Send quit command to Selenium.
This commit is contained in:
parent
891ec3e6fd
commit
e08ed087df
|
@ -56,15 +56,17 @@ public class SeleniumRunStrategy implements TestRunStrategy {
|
|||
@Override
|
||||
public void afterThread() {
|
||||
webDriver.get().close();
|
||||
webDriver.get().quit();
|
||||
webDriver.remove();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String runTest(Log log, String runtimeScript, TestCase testCase) throws IOException {
|
||||
commandsSent.set(commandsSent.get() + 1);
|
||||
if (commandsSent.get().equals(100)) {
|
||||
if (commandsSent.get().equals(20)) {
|
||||
commandsSent.set(0);
|
||||
webDriver.get().close();
|
||||
webDriver.get().quit();
|
||||
webDriver.set(new RemoteWebDriver(url, DesiredCapabilities.firefox()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user