Unclear message if activity is not found
----------------------------------------
Key: ARQ-1711
URL:
https://issues.jboss.org/browse/ARQ-1711
Project: Arquillian
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: Extension - Droidium
Affects Versions: droidium_1.0.0.Alpha4
Reporter: Karel Piwko
Assignee: Stefan Miklosovic
Fix For: droidium_1.0.0.Alpha5
If I try to select not existing activity, there should be a better message. It should
rather say that activity was not found, not that webdriver was not found.
{code}
android.getActivityManagerProvider().getActivityManager().startActivity("com.aerogear.hellopush.HelloPush");
driver.switchTo().window("WEBVIEW");
{code}
{code}
aerogearPushPluginNotification(org.jboss.aerogearpushplugincordova.test.AeroGearPushPluginCordovaTestCase)
Time elapsed: 7.146 sec <<< ERROR!
org.arquillian.droidium.native_.activity.WebDriverInstanceNotFoundException: There is not
any WebDriver instance found for activity of name
'com.aerogear.hellopush.HelloPush'.
at
org.arquillian.droidium.native_.activity.ActivityWebDriverMapper.getAsSimpleName(ActivityWebDriverMapper.java:93)
at
org.arquillian.droidium.native_.activity.ActivityWebDriverMapper.getInstance(ActivityWebDriverMapper.java:76)
at
org.arquillian.droidium.native_.activity.NativeActivityManager.startActivity(NativeActivityManager.java:40)
at
org.jboss.aerogearpushplugincordova.test.AeroGearPushPluginCordovaTestCase.aerogearPushPluginNotification(AeroGearPushPluginCordovaTestCase.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
at
org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
at
org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)
at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Mar 18, 2014 6:41:37 PM org.arquillian.droidium.container.impl.AndroidEmulatorShutdown
shutdownEmulator
INFO: Stopping Android emulator of AVD name 7939b2e1-1127-4bd8-a9af-0da93f7da99e.
Mar 18, 2014 6:41:37 PM org.arquillian.droidium.container.impl.AndroidEmulatorShutdown
shutdownEmulator
INFO: Waiting 60 seconds for emulator 7939b2e1-1127-4bd8-a9af-0da93f7da99e to be
disconnected and shutdown.
Mar 18, 2014 6:41:37 PM org.arquillian.droidium.container.impl.AndroidEmulatorShutdown
stopEmulator
INFO: Stopping emulator emulator-5554 via port 5554.
ERROR
(/home/kpiwko/devel/mobile/jbossqe-mobile/integration-tests/android-sdk-linux/tools/emulator):error
libGL.so: cannot open shared object file: No such file or directory
ERROR
(/home/kpiwko/devel/mobile/jbossqe-mobile/integration-tests/android-sdk-linux/tools/emulator):error
libGL.so: cannot open shared object file: No such file or directory
Mar 18, 2014 6:41:43 PM org.arquillian.droidium.container.impl.AndroidEmulatorShutdown
waitUntilShutDownIsComplete
INFO: Device 7939b2e1-1127-4bd8-a9af-0da93f7da99e on port 5554 was disconnected in 6
seconds.
Mar 18, 2014 6:41:43 PM
org.arquillian.droidium.container.impl.AndroidVirtualDeviceManager
deleteAndroidVirtualDevice
INFO: Android Virtual Device 7939b2e1-1127-4bd8-a9af-0da93f7da99e deleted.
Mar 18, 2014 6:41:43 PM org.arquillian.droidium.container.impl.AndroidBridgeConnector
terminateAndroidDebugBridge
INFO: Disconnecting Android Debug Bridge.
Mar 18, 2014 6:41:43 PM org.arquillian.droidium.container.impl.AndroidBridgeImpl
disconnect
INFO: Disconnecting Android Debug Bridge at
/home/kpiwko/devel/mobile/jbossqe-mobile/integration-tests/android-sdk-linux/platform-tools/adb
Mar 18, 2014 6:41:43 PM org.arquillian.droidium.container.impl.AndroidBridgeConnector
afterTerminateAndroidDebugBridge
INFO: Executing operations after disconnecting from Android Debug Bridge
Results :
Tests in error:
aerogearPushPluginNotification(org.jboss.aerogearpushplugincordova.test.AeroGearPushPluginCordovaTestCase):
There is not any WebDriver instance found for activity of name
'com.aerogear.hellopush.HelloPush'.
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: