Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19922

Fix random webdriver failure on ITGroupsTest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.3
    • Component/s: Seam / JSF UI, Tests
    • Tags:
    • Team:
      AT
    • Sprint:
      nxAT Sprint 8.3.2

      Description

      Detection of the end of an ajax request in webdriver tests can produce the following error:

      org.nuxeo.ftest.cap.ITGroupsTest.testCreateViewDeleteGroup

      01:29:49,867 ERROR [AbstractTest] Test 'org.nuxeo.ftest.cap.ITGroupsTest#testCreateViewDeleteGroup' failed
      org.openqa.selenium.TimeoutException: not loaded: searchInput
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'ea324cb5d1e6', ip: '172.17.0.7', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-24-generic', java.version: '1.8.0_77'
      Driver info: driver.version: unknown
      	at org.nuxeo.functionaltests.AbstractTest.fillElement(AbstractTest.java:377)
      	at org.nuxeo.functionaltests.AbstractTest.asPage(AbstractTest.java:321)
      	at org.nuxeo.functionaltests.pages.AbstractPage.asPage(AbstractPage.java:71)
      	at org.nuxeo.functionaltests.pages.admincenter.usermanagement.GroupCreationFormPage.cancelCreation(GroupCreationFormPage.java:77)
      	at org.nuxeo.ftest.cap.ITGroupsTest.testCreateViewDeleteGroup(ITGroupsTest.java:84)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:96)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runners.Suite.runChild(Suite.java:127)
      	at org.junit.runners.Suite.runChild(Suite.java:26)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: org.openqa.selenium.TimeoutException: Timed out after 30 seconds waiting for org.nuxeo.functionaltests.AbstractTest$$Lambda$9/43650267@6e8a9c30
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'ea324cb5d1e6', ip: '172.17.0.7', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-24-generic', java.version: '1.8.0_77'
      Driver info: driver.version: unknown
      	at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:292)
      	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261)
      	at org.nuxeo.functionaltests.AbstractTest.fillElement(AbstractTest.java:363)
      	... 43 more
      

      visible on https://qa.nuxeo.org/jenkins/job/master/job/FT-nuxeo-master-webdriver-cap-tomcat/80/ (attached screenshot)

      Other tests are failign after that first error which leaves the server with an existing group:

      01:39:54,159 ERROR [AbstractTest] Test 'org.nuxeo.ftest.cap.ITUsersGroupsTest#testSearchUsersGroupsFromHome' failed
      Exception:
        status: 500
        code: org.nuxeo.ecm.webengine.WebException
        type: Error
        exception: Group already exists
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: