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

Fix webdriver market place tests on 5.5.0 branch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.5.0-HF20
    • Component/s: Connect

      Description

      The Marketplace package audit-web-access is again causing issues on the test ITWizardAndUpdateCenter for older Nuxeo target platforms, see https://qa.nuxeo.org/jenkins/job/FT-nuxeo-5.5.0-webdriver-dm-tomcat/361/

      -------------------------------------------------------------------------------
      Test set: org.nuxeo.functionaltests.ITTests
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 242.564 sec <<< FAILURE!
      testAll(org.nuxeo.functionaltests.ITTests)  Time elapsed: 218.12 sec  <<< ERROR!
      org.openqa.selenium.NoSuchElementException: Couldn't find element 'By.xpath: id('row_audit-web-access-1.0.6')//a[contains(@class ,'button')]' after timeout
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.31.0', revision: '1bd294d', time: '2013-02-27 20:52:59'
      System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.0-49-generic', java.version: '1.6.0_26'
      Driver info: driver.version: unknown
      	at org.nuxeo.functionaltests.AbstractTest.findElementWithTimeout(AbstractTest.java:338)
      	at org.nuxeo.functionaltests.AbstractTest.findElementWithTimeout(AbstractTest.java:300)
      	at org.nuxeo.functionaltests.pages.AbstractPage.findElementWithTimeout(AbstractPage.java:94)
      	at org.nuxeo.functionaltests.pages.admincenter.PackageListingPage.getPackageLink(PackageListingPage.java:33)
      	at org.nuxeo.functionaltests.pages.admincenter.PackageListingPage.getPackageDownloadLink(PackageListingPage.java:37)
      	at org.nuxeo.functionaltests.pages.admincenter.PackageListingPage.download(PackageListingPage.java:58)
      	at org.nuxeo.functionaltests.ITWizardAndUpdateCenter.installPackageAndRestart(ITWizardAndUpdateCenter.java:352)
      	at org.nuxeo.functionaltests.ITWizardAndUpdateCenter.testAll(ITWizardAndUpdateCenter.java:401)
      	at org.nuxeo.functionaltests.ITTests.testAll(ITTests.java:27)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
      	at $Proxy0.invoke(Unknown Source)
      	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
      	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
      Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"id('row_audit-web-access-1.0.6')//a[contains(@class ,'button')]"}
      Command duration or timeout: 19 milliseconds
      For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
      Build info: version: '2.31.0', revision: '1bd294d', time: '2013-02-27 20:52:59'
      System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.0-49-generic', java.version: '1.6.0_26'
      Session ID: 35c2d9c7-9ec9-47f5-a581-c5ec37d46299
      Driver info: org.openqa.selenium.firefox.FirefoxDriver
      Capabilities [{platform=LINUX, javascriptEnabled=true, acceptSslCerts=true, browserName=firefox, rotatable=false, locationContextEnabled=true, version=3.6.16, cssSelectorsEnabled=true, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, applicationCacheEnabled=true, takesScreenshot=true}]
      	at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:187)
      	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
      	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:307)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:404)
      	at org.openqa.selenium.By$ByXPath.findElement(By.java:344)
      	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:299)
      	at org.nuxeo.functionaltests.AbstractTest.findElementWithTimeout(AbstractTest.java:322)
      	... 38 more
      Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Unable to locate element: {"method":"xpath","selector":"id('row_audit-web-access-1.0.6')//a[contains(@class ,'button')]"}
      Build info: version: '2.31.0', revision: '1bd294d', time: '2013-02-27 20:52:59'
      System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.0-49-generic', java.version: '1.6.0_26'
      Driver info: driver.version: unknown
      	at <anonymous class>.<anonymous method>(file:///tmp/anonymous5873794623076917226webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:6784)
      	at <anonymous class>.<anonymous method>(file:///tmp/anonymous5873794623076917226webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:8281)
      	at <anonymous class>.<anonymous method>(file:///tmp/anonymous5873794623076917226webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:8290)
      	at <anonymous class>.<anonymous method>(file:///tmp/anonymous5873794623076917226webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:263)
      	at <anonymous class>.<anonymous method>(file:///tmp/anonymous5873794623076917226webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:10272)
      	at <anonymous class>.<anonymous method>(file:///tmp/anonymous5873794623076917226webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:10277)
      	at <anonymous class>.<anonymous method>(file:///tmp/anonymous5873794623076917226webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:10217)
      

      Trying to reproduce locally shows that maybe some things have changed (bugfixes or new bugs) on connect side about the listing:

      • the audit-web-access MP is not present on the "Packages from Nuxeo Marketplace" tab unless you check "Show only packages compatible with my distribution" (need to check if that's part of the issue)
      • when doing so, the MP is visible, but on version 1.3.0-SNAPSHOT instead of 1.0.6 (and this test did not change recently, see last changes for NXP-11513)
      • on Marketplace, this module has no valid MP for version 5.5.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: