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

Fix random JavaScript errors detected by webdriver tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7.4-SNAPSHOT
    • Fix Version/s: 8.2
    • Component/s: Seam / JSF UI

      Description

      Some webdriver tests generate JavaScript errors since theme removal merge, randomly:

      http://qa.nuxeo.org/jenkins/job/IT-nuxeo-master-tests-cap-tomcat/1171/testReport/junit/org.nuxeo.ftest.cap/ITSearchTabTest/testSearch/

      00:14:36,564 ERROR [AbstractTest] Test 'org.nuxeo.ftest.cap.ITSearchTabTest#testSearch' failed
      java.lang.AssertionError: 6 Javascript error(s) detected: ["ReferenceError: Seam is not defined" at http://localhost:8080/nuxeo/seam/resource/remoting/interface.js?previewActions&clipboardActions&FileManageActions&workspaceActions&documentActions&popupHelper line 1, "ReferenceError: Seam is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 61, "ReferenceError: setupContextMenu is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 394, "ReferenceError: Droppables is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 431, "ReferenceError: setupContextMenu is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 891, "TypeError: jQuery(...).preventDoubleSubmission is not a function" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 48]
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.nuxeo.functionaltests.AbstractTest.checkJavascriptError(AbstractTest.java:400)
      	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:497)
      	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.RunAfters.evaluate(RunAfters.java:33)
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:94)
      	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)
      

      http://qa.nuxeo.org/jenkins/job/ondemand-testandpush-check-master/592/testReport/junit/org.nuxeo.ftest.cap/ITBlobActionsTest/testBlobPreviewAction/

      java.lang.AssertionError: 6 Javascript error(s) detected: ["ReferenceError: Seam is not defined" at http://localhost:8080/nuxeo/seam/resource/remoting/interface.js?previewActions&clipboardActions&FileManageActions&workspaceActions&documentActions&popupHelper line 1, "ReferenceError: Seam is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 61, "ReferenceError: setupContextMenu is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 394, "ReferenceError: Droppables is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 431, "ReferenceError: setupContextMenu is not defined" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 891, "TypeError: jQuery(...).preventDoubleSubmission is not a function" at http://localhost:8080/nuxeo/nxpath/default/default-domain@view_documents?mainTabId=MAIN_TABS%3Adocuments&tabIds=MAIN_TABS%3Adocuments&conversationId=0NXMAIN line 48]
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.nuxeo.functionaltests.AbstractTest.checkJavascriptError(AbstractTest.java:400)
      	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:497)
      	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.RunAfters.evaluate(RunAfters.java:33)
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:94)
      	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)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: