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

Fix random webdriver failure on PermissionsSubPage waitForPermissionAdded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 8.3
    • Fix Version/s: 11.1
    • Component/s: Seam / JSF UI, Tests

      Description

      See https://qa.nuxeo.org/jenkins/job/master/job/nuxeo-master-fullbuild-maven3.2/49/testReport/junit/org.nuxeo.ftest.cap/ITPermissionsTest/testDocumentPermissions/

      Error Message
      
      Timed out after 30 seconds waiting for org.nuxeo.functionaltests.pages.tabs.PermissionsSubPage$$Lambda$29/1775639151@33f3ebfc
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'linovh01-1', ip: '172.17.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-24-generic', java.version: '1.8.0_77'
      Driver info: driver.version: unknown
      
      Stacktrace
      
      org.openqa.selenium.TimeoutException: Timed out after 30 seconds waiting for org.nuxeo.functionaltests.pages.tabs.PermissionsSubPage$$Lambda$29/1775639151@33f3ebfc
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'linovh01-1', ip: '172.17.0.3', 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.Locator.waitUntilGivenFunctionIgnoring(Locator.java:498)
      	at org.nuxeo.functionaltests.Locator.waitUntilGivenFunction(Locator.java:460)
      	at org.nuxeo.functionaltests.pages.tabs.PermissionsSubPage.waitForPermissionAdded(PermissionsSubPage.java:150)
      	at org.nuxeo.functionaltests.pages.tabs.PermissionsSubPage.grantPermission(PermissionsSubPage.java:142)
      	at org.nuxeo.ftest.cap.ITPermissionsTest.testPermissionsOn(ITPermissionsTest.java:200)
      	at org.nuxeo.ftest.cap.ITPermissionsTest.testDocumentPermissions(ITPermissionsTest.java:159)
      
      Standard Output
      
      03:44:35,620 WARN  [PermissionsSubPage] Screenshot taken : /opt/jenkins/workspace/master/nuxeo-master-fullbuild-maven3.2/nuxeo-distribution/nuxeo-distribution-cap-webdriver-tests/target/PermissionSubPage-add-permission-1423205109226241166.png
      03:45:06,117 ERROR [AbstractTest] Test 'org.nuxeo.ftest.cap.ITPermissionsTest#testDocumentPermissions' failed
      org.openqa.selenium.TimeoutException: Timed out after 30 seconds waiting for org.nuxeo.functionaltests.pages.tabs.PermissionsSubPage$$Lambda$29/1775639151@33f3ebfc
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'linovh01-1', ip: '172.17.0.3', 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.Locator.waitUntilGivenFunctionIgnoring(Locator.java:498)
      	at org.nuxeo.functionaltests.Locator.waitUntilGivenFunction(Locator.java:460)
      	at org.nuxeo.functionaltests.pages.tabs.PermissionsSubPage.waitForPermissionAdded(PermissionsSubPage.java:150)
      	at org.nuxeo.functionaltests.pages.tabs.PermissionsSubPage.grantPermission(PermissionsSubPage.java:142)
      	at org.nuxeo.ftest.cap.ITPermissionsTest.testPermissionsOn(ITPermissionsTest.java:200)
      	at org.nuxeo.ftest.cap.ITPermissionsTest.testDocumentPermissions(ITPermissionsTest.java:159)
      	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.nuxeo.runtime.test.runner.FeaturesRunner$15.evaluate(FeaturesRunner.java:467)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeMethodRunStatement.evaluate(FeaturesRunner.java:346)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:362)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:393)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:412)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:96)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	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.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:285)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:525)
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:268)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	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)
      

      Random was already visible with NXP-19932, the debug screenshot shows that the permission selection is not done correctly before adding the permission (hence the timeout waiting for the permission to be displayed on tjhe page)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: