2 Replies Latest reply on Feb 25, 2016 8:26 AM by deepalic

    Error while executing Arquillian Functional Tests for WFK Quickstarts

    deepalic

      Hello,

       

      I am trying to execute Arquillian functional tests for WFK Quickstarts and I am getting errors.

       

      In case of helloworld-rf the errors are like:

       

      T E S T S

      -------------------------------------------------------

      Running org.jboss.wfk.test.jsf.helloworld.HelloworldRichFacesTestCase

      Feb 24, 2016 6:41:04 PM org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusedSessionPermanentFileStorage readStore

      INFO: Reused session store is not available at /root/.drone-webdriver-session-store, a new one will be created.

      org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

      Error: no display specified

      Error: no display specified

       

              at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)

              at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)

              at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)

              at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)

              at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)

              at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:103)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

              at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)

              at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:127)

              at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)

              at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)

              at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)

              at org.jboss.arquillian.drone.impl.DroneCallableCreator$1.call(DroneCallableCreator.java:89)

              at java.util.concurrent.FutureTask.run(FutureTask.java:262)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

              at org.jboss.arquillian.drone.impl.DroneExecutorService$ContextualRunnable.run(DroneExecutorService.java:113)

              at java.lang.Thread.run(Thread.java:745)

      Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 55.983 sec <<< FAILURE!

       

      Results :

       

      Tests in error:

        sayHelloTest(org.jboss.wfk.test.jsf.helloworld.HelloworldRichFacesTestCase): Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:

        org.jboss.wfk.test.jsf.helloworld.HelloworldRichFacesTestCase: Unexpected callable present in Drone Context, should be already instantiated at this moment.

       

      Tests run: 2, Failures: 0, Errors: 2, Skipped: 0

       

      Is there something missing in my setup? Pls suggest.

        • 1. Re: Error while executing Arquillian Functional Tests for WFK Quickstarts
          deepalic

          The error highlighted in the above post is observed on x86.

           

          I am also executing these tests on RHLE PPC 64 environment and the error I get on PPC is like:

           

          mvn clean verify -Parq-jbossas-remote

          [INFO] Scanning for projects...

          [INFO]

          [INFO] ------------------------------------------------------------------------

          [INFO] Building JBoss AS Quickstarts: Hello World test via WebDriver with Arquillian 2.7.0.Final

          [INFO] ------------------------------------------------------------------------

          Downloading: file:///root/deepali/JBOSS/WFK/jboss-wfk-2.7.0-maven-repository/org/jboss/remoting3/jboss-remoting/3.2.12.GA/jboss-remoting-3.2.12.GA.jar

          Downloading: file:///root/deepali/JBOSS/WFK/jboss-eap-6.3.0.GA-maven-repository/org/jboss/remoting3/jboss-remoting/3.2.12.GA/jboss-remoting-3.2.12.GA.jar

          Downloading: http://repo.maven.apache.org/maven2/org/jboss/remoting3/jboss-remoting/3.2.12.GA/jboss-remoting-3.2.12.GA.jar

          Downloaded: http://repo.maven.apache.org/maven2/org/jboss/remoting3/jboss-remoting/3.2.12.GA/jboss-remoting-3.2.12.GA.jar (233 KB at 91.2 KB/sec)

          [INFO] ------------------------------------------------------------------------

          [INFO] BUILD FAILURE

          [INFO] ------------------------------------------------------------------------

          [INFO] Total time: 5.483s

          [INFO] Finished at: Thu Feb 25 14:08:02 IST 2016

          [INFO] Final Memory: 20M/177M

          [INFO] ------------------------------------------------------------------------

          [ERROR] Failed to execute goal on project jboss-helloworld-rf-test-webdriver: Could not resolve dependencies for project org.jboss.as.quickstarts.wfk:jboss-helloworld-rf-test-webdriver:jar:2.7.0.Final: The following artifacts could not be resolved: org.jboss.com.sun.httpserver:httpserver:jar:1.0.1.Final, org.jboss.osgi.spi:jbosgi-spi:jar:3.2.0.Final, org.jboss.osgi.metadata:jbosgi-metadata:jar:2.1.1.CR9, org.jboss.osgi.vfs:jbosgi-vfs30:jar:1.2.0.Final, org.jboss.osgi.vfs:jbosgi-vfs:jar:1.2.0.Final, org.jboss.metadata:jboss-metadata-common:jar:7.0.8.Final, org.jboss.metadata:jboss-metadata-ear:jar:7.0.8.Final, org.jboss.osgi.framework:jbosgi-framework-core:jar:2.1.0.CR12, org.jboss.osgi.deployment:jbosgi-deployment:jar:1.3.0.CR1, org.jboss.osgi.resolver:jbosgi-resolver-felix:jar:3.0.1.Final, org.jboss.osgi.resolver:jbosgi-resolver-api:jar:3.0.1.Final, org.jboss.osgi.repository:jbosgi-repository-api:jar:2.1.0.Final, org.jboss.osgi.repository:jbosgi-repository-core:jar:2.1.0.Final: Failure to find org.jboss.com.sun.httpserver:httpserver:jar:1.0.1.Final in file:///root/deepali/JBOSS/WFK/jboss-wfk-2.7.0-maven-repository was cached in the local repository, resolution will not be reattempted until the update interval of jboss-wfk-repository has elapsed or updates are forced -> [Help 1]

          [ERROR]

          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

          [ERROR] Re-run Maven using the -X switch to enable full debug logging.

          [ERROR]

          [ERROR] For more information about the errors and possible solutions, please read the following articles:

          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

           

          Please let me know how I can resolve these errors on the x86 and PPC machines.

          • 2. Re: Error while executing Arquillian Functional Tests for WFK Quickstarts
            deepalic

            I am now getting errors like:

             

            Downloaded: http://maven.repository.redhat.com/techpreview/all/org/codehaus/mojo/gwt-maven-plugin/2.6.1/gwt-maven-plugin-2.6.1.jar (2 KB at 1.0 KB/sec)

            [INFO] ------------------------------------------------------------------------

            [INFO] BUILD FAILURE

            [INFO] ------------------------------------------------------------------------

            [INFO] Total time: 13.888s

            [INFO] Finished at: Thu Feb 25 16:13:15 IST 2016

            [INFO] Final Memory: 8M/152M

            [INFO] ------------------------------------------------------------------------

            [ERROR] Failed to parse plugin descriptor for org.codehaus.mojo:gwt-maven-plugin:2.6.1 (/root/.m2/repository/org/codehaus/mojo/gwt-maven-plugin/2.6.1/gwt-maven-plugin-2.6.1.jar): error in opening zip file -> [Help 1]

            [ERROR]

            [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

            [ERROR] Re-run Maven using the -X switch to enable full debug logging.

            [ERROR]

            [ERROR] For more information about the errors and possible solutions, please read the following articles:

             

            Looks like there is some problem with the files that are getting downloaded. I have tried cleaning the repo but the error persists.