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

Fix random test failure on layout-demo ITFileWidgetTest.testWidget

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.1-SNAPSHOT
    • Fix Version/s: 8.10-HF01, 9.1
    • Component/s: Layouts & Widgets

      Description

      Seen at https://qa.nuxeo.org/jenkins/job/master/job/addons_FT_nuxeo-platform-forms-layout-demo-master-webdriver/576/ for instance

      Error Message
      
      Unable to locate element: {"method":"id","selector":"fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message"}
      Command duration or timeout: 449 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
      System info: host: 'static', 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: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=42.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: a08879d2-2276-4771-8d8e-6f7d3f830a1e
      *** Element info: {Using=id, value=fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message}
      
      Stacktrace
      
      org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message"}
      Command duration or timeout: 449 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
      System info: host: 'static', 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: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=42.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: a08879d2-2276-4771-8d8e-6f7d3f830a1e
      *** Element info: {Using=id, value=fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message}
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	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.findElementById(RemoteWebDriver.java:413)
      	at org.openqa.selenium.By$ById.findElement(By.java:218)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
      	at org.nuxeo.ftest.formsLayoutDemo.AbstractWidgetPageTest.getEditWidgetMessage(AbstractWidgetPageTest.java:75)
      	at org.nuxeo.ftest.formsLayoutDemo.AbstractWidgetPageTest.checkValueRequired(AbstractWidgetPageTest.java:91)
      	at org.nuxeo.ftest.formsLayoutDemo.ITFileWidgetTest.testWidget(ITFileWidgetTest.java:54)
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message"}
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
      System info: host: 'static', 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 <anonymous class&gt;.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous8004006204911073519webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
      	at <anonymous class&gt;.fxdriver.Timer.prototype.setTimeout/<.notify(file:///tmp/anonymous8004006204911073519webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:625)
      
      Standard Output
      
      13:25:00,286 INFO  [AbstractTest] Starting test 'org.nuxeo.ftest.formsLayoutDemo.ITFileWidgetTest#testWidget'
      13:25:05,607 ERROR [AbstractTest] Test 'org.nuxeo.ftest.formsLayoutDemo.ITFileWidgetTest#testWidget' failed
      org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message"}
      Command duration or timeout: 449 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
      System info: host: 'static', 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: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=42.0, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
      Session ID: a08879d2-2276-4771-8d8e-6f7d3f830a1e
      *** Element info: {Using=id, value=fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message}
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	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.findElementById(RemoteWebDriver.java:413)
      	at org.openqa.selenium.By$ById.findElement(By.java:218)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)
      	at org.nuxeo.ftest.formsLayoutDemo.AbstractWidgetPageTest.getEditWidgetMessage(AbstractWidgetPageTest.java:75)
      	at org.nuxeo.ftest.formsLayoutDemo.AbstractWidgetPageTest.checkValueRequired(AbstractWidgetPageTest.java:91)
      	at org.nuxeo.ftest.formsLayoutDemo.ITFileWidgetTest.testWidget(ITFileWidgetTest.java:54)
      	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.RunAfters.evaluate(RunAfters.java:27)
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:103)
      	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.NoSuchElementException: Unable to locate element: {"method":"id","selector":"fileWidgetLayout_edit_form:nxl_fileWidgetLayout:nxw_fileWidget_message"}
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
      System info: host: 'static', 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 <anonymous class&gt;.FirefoxDriver.prototype.findElementInternal_(file:///tmp/anonymous8004006204911073519webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
      	at <anonymous class&gt;.fxdriver.Timer.prototype.setTimeout/<.notify(file:///tmp/anonymous8004006204911073519webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:625)
      13:25:05,617 INFO  [AbstractTest] Created screenshot file named '/opt/jenkins/workspace/master/addons_FT_nuxeo-platform-forms-layout-demo-master-webdriver/ftest/webdriver/target/screenshot-lastpage-org.nuxeo.ftest.formsLayoutDemo.ITFileWidgetTest-testWidget579672015833416768.png'
      13:25:05,617 INFO  [AbstractTest] Created page source file named '/opt/jenkins/workspace/master/addons_FT_nuxeo-platform-forms-layout-demo-master-webdriver/ftest/webdriver/target/screenshot-lastpage-org.nuxeo.ftest.formsLayoutDemo.ITFileWidgetTest-testWidget3781857596145719722.html'
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: