Page 1 of 1

Troubleshoot emulator connection problem

Posted: Tue Oct 20, 2015 10:06 am
by stapes
I have been trying to set up a simple emulator to run my Android tests on (mostly for demonstration purposes).

I am using Genymotion emulator,.

I have created a virtual device Google Nexus 9 - 5.0.0 - API 21.

I have installed Ranorex Services Version 1.8.3) on it.

I have set up the developer options on it:

Stay awake.

USB Debugging.

In Ranorex Studio (5.4.1) under devices, I can straightaway see my new device, called here Nexus9emu

When I try to connect, I get this error in a tooltip:

Name: Nexus9emu
Host: 10.0.3.15
Port: 31000

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 10.0.3.15: 31000

I did not get a popup on the device asking for permission to connect as would normally happen.
Nexus9.PNG
Any ideas?

Re: Troubleshoot emulator connection problem

Posted: Tue Oct 20, 2015 10:28 am
by stapes
I don't care which emulator I get working.

I got slightly further emulating a Samsung Galaxy S5 device. This has connected fine.

Then, when I tried to Instrument our App, it goes through the process, I get the Install dialog popup on the emulator, and it tries to install.

Finally, I get X App not installed message. It does not go into detail.

I also tried Instrumenting the KeePassDroid app on here as an experiment.

The installation appeared to go OK, then I try & run it.

I went Create, entered a new password, and get this error "Unfortunately KeePassDroid has stopped."

All I want is one working emulator!

Re: Troubleshoot emulator connection problem

Posted: Tue Oct 20, 2015 11:35 am
by odklizec
Hi,
stapes wrote: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 10.0.3.15: 31000
When this happens, it usually helps to increase the "Connect Timeout" (in Global Settings >> Plugins >> Mobile section) value from default 10s to 30s or more. For more details, see this post:
http://www.ranorex.com/forum/device-com ... tml#p30427

Re: Troubleshoot emulator connection problem

Posted: Tue Oct 20, 2015 12:05 pm
by stapes
Thanks. I tried increasing those Timeouts. Made no difference.

Re: Troubleshoot emulator connection problem

Posted: Tue Oct 20, 2015 12:08 pm
by odklizec
Well, my suggestion was about your initial post, which is apparently a connection timeout issue. As for your other post, this is probably something different?

Re: Troubleshoot emulator connection problem

Posted: Wed Oct 21, 2015 12:39 pm
by stapes
Increasing the Connect Timeout did not make any difference trying to connect to a virtual Google Nexus 9.

Re: Troubleshoot emulator connection problem

Posted: Thu Oct 22, 2015 1:51 pm
by Support Team
Hi stapes,

I assume that the error message is provided by Android itself. May I ask you to check the requirements of your application (API Level, ScreenSize, etc…).
Additionally, it would be great if you could upload your application to the forum. This would allow us to try instrumenting and deploying it on other devices.

Thank you.
Regards,
Markus (S)

Re: Troubleshoot emulator connection problem

Posted: Fri Oct 23, 2015 12:22 pm
by stapes
I tried uploading my application here as a zip file, as apk files are not allowed.

Unfortunately, The file is too big, maximum allowed size is 5 MiB.

Re: Troubleshoot emulator connection problem

Posted: Wed Oct 28, 2015 12:44 pm
by Support Team
Hi Stapes,

May I ask you to send the to [email protected]?

Thank you.

Regards,

Markus (S)

Re: Troubleshoot emulator connection problem

Posted: Wed Oct 28, 2015 1:32 pm
by stapes
Thanks marcus - have sent to support.