11 Replies Latest reply on Nov 14, 2013 6:00 AM by Alex Soto

    I cannot run Droidum-Web tests with demo project

    Alex Soto Newbie

      Hello I have downloaded droidum-web-01 project from Droidum repo (it is inside test), I have installed on my Eclipse (by importing Maven project), then I have added next line on arquillian.xml file:

       

      <property name="home">/Users/alex/Applications/android-sdk-macosx</property>

       

      Then with android avd created (which is named my_nexus), I have run Maven with next command:

       

      mvn test -Pandroid-test -Dip.jboss=192.168.1.2 -Dname.avd=my_nexus

       

      And the first test fails with next exception:

       

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

      Test set: org.arquillian.droidium.showcase.web.test01.DroidiumWebTestCase

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

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.984 sec <<< FAILURE!

      org.arquillian.droidium.showcase.web.test01.DroidiumWebTestCase  Time elapsed: 0 sec  <<< ERROR!

      java.lang.IllegalStateException: Directory to check against readability is null object or empty string.

        at org.arquillian.droidium.container.configuration.Validate.notNullOrEmpty(Validate.java:98)

        at org.arquillian.droidium.container.configuration.Validate.isReadableDirectory(Validate.java:147)

        at org.arquillian.droidium.container.configuration.AndroidSDK.<init>(AndroidSDK.java:189)

        at org.arquillian.droidium.container.AndroidDeployableContainer.setup(AndroidDeployableContainer.java:153)

        at org.arquillian.droidium.container.AndroidDeployableContainer.setup(AndroidDeployableContainer.java:88)

        at org.jboss.arquillian.container.impl.ContainerImpl.setup(ContainerImpl.java:181)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$7.perform(ContainerLifecycleController.java:149)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$7.perform(ContainerLifecycleController.java:145)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.setupContainer(ContainerLifecycleController.java:144)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

        at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$1.perform(ContainerLifecycleController.java:62)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$1.perform(ContainerLifecycleController.java:55)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachContainer(ContainerLifecycleController.java:209)

        at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.setupContainers(ContainerLifecycleController.java:54)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

        at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

        at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:85)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

        at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

        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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

        at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

        at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

       

       

      android.log file is empty and the output of maven is:

       

      [INFO] Unpacking /Users/alex/.m2/repository/org/jboss/as/jboss-as-dist/7.1.1.Final/jboss-as-dist-7.1.1.Final.zip to

        /Users/alex/Documents/workspace/droidium-web-01/target

         with includes null and excludes:null

      [INFO]

      [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ arquillian-droidium-web-test-01 ---

      [INFO] Surefire report directory: /Users/alex/Documents/workspace/droidium-web-01/target/surefire-reports

       

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

      T E S T S

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

      Running org.arquillian.droidium.showcase.web.test01.DroidiumWebTestCase

      Nov 12, 2013 9:13:29 PM org.arquillian.droidium.multiplecontainers.MultipleContainersExtension register

      INFO: Multiple containers extension registering.

      Nov 12, 2013 9:13:30 PM org.arquillian.droidium.multiplecontainers.MultipleLocalContainersRegistry create

      INFO: Registering container: android

      Nov 12, 2013 9:13:30 PM org.arquillian.droidium.multiplecontainers.MultipleLocalContainersRegistry create

      INFO: Registering container: jbossas

      Nov 12, 2013 9:13:30 PM org.arquillian.droidium.web.configuration.DroidiumWebConfigurator configureDroidiumWeb

      INFO: Configuring droidium-web

      Nov 12, 2013 9:13:30 PM org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusedSessionPernamentFileStorage readStore

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

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.983 sec <<< FAILURE!

       

      Any idea of what's happening?

       

      Thank you so much.