Selendroid not running for a particular real device -says "Error occurred while starting selendroid"

188 views
Skip to first unread message

naddy095

unread,
May 12, 2014, 6:38:23 AM5/12/14
to selen...@googlegroups.com
Hi guys,

For my selendroid script, I have a real device running android version 4.2.2 for which selendroid starts my app and works fine. However, when I try the same script for a real device running android version 4.0.4 it says  the following log.

INFO: Adding: HardwareDevice [serial=3c3f2f6d, model=GT-S7562, targetVersion=ANDROID15]
May 12, 2014 4:00:44 PM io.selendroid.android.impl.DefaultDeviceManager initializeAdbConnection
INFO: my devices: null
May 12, 2014 4:00:44 PM io.selendroid.io.ShellCommand exec
INFO: executing command: /usr/local/adt/adt-bundle-linux-x86_64-20130729/sdk/tools/android list avds
May 12, 2014 4:00:47 PM io.selendroid.io.ShellCommand exec
INFO: executing command: /usr/local/adt/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb devices
May 12, 2014 4:00:47 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: Adding: AndroidEmulator [screenSize=480x800, targetPlatform=ANDROID17, serial=null, avdName=hack]
May 12, 2014 4:00:47 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: Adding: AndroidEmulator [screenSize=480x800, targetPlatform=ANDROID15, serial=null, avdName=cltp]
May 12, 2014 4:00:47 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: Adding: AndroidEmulator [screenSize=768x1280, targetPlatform=ANDROID18, serial=null, avdName=droid]
May 12, 2014 4:00:47 PM io.selendroid.server.SelendroidStandaloneServer start
INFO: selendroid-standalone server has been started on port: 4444
FAILED CONFIGURATION: @BeforeClass startSelendroidServer
org.openqa.selenium.SessionNotCreatedException: Error occurred while starting selendroid-server on the device
io.selendroid.exceptions.SelendroidException: Error occurred while starting selendroid-server on the device
    at io.selendroid.android.impl.AbstractDevice.startSelendroid(AbstractDevice.java:228)
    at io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:293)
    at io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42)
    at io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:140)
    at io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:70)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.PathMatchHandler.handleHttpRequest(PathMatchHandler.java:33)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.DateHeaderHandler.handleHttpRequest(DateHeaderHandler.java:21)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.ServerHeaderHandler.handleHttpRequest(ServerHeaderHandler.java:25)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:67)
    at org.webbitserver.netty.NettyHttpChannelHandler$2.run(NettyHttpChannelHandler.java:72)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.Throwable: android.util.AndroidException: INSTRUMENTATION_FAILED: io.selendroid.com.cltp.android/io.selendroid.ServerInstrumentation
    at com.android.commands.am.Am.runInstrument(Am.java:586)
    at com.android.commands.am.Am.run(Am.java:117)
    at com.android.commands.am.Am.main(Am.java:80)
    at com.android.internal.os.RuntimeInit.finishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:263)
    at dalvik.system.NativeStart.main(Native Method)

Details:
INSTRUMENTATION_STATUS: id=ActivityManagerService

Kindly help me find the issue.

Regards.

Alexander Gee

unread,
May 15, 2014, 1:14:03 AM5/15/14
to
So far for me it's never worked on anything below KitKat.

Luke Inman-Semerau

unread,
May 15, 2014, 1:33:05 AM5/15/14
to selen...@googlegroups.com
It's worked for me on real devices for 4.2 / 4.3

The error says instrumentation failed... there should be something
more in `adb logcat` for the device related to the instrumentation
failing to start, can you check that?

On Wed, May 14, 2014 at 10:13 PM, Alexander Gee
<bostwic...@gmail.com> wrote:
> So far for me it's never worked on anything below KitKat.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "selendroid" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to selendroid+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/selendroid.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/selendroid/a8c6ad6a-7e23-4460-8882-aacf6c4c8531%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages