Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartClientWebDriver and SmartClientFirefoxDriver Why does it NOT work ? Is there better documentation available ?

    I have this test case using pure Selenium artifacts


    Which works beautifully, the webdriver loads opening new FireFox browser and assertion completes.
    Code:
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.AfterAll;
    import org.junit.jupiter.api.BeforeAll;
    
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.firefox.FirefoxDriver;
    import org.openqa.selenium.By;
    import org.openqa.selenium.WebElement;
    
    public class LandingPageTest {
    
    private static final String FIREFOX_DRIVER_PATH = LandingPageTest.class.getClassLoader().getResource("drivers/geckodriver").getPath();
    static {
    System.setProperty("webdriver.gecko.driver", FIREFOX_DRIVER_PATH);
    }
    
    private static final String LANDING_PAGE = "http://localhost:8080";
    
    private static WebDriver driver;
    
    @BeforeAll
    public static void initializeDriver() {
    try{
    driver = new FirefoxDriver();
    }catch(Exception err){
    err.printStackTrace();
    }
    
    }
    
    @AfterAll
    public static void closeDriver() {
    driver.close();
    }
    
    @Test
    public void validateLandingPage() {
    driver.navigate().to(LANDING_PAGE);
    assertEquals("App", driver.getTitle(), "Failed Page Title Check");
    WebElement e = driver.findElement(By.xpath("//div[@id='isc_3']/table/tbody/tr/td"));
    assertEquals("ZCloud App", e.getText());
    }
    
    }
    Now I try the SmartGWT artifacts SmartClientFirefoxDriver and SmartClientWebDriver, new FireFox window opens and then it just stalls and throws exception.
    Code:
    package com.ricoh.mdm.zcloud.uitests;
    
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    import com.isomorphic.webdriver.ByScLocator;
    import com.isomorphic.webdriver.SmartClientFirefoxDriver;
    import com.isomorphic.webdriver.SmartClientWebDriver;
    import org.junit.jupiter.api.Test;
    
    import org.junit.jupiter.api.AfterAll;
    import org.junit.jupiter.api.BeforeAll;
    
    public class ZCloudLandingPageTest {
    
    private static final String FIREFOX_DRIVER_PATH=ZCloudLandingPageTest.class.getClassLoader().getResource("drivers/geckodriver").getPath();
    
    
    static {
    System.setProperty("webdriver.gecko.driver", FIREFOX_DRIVER_PATH);
    }
    
    private static final String LANDING_PAGE = "http://localhost:8080";
    
    private static SmartClientWebDriver driver;
    
    @BeforeAll
    public static void initializeDriver() {
    try{
    driver = new SmartClientFirefoxDriver();
    
    }catch(Exception err){
    err.printStackTrace();
    }
    
    }
    
    @AfterAll
    public static void closeDriver() {
    driver.close();;
    }
    
    @Test
    public void shouldAnswerWithTrue() {
    assertTrue(true);
    }
    
    @Test
    public void validateLandingPage() {
    driver.setBaseUrl(LANDING_PAGE);
    driver.get("index.html", true);
    assertEquals("ZCloud App", driver.getTitle(), "Failed Page Title Check");
    }
    }
    Exception:

    org.openqa.selenium.WebDriverException: Timed out waiting 45 seconds for Firefox to start.
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.10'

    Driver info: driver.version: SmartClientFirefoxDriver
    at org.openqa.selenium.firefox.XpiDriverService.waitUntilAvailable(XpiDriverService.java:247)
    at org.openqa.selenium.firefox.XpiDriverService.start(XpiDriverService.java:159)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:147)
    at com.isomorphic.webdriver.SmartClientFirefoxDriver.<init>(SmartClientFirefoxDriver.java:142)
    at com.isomorphic.webdriver.SmartClientFirefoxDriver.<init>(SmartClientFirefoxDriver.java:75)
    at com.ricoh.mdm.zcloud.uitests.ZCloudLandingPageTest.initializeDriver(ZCloudLandingPageTest.java:37)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688)
    at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
    at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
    at org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:126)
    at org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeAllMethod(TimeoutExtension.java:68)
    at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
    at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
    at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
    at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
    at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllMethods$9(ClassBasedTestDescriptor.java:384)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllMethods(ClassBasedTestDescriptor.java:382)
    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:196)
    at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:78)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:136)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
    at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
    at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
    at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
    at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
    at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
    at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
    at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
    at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
    at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
    at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)
    at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
    at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:127)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:377)
    at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:138)
    at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:465)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:451)
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:35940/hub/status] to be available after 45006 ms
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
    at org.openqa.selenium.firefox.XpiDriverService.waitUntilAvailable(XpiDriverService.java:245)
    ... 66 more
    Caused by: java.util.concurrent.TimeoutException
    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:204)
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
    ... 67 more
    [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 45.84 s <<< FAILURE! - in com.ricoh.mdm.zcloud.uitests.ZCloudLandingPageTest
    [ERROR] com.ricoh.mdm.zcloud.uitests.ZCloudLandingPageTest.validateLandingPage Time elapsed: 0.003 s <<< ERROR!
    java.lang.NullPointerException
    at com.ricoh.mdm.zcloud.uitests.ZCloudLandingPageTest.validateLandingPage(ZCloudLandingPageTest.java:57)
    Last edited by Isomorphic; 12 Jul 2021, 13:43.

    #2
    From the version of your Selenium JAR, it looks like you're using SGWT 13.0d, but please confirm, and include your specific version in the future to help us analyze the issue.

    What version of Firefox are you trying to launch, what geckodriver version are you using? Have you tried on other platforms such as Windows or Linux?

    There is documentation. You can find javadoc on SmartClientWebDriver and related APIs in our server docs, and in the client docs for JUnitWebDriver, you can find an example of actually running SmartClientWebDriver.

    Comment


      #3
      My Project POM:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>

      <groupId>com.ricoh.mdm.zcloud</groupId>
      <artifactId>com.ricoh.mdm.zcloud.admintool.uitests</artifactId>
      <version>1.0-SNAPSHOT</version>
      <packaging>jar</packaging>

      <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <java.version>11</java.version>
      <maven.compiler.source>${java.version}</maven.compiler.source>
      <maven.compiler.target>${java.version}</maven.compiler.target>
      <junit>5.7.2</junit>
      <maven.shade>3.2.2</maven.shade>
      <maven.compiler>3.8.1</maven.compiler>
      <maven.surefire>3.0.0-M5</maven.surefire>
      <smartgwt.version>12.1-p20210626</smartgwt.version>
      <seleniumhq.version>3.141.59</seleniumhq.version>
      </properties>

      <dependencies>
      <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>${junit}</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>${junit}</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-params</artifactId>
      <version>${junit}</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>${seleniumhq.version}</version>
      </dependency>
      <dependency>
      <groupId>com.isomorphic.smartgwt.power</groupId>
      <artifactId>isomorphic-webdriver</artifactId>
      <version>${smartgwt.version}</version>
      <scope>test</scope>
      </dependency>
      </dependencies>

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.8.1</version>
      <configuration>
      <source>${maven.compiler.source}</source>
      <target>${maven.compiler.target}</target>
      </configuration>
      </plugin>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>3.0.0-M4</version>
      </plugin>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-shade-plugin</artifactId>
      <version>${maven.shade}</version>
      <executions>
      <execution>
      <phase>package</phase>
      <goals>
      <goal>shade</goal>
      </goals>
      <configuration>
      <transformers>
      <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
      <mainClass>com.ricoh.mdm.zcloud.App</mainClass>
      </transformer>
      </transformers>
      </configuration>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>
      </project>


      Environment:
      Windows 10 Pro
      20H2
      OS Build: 19042.1052

      Gecko Driver : https://github.com/mozilla/geckodriver/releases (0.29.1) - geckodriver-v0.29.1-win64.zip

      FireFox Version On Machine: 89.0.2 (64-bit)

      Test Program:

      import static org.junit.jupiter.api.Assertions.assertTrue;
      import static org.junit.jupiter.api.Assertions.assertEquals;

      import com.isomorphic.webdriver.ByScLocator;
      import com.isomorphic.webdriver.SmartClientFirefoxDriver;
      import com.isomorphic.webdriver.SmartClientWebDriver;
      import org.junit.jupiter.api.Test;

      import org.junit.jupiter.api.AfterAll;
      import org.junit.jupiter.api.BeforeAll;
      import org.openqa.selenium.WebDriver;
      import org.openqa.selenium.firefox.FirefoxDriver;

      import org.openqa.selenium.By;
      import org.openqa.selenium.WebElement;


      public class ZCloudLandingPageTest {

      private static final String FIREFOX_DRIVER_PATH=ZCloudLandingPageTest.class.getClassLoader().getResource("drivers/geckodriver.exe").getPath();


      static {
      System.setProperty("webdriver.gecko.driver", FIREFOX_DRIVER_PATH);
      }

      private static final String LANDING_PAGE = "http://localhost:8080";

      //private static WebDriver driver;
      private static SmartClientWebDriver driver;

      @BeforeAll
      public static void initializeDriver() {
      try{
      //driver = new FirefoxDriver();

      driver = new SmartClientFirefoxDriver();
      driver.setBaseUrl(LANDING_PAGE);

      }catch(Exception err){
      err.printStackTrace();
      }

      }

      @AfterAll
      public static void closeDriver() {
      //driver.close();
      driver.quit();
      }

      @Test
      public void validateLandingPage() {
      driver.get("index.html", true);
      //driver.navigate().to(LANDING_PAGE);

      assertEquals("ZCloud App", driver.getTitle(), "Failed Page Title Check");

      //WebElement e = driver.findElement(By.xpath("//div/table/tbody/tr/td"));
      //assertEquals("ZCloud App", e.getText());

      //WebElement label =driver.findElement(By.id("ZCloud_label_1"));
      //assertEquals("ZCloud App", label.getText());
      }
      }

      When I run the test, Firefox Windows Opens and then it just hangs for a few minutes and then the error is displayed in the Junit Test Case.

      Error:

      org.openqa.selenium.WebDriverException: Timed out waiting 45 seconds for Firefox to start.
      Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
      System info: host: 'YKF-MALCOLM-PC', ip: '10.85.22.76', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.9'
      Driver info: driver.version: SmartClientFirefoxDriver
      at org.openqa.selenium.firefox.XpiDriverService.waitUntilAvailable(XpiDriverService.java:247)
      at org.openqa.selenium.firefox.XpiDriverService.start(XpiDriverService.java:159)
      at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
      at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
      at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
      at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:147)
      at com.isomorphic.webdriver.SmartClientFirefoxDriver.<init>(SmartClientFirefoxDriver.java:142)
      at com.isomorphic.webdriver.SmartClientFirefoxDriver.<init>(SmartClientFirefoxDriver.java:75)
      at com.ricoh.mdm.zcloud.ZCloudLandingPageTest.initializeDriver(ZCloudLandingPageTest.java:39)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688)
      at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
      at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
      at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
      at org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:126)
      at org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeAllMethod(TimeoutExtension.java:68)
      at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
      at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
      at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
      at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
      at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
      at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
      at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
      at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
      at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllMethods$9(ClassBasedTestDescriptor.java:384)
      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllMethods(ClassBasedTestDescriptor.java:382)
      at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:196)
      at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:78)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:136)
      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
      at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
      at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
      at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
      at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
      at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
      at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
      at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
      at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
      at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
      at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
      at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
      at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
      at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
      at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
      at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:84)
      at org.eclipse.jdt.internal.junit5.runner.JUnit5TestReference.run(JUnit5TestReference.java:98)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:768)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:464)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210)
      Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:13712/hub/status] to be available after 45014 ms
      at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
      at org.openqa.selenium.firefox.XpiDriverService.waitUntilAvailable(XpiDriverService.java:245)
      ... 66 more
      Caused by: java.util.concurrent.TimeoutException
      at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:204)
      at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156)
      at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
      ... 67 more


      If I comment our SmartClientWebDriver, SmartClientFirefoxDriver and just use the Selenium classes the test program works

      Comment


        #4
        So you're actually using SGWT 12.1? Have you tried using the latest, SGWT 13.0d? Note that our internal testing uses the JARs shipped with SGWT, so if you update 3rd party JARs yourself to more recent versions, you may hit issues.

        Comment


          #5
          Yes using 12.1


          I will remove selenium and jnuit5 dependencies and only keep smartgwt dependecies and give it a shot. I will update.

          Comment

          Working...
          X