Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-491

Fix flaky dataIT test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • Workbench
    • None

    Description

      test-e2e frequently failed due to timeout > 60s.

      Set MAX_BROWSER_TIMEOUT_SEC to 120s, could reduce the risk of failure.

      caused by  ./submarine/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/dataIT.java

      pollingWait(By.cssSelector("input[ng-reflect-name='userName']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("admin");
      pollingWait(By.cssSelector("input[ng-reflect-name='password']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("admin");
      clickAndWait(By.cssSelector("button[class='login-form-button ant-btn ant-btn-primary']"));
      pollingWait(By.cssSelector("a[routerlink='/workbench/dashboard']"), MAX_BROWSER_TIMEOUT_SEC);
      

      Error message:

      dataNavigation(org.apache.submarine.integration.dataIT)  Time elapsed: 62.887 sec  <<< FAILURE!8555org.openqa.selenium.TimeoutException: Expected condition failed: waiting for org.apache.submarine.AbstractSubmarineIT$1@6cdba6dc (tried for 60 second(s) with 1 SECONDS interval)8556	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)8557	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)8558	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)8559	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)8560	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)8561	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)8562	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)8563	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)8564	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)8565	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)8566	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:371)8567	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:473)8568	at org.openqa.selenium.By$ByXPath.findElement(By.java:361)8569	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)8570	at org.apache.submarine.AbstractSubmarineIT$1.apply(AbstractSubmarineIT.java:113)8571	at org.apache.submarine.AbstractSubmarineIT$1.apply(AbstractSubmarineIT.java:111)8572	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:208)8573	at org.apache.submarine.AbstractSubmarineIT.pollingWait(AbstractSubmarineIT.java:111)8574	at org.apache.submarine.integration.dataIT.dataNavigation(dataIT.java:63)
      

       

      Attachments

        Activity

          People

            pingsutw Kevin Su
            pingsutw Kevin Su
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: