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

Fix Webdriver init in jsf-ui hotreload test

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Tests
    • Team:
      PLATFORM
    • Sprint:
      nxplatform 11.1.25
    • Story Points:
      1

      Description

      The integration tests present in nuxeo-jsf-ui-hotreload-tests randomly fail on the CI with the error below:

      15:36:07 [INFO] -------------------------------------------------------
      15:36:07 [INFO]  T E S T S
      15:36:07 [INFO] -------------------------------------------------------
      15:36:21 [INFO] Running org.nuxeo.ftest.jsf.hotreload.studio.ITDevJSFHotReloadTest
      15:37:58 [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 97.255 s - in org.nuxeo.ftest.jsf.hotreload.studio.ITDevJSFHotReloadTest
      15:37:58 [INFO] Running org.nuxeo.ftest.jsf.hotreload.ITLoginLogoutTest
      15:37:58 [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in org.nuxeo.ftest.jsf.hotreload.ITLoginLogoutTest
      15:37:58 [ERROR] org.nuxeo.ftest.jsf.hotreload.ITLoginLogoutTest  Time elapsed: 0 s  <<< ERROR!
      15:37:58 org.openqa.selenium.WebDriverException: 
      15:37:58 Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7056; process output follows: 
      15:37:58 null
      15:37:58 Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      15:37:58 System info: host: 'itslave03', ip: '172.17.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-98-generic', java.version: '11.0.2'
      15:37:58 Driver info: driver.version: FirefoxDriver
      15:37:58 	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:129)
      15:37:58 	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
      15:37:58 	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
      15:37:58 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
      15:37:58 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
      15:37:58 	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
      15:37:58 	at org.nuxeo.functionaltests.drivers.FirefoxDriverProvider.init(FirefoxDriverProvider.java:140)
      15:37:58 	at org.nuxeo.functionaltests.AbstractTest.initFirefoxDriver(AbstractTest.java:236)
      15:37:58 	at org.nuxeo.functionaltests.AbstractTest.initDriver(AbstractTest.java:216)
      15:37:58 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      15:37:58 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      15:37:58 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      15:37:58 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      15:37:58 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      15:37:58 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      15:37:58 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      15:37:58 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      15:37:58 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      15:37:58 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      15:37:58 	at org.junit.runners.Suite.runChild(Suite.java:128)
      15:37:58 	at org.junit.runners.Suite.runChild(Suite.java:27)
      15:37:58 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      15:37:58 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      15:37:58 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      15:37:58 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      15:37:58 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      15:37:58 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      15:37:58 	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
      15:37:58 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
      15:37:58 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
      15:37:58 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
      15:37:58 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
      15:37:58 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
      15:37:58 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      15:37:58 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      15:37:58 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      15:37:58 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      15:37:58 Caused by: org.openqa.selenium.WebDriverException: Unable to create temporary file at /opt/jenkins/workspace/Deploy/IT-nuxeo-master-tests-cap-tomcat/nuxeo/nuxeo-jsf-ui/ftests/nuxeo-jsf-ui-hotreload-tests/target/nxruntime-main-58064068649251268.tmp/tmp
      15:37:58 Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      15:37:58 System info: host: 'itslave03', ip: '172.17.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-98-generic', java.version: '11.0.2'
      15:37:58 Driver info: driver.version: FirefoxDriver
      15:37:58 	at org.openqa.selenium.io.TemporaryFilesystem.createTempDir(TemporaryFilesystem.java:99)
      15:37:58 	at org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:417)
      15:37:58 	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:85)
      15:37:58 	... 36 more
      

      It seems to happen when ITLoginLogoutTest is ran after ITDevJSFHotReloadTest.

      ITLoginLogoutTest doesn't use the nuxeo test framework, hence it's surprising that test is trying to create a temporary directory into the nxruntime one.

      Cleanup doesn't seem to be enough after ITDevJSFHotReloadTest has ran.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Time Tracking

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