HELP! Selendroid is not reading emulators.

23 views
Skip to first unread message

Carlos Reyes

unread,
Aug 1, 2016, 6:55:53 PM8/1/16
to selendroid
Hi! This is the third week that I try to setup and run Selendroid and I cant! 

Once I run the command "java -jar selendroid-standalone-0.11.0-with dependencies.jar -app selendroid-test-app-0.12.0.apk" It seems that the server is up but I have these information while it is reading the AVDs:

INFO: executing command: C:\Users\v-careye\AppData\Local\Android\sdk\tools\android.bat list avds
Aug 01, 2016 3:52:20 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\v-careye\AppData\Local\Android\sdk\platform-tools\adb.exe devices
Aug 01, 2016 3:52:20 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: Adding: AndroidEmulator [screenSize=, targetPlatform=null, serial=null, avdName=ALCATEL_ONETOUCH_A463BG]
Aug 01, 2016 3:52:20 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: Adding: AndroidEmulator [screenSize=, targetPlatform=null, serial=null, avdName=Galaxy_S6]
Aug 01, 2016 3:52:20 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: Adding: AndroidEmulator [screenSize=, targetPlatform=null, serial=null, avdName=Nexus_6_API_23]

Then, when I try to run my tests, using the following Java code:

public void setup(){
try {
SelendroidCapabilities capa = new SelendroidCapabilities("com.guru99app:1.0");
capa.setPlatformVersion(DeviceTargetPlatform.ANDROID19);
capa.setEmulator(true);
d = new SelendroidDriver(capa);
}catch (Exception e) {
e.printStackTrace();
}
}

It is returning this error (SELENDROID CANT READ ANY ANDROID DEVICE/EMULATOR... I THINK IS BECAUSE THE SERVER IS NOT READING THE AVDS!) 

Caused by: io.selendroid.exceptions.SessionNotCreatedException: Error occured while finding android device: Error occurred while looking for devices/emulators.
io.selendroid.exceptions.SessionNotCreatedException: Error occured while finding android device: Error occurred while looking for devices/emulators.
	at io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:216)
	at io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42)
	at io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:143)
	at io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:67)
	at io.selendroid.server.http.ServerHandler.channelRead(ServerHandler.java:50)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)
	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:148)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
	at java.lang.Thread.run(Unknown Source)


CAN YOU PLEASE HELP ME ON THIS ONE? I AM REALLY DESPERATE!

Thanks in advance,
Carlos
Reply all
Reply to author
Forward
0 new messages