Page 1 of 1

Can't get Ranorex to detect Genymotion emulator

Posted: Fri Aug 14, 2015 8:19 pm
by gilbar16
Hi,

I'm still using the Ranorex trial version (we ordered but have not received Ranorex yet) and also the Genymotion emulator for Android trial version.

The target virtual device has been defined and the Android emulator started and running but each time I tried to add a device (Android/Emulator), I get this "No running emulators found." error.

What did I miss?
Is the Genymotion emulator going to be detected only if it is not the trial version?

Thanks.
Gilbert

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Fri Aug 14, 2015 9:38 pm
by gilbar16
Please disregard.
From an older post, I found out that the way for Ranorex to detect the Genymotion emulator is via the Network connection not via Emulator not via USB. Then changing the IP Address in Ranorex with that of the one displayed on the Genymotion screen.

Would be nice if the Emulator option works. Maybe it would have been simplier.

Thanks.
Gilbert

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Wed Aug 26, 2015 11:58 am
by Support Team
Hello Gilbert,

Please have a look at the following post:
http://www.ranorex.com/forum/android-em ... tml#p33918

Regards,
Robert

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Fri Feb 26, 2016 10:29 am
by mikelaceste
Hi,

I'm experiencing the same thing. And is there a way to specify the port number into the device in the manage device window? The port number of the virtual device from genymotion is using port 5555. And Ranorex its showing 31000. I have tried a lot of workaround found in your forum but I still cant connect Ranorex into my emulated device using Genymotion. Im using Windows 7 and has a floating license key in ranorex. Attached is a screenshot of my devices with the error message:

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Tue Mar 01, 2016 10:14 am
by Support Team
Hello mikelaceste,

First of all, please ensure that the VMs network adapter is correctly bridged . E.g., create a second adapter:
NetworkAdapter.png
Afterwards, please change the IP address within the Ranorex service app (Service App -> Settings)
GenymotionTestPhone.png
Finally, please re-add the device within the "Manage Devices" on your local machine.

Hope this helps.

Sincerely,
Robert

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Fri Mar 04, 2016 8:43 am
by mikelaceste
Thanks a lot Robert! Got it to work now :D

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Fri Jun 17, 2016 10:24 am
by lucian.teodorescu
Hi,

I can add, but cannot connect to Genymotion virtual devices with Android higher than 4.4.4
As I see in this thread, mikelaceste tried with Android 6.0.0 and the solution presented is with Android 4.1.1

I can work with anything up to 4.4.4.

Did anyone succeed to use Genymotion with Android 5.1.0 or 6.0.0?

Thank you!

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Mon Jun 20, 2016 3:15 pm
by Support Team
Hi lucian.teodorescu,

I just created a new emulator and could successfully add it to Ranorex. Please ensure that you're using our latest Android service app and Ranorex Studio version.
GenyMotionAndroid6.0.png
Sincerely,
Robert

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Tue Jun 21, 2016 9:51 am
by lucian.teodorescu
Hi Robert,

I use Ranorex 6.0 and the Service App 1.8.6.
I've tried with Genymotion 2.7.1 and 2.7.2.

When I add them via USB, I get this error:

System.Exception: Failed to deploy the application via USB. pkg: /data/local/tmp/androidService.apk

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]


10032 KB/s (904089 bytes in 0.088s)

at Ranorex.Plugin.Mobile.Tools.Android.AndroidUsbDeploymentService.CheckForErrorsThatDoNotResultInErrorCode(ProcessRunner runner)
at Ranorex.Plugin.Mobile.Tools.Android.AndroidUsbDeploymentService.Deploy(String apkFilePath, String deviceInstance, IToolConfig config)
at Ranorex.Plugin.Mobile.Controls.AddDevice.AndroidDeployServicePage.DeployServiceApp()



And when is added via WiFi, I have this:
Image

searching for devices using adb devices command I can see it, but with port 5555 open (it is the same as working devices)

I've tried to reinstall Ranorex, Genymotion, Android SDK ... still not working.

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Tue Jun 21, 2016 10:16 am
by lucian.teodorescu
OK, adding via USB is no longer a problem. I've just removed the installed Ranorex Service app and it worked.
But connection via WiFi is still problematic.

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Thu Jun 23, 2016 9:33 am
by Support Team
Hello lucian.teodorescu,

When using Wifi,please ensure that the correct Network Interface is set within the Ranorex service app:
NetworkInterface.png
Sincerely,
Robert

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Thu Jun 23, 2016 1:34 pm
by lucian.teodorescu
Hi Robert,

I've already done that, still no luck.

Thanks,

Re: Can't get Ranorex to detect Genymotion emulator

Posted: Tue Jun 28, 2016 12:25 pm
by Support Team
Hi Lucian,

Unfortunately, we couldn't reproduce that behavior on our side. I tried with Genymotion 2.7.2 and latest Ranorex version so far.

I assume that still some configurations on your machine are not correct. Maybe you could try to setup the Genymotion - Ranorex connection on another machine in order to sort out machine related issues?

Sincerely,
Robert