Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: portal-3.0.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      The PrimeFaces Users Portlet portlet tester will fail intermittently with the following errors:

      org.openqa.selenium.TimeoutException: 
      Timed out after 300 seconds waiting for visibility of element located by By.xpath: (//span[contains(@id,':screenNameCell')])[2]
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'cloud-10-0-10-195.lax.liferay.com', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-042stab123.9', java.version: '1.8.0_121'
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=38.6.1, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: 837f2575-866e-405a-8281-eed444c9ec1f
          at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:80)
          at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261)
          at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.waitFor(BrowserDriverImpl.java:471)
          at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.waitForElementDisplayed(BrowserDriverImpl.java:478)
          at com.liferay.faces.portal.test.integration.demo.PrimeFacesUsersPortletTester.runPrimeFacesUsersPortletTest_E_DetailViewFileUpload(PrimeFacesUsersPortletTester.java:474)
          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:50)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
          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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
          at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
          at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
          at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
          at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
          at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
          at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
          at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"(//span[contains(@id,':screenNameCell')])[2]"}
      Command duration or timeout: 8 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'cloud-10-0-10-195.lax.liferay.com', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-042stab123.9', java.version: '1.8.0_121'
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=38.6.1, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: 837f2575-866e-405a-8281-eed444c9ec1f
      *** Element info: {Using=xpath, value=(//span[contains(@id,':screenNameCell')])[2]}
          at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
          at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
          at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
          at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
          at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
          at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:500)
          at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
          at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
          at org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:899)
          at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:41)
          at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:205)
          at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:201)
          at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:238)
          ... 29 more
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"(//span[contains(@id,':screenNameCell')])[2]"}
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'cloud-10-0-10-195.lax.liferay.com', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-042stab123.9', java.version: '1.8.0_121'
      Driver info: driver.version: unknown
          at <anonymous class&gt;.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous309686443831088525webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
          at <anonymous class&gt;.FirefoxDriver.prototype.findElement(file:///tmp/anonymous309686443831088525webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10779)
          at <anonymous class&gt;.DelayedCommand.prototype.executeInternal_/h(file:///tmp/anonymous309686443831088525webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12661)
          at <anonymous class&gt;.DelayedCommand.prototype.executeInternal_(file:///tmp/anonymous309686443831088525webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12666)
          at <anonymous class&gt;.DelayedCommand.prototype.execute/<(file:///tmp/anonymous309686443831088525webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12608)
      
      java.lang.AssertionError: expected:<[Arthur, Benjamin, Carter, Charles, Elbridge, Francis, George, George, George, George, John, John, John, John, John, John, John, Josiah, Oliver, Philip, Roger, Samuel, Test, Thomas, Thomas, Thomas]> but was:<[Arthur, Benjamin, Carter, Charles, Elbridge, Arthur, Benjamin, Carter, Charles, Elbridge, Francis, George, George, George, George, John, John, John, John, John, John, John, Josiah, Oliver, Philip, Roger, Samuel, Test, Thomas, Thomas, Thomas]>
          at org.junit.Assert.fail(Assert.java:88)
          at org.junit.Assert.failNotEquals(Assert.java:834)
          at org.junit.Assert.assertEquals(Assert.java:118)
          at org.junit.Assert.assertEquals(Assert.java:144)
          at com.liferay.faces.portal.test.integration.demo.PrimeFacesUsersPortletTester.runPrimeFacesUsersPortletTest_C_UsersFilter(PrimeFacesUsersPortletTester.java:322)
          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:50)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
          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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
          at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
          at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
          at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
          at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
          at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
          at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
          at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      

      This issue is more common in Liferay's CI.

      These errors may be caused by PrimeFaces Issue #3584, so it may be necessary to work around this issue.

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann
              Reporter:
              kyle.stiemann Kyle Stiemann
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: