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

wizard tests fail with valid CLID

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF01, 10.1
    • Component/s: Tests, Wizard

      Description

      When using a valid CLID the tests fail with

      14:34:19 -------------------------------------------------------
      14:34:19  T E S T S
      14:34:19 -------------------------------------------------------
      14:34:22 Running org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests
      14:34:23 14:34:23,441 WARN  [LogTestWatchman] Cannot log on server message: Starting test 'org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests#runWizardAndRestart'
      14:35:16 14:35:16,531 ERROR [LogTestWatchman] Test 'org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests#runWizardAndRestart' failed
      14:35:16 org.openqa.selenium.NoSuchElementException: Couldn't find element 'By.id: CLID' after timeout
      14:35:16 For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      14:35:16 Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      14:35:16 System info: host: 'itslave810', ip: '172.17.0.6', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-92-generic', java.version: '1.8.0_77'
      14:35:16 Driver info: driver.version: unknown
      14:35:16 	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:248)
      14:35:16 	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:200)
      14:35:16 	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:173)
      14:35:16 	at org.nuxeo.functionaltests.pages.AbstractPage.findElementWithTimeout(AbstractPage.java:202)
      14:35:16 	at org.nuxeo.functionaltests.pages.wizard.SummaryWizardPage.getRegistration(SummaryWizardPage.java:50)
      14:35:16 	at org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests.runWizardAndRestart(ITWizardAndUpdateCenterTests.java:207)
      14:35:16 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:35:16 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      14:35:16 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      14:35:16 	at java.lang.reflect.Method.invoke(Method.java:498)
      14:35:16 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      14:35:16 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      14:35:16 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      14:35:16 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      14:35:16 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      14:35:16 	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:117)
      14:35:16 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      14:35:16 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      14:35:16 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      14:35:16 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      14:35:16 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      14:35:16 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      14:35:16 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      14:35:16 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      14:35:16 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      14:35:16 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      14:35:16 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      14:35:16 	at org.junit.runners.Suite.runChild(Suite.java:128)
      14:35:16 	at org.junit.runners.Suite.runChild(Suite.java:27)
      14:35:16 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      14:35:16 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      14:35:16 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      14:35:16 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      14:35:16 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      14:35:16 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      14:35:16 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      14:35:16 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      14:35:16 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      14:35:16 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      14:35:16 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      14:35:16 Tests run: 3, Failures: 0, Errors: 1, Skipped: 2, Time elapsed: 53.713 sec <<< FAILURE! - in org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests
      14:35:16 runWizardAndRestart(org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests)  Time elapsed: 53.634 sec  <<< ERROR!
      14:35:16 org.openqa.selenium.NoSuchElementException: Couldn't find element 'By.id: CLID' after timeout
      14:35:16 For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      14:35:16 Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      14:35:16 System info: host: 'itslave810', ip: '172.17.0.6', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-92-generic', java.version: '1.8.0_77'
      14:35:16 Driver info: driver.version: unknown
      14:35:16 	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:248)
      14:35:16 	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:200)
      14:35:16 	at org.nuxeo.functionaltests.Locator.findElementWithTimeout(Locator.java:173)
      14:35:16 	at org.nuxeo.functionaltests.pages.AbstractPage.findElementWithTimeout(AbstractPage.java:202)
      14:35:16 	at org.nuxeo.functionaltests.pages.wizard.SummaryWizardPage.getRegistration(SummaryWizardPage.java:50)
      14:35:16 	at org.nuxeo.ftest.wizard.ITWizardAndUpdateCenterTests.runWizardAndRestart(ITWizardAndUpdateCenterTests.java:207)
      14:35:16 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:35:16 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      14:35:16 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      14:35:16 	at java.lang.reflect.Method.invoke(Method.java:498)
      14:35:16 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      14:35:16 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      14:35:16 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      14:35:16 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      14:35:16 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      14:35:16 	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:117)
      14:35:16 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      14:35:16 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      14:35:16 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      14:35:16 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      14:35:16 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      14:35:16 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      14:35:16 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      14:35:16 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      14:35:16 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      14:35:16 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      14:35:16 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      14:35:16 	at org.junit.runners.Suite.runChild(Suite.java:128)
      14:35:16 	at org.junit.runners.Suite.runChild(Suite.java:27)
      14:35:16 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      14:35:16 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      14:35:16 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      14:35:16 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      14:35:16 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      14:35:16 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      14:35:16 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      14:35:16 	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      14:35:16 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      14:35:16 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      14:35:16 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      14:35:16 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      14:35:16 
      14:35:16 
      14:35:16 Results :
      14:35:16 
      14:35:16 Tests in error: 
      14:35:16   ITWizardAndUpdateCenterTests.runWizardAndRestart:207 ยป NoSuchElement Couldn't ...
      14:35:16 
      14:35:16 Tests run: 3, Failures: 0, Errors: 1, Skipped: 2
      14:35:16 
      14:35:16 [INFO] 
      14:35:16 [INFO] --- ant-assembly-maven-plugin:2.1.0:build (stop-tomcat) @ nuxeo-wizard-tests ---
      14:35:16 [INFO] Active Maven profiles:
      14:35:16 qa (source: external)
      14:35:16 qa (source: org.nuxeo.ecm.distribution:nuxeo-distribution:9.10-HF01-I20180111_0930)
      14:35:16 nightly (source: org.nuxeo.ecm.distribution:nuxeo-distribution:9.10-HF01-I20180111_0930)
      14:35:16 nightly (source: org.nuxeo:nuxeo-ecm:9.10-HF01-I20180111_0930)
      14:35:16 qa (source: org.nuxeo:nuxeo-ecm:9.10-HF01-I20180111_0930)
      14:35:16 os-notwindows (source: org.nuxeo:nuxeo-ecm:9.10-HF01-I20180111_0930)
      14:35:16 [INFO] Managed version set on org.nuxeo:nuxeo-ftest:zip:1.8.3
      14:35:16 [INFO]     [unzip] Expanding: /opt/jenkins/.m2/repository/org/nuxeo/nuxeo-ftest/1.8.3/nuxeo-ftest-1.8.3.zip into /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/nuxeo/nuxeo-distribution/nuxeo-wizard-tests/target
      14:35:17 
      14:35:17 integration-tests.stop-unix:
      14:35:17 [INFO]      [exec] Detected Tomcat server.
      14:35:17 [INFO]      [exec] Nuxeo home:          /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/tomcat-wizard
      14:35:17 [INFO]      [exec] Nuxeo configuration: /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/tomcat-wizard/bin/nuxeo.conf
      14:35:17 [INFO]      [exec] Include template: /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/tomcat-wizard/templates/common-base
      14:35:17 [INFO]      [exec] Include template: /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/tomcat-wizard/templates/common
      14:35:17 [INFO]      [exec] Include template: /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/tomcat-wizard/templates/default
      14:35:18 [INFO]      [exec] Stopping server....Server stopped.
      14:35:19 
      14:35:19 integration-tests.stop:
      14:35:19 [INFO] Managed version set on org.nuxeo:nuxeo-ftest:zip:1.8.3
      14:35:19 [INFO]     [unzip] Expanding: /opt/jenkins/.m2/repository/org/nuxeo/nuxeo-ftest/1.8.3/nuxeo-ftest-1.8.3.zip into /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/nuxeo/nuxeo-distribution/nuxeo-wizard-tests/target
      14:35:20 [INFO] 
      14:35:20 [INFO] --- maven-failsafe-plugin:2.17:verify (default) @ nuxeo-wizard-tests ---
      14:35:20 [INFO] Failsafe report directory: /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/nuxeo/nuxeo-distribution/nuxeo-wizard-tests/target/failsafe-reports
      14:35:20 [INFO] ------------------------------------------------------------------------
      14:35:20 [INFO] BUILD FAILURE
      14:35:20 [INFO] ------------------------------------------------------------------------
      14:35:20 [INFO] Total time: 01:13 min
      14:35:20 [INFO] Finished at: 2018-01-11T14:35:20+00:00
      14:35:20 [INFO] Final Memory: 67M/797M
      14:35:20 [INFO] ------------------------------------------------------------------------
      14:35:21 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.17:verify (default) on project nuxeo-wizard-tests: There are test failures.
      14:35:21 [ERROR] 
      14:35:21 [ERROR] Please refer to /opt/jenkins/workspace/Deploy/IT-HF-release-on-demand-tests-cap-tomcat-nx910/nuxeo/nuxeo-distribution/nuxeo-wizard-tests/target/failsafe-reports for the individual test results.
      14:35:21 [ERROR] -> [Help 1]
      14:35:21 [ERROR] 
      14:35:21 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      14:35:21 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      14:35:21 [ERROR] 
      14:35:21 [ERROR] For more information about the errors and possible solutions, please read the following articles:
      14:35:21 [ERROR] [Help 1] =
      

      When removing the clid file, it works fine.

      The workaround is obviously running the tests without any CLID but other functional tests have no issue running with a real CLID.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h