Page 1 of 1

Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Fri May 03, 2019 5:43 pm
by Deep
I am new to Ranorex Studio and I have tried several times to connect Android and iOS devices through 'Endpoints' option but always says an 'error' after complete setup is done.
This is very critical as I am blocked with the test automation task and even I couldn't integrate it with CI-Jenkins.

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Mon May 06, 2019 9:31 am
by odklizec
Hi,

Have you tried to increase Connection and USB connection timeouts? Maybe also General and Network timeout settings?...
MobileSettings.png

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Mon Jan 20, 2020 9:22 pm
by sstrand72
I am having the same issue on 9.2.1 with Android. I turned all the recommended settings up and it did not work. How does it add the endpoint, and then immediately after the setup is complete, can't find it? I have never seen this before using USB.

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Tue Jan 21, 2020 10:39 am
by foals11
Hi,

Get your devices recognized by your machine? You can figure it out with the adb tool of Ranorex.
The adb tool is usually stored in C:\Program Files (x86)\Ranorex\Studio\Bin\RxEnv\Android\Tools.
Open the command window and type the command "adb devices". When your devices get found, the output window should look like my attached picture "adb_1".

Restart the adb server, if your devices aren't found. You can restart the adb server with the commands "adb kill-server" and "adb start-server".
The output window should look like my attached picture "adb_2".

Afterwards, try again to find your devices with the command "adb devices".

Besides, I was facing a similar issue and in my case it helped to decrease the connection timeout.
Try to set the timeout to 2s. If it doesn't help, set it to 5s.

regards,

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Thu Jan 23, 2020 3:37 pm
by sstrand72
My device is recognized, I have reinstalled Samsung Drivers, and I have tried the adb services suggestion. Nothing works. It finds the device perfectly fine. After the setup is complete, it fails to connect. Just attempts it, and ends in error every time.

Here is the strange part ... on another machine, it works just fine. Both Windows 10, but different brand of Dell computer. I am beginning to wonder if it is a USB port issue on these machines. I am going to inquire with my IT staff, but I can't keep burning hours trying to get this to work. I need a stable connection and IP address can be dynamic. That is ok, as long as our servers don't go down or power cycle. But they do and that causes issues for us on our CI machine test stands. Which is why I wanted to use USB - but this is eating up way too much time trying to resolve a simple USB port connection.

If you have any other ideas, please post. Thanks in advance!!!

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Fri Jan 24, 2020 8:47 am
by odklizec
Hi,

If the connection works on another machine, then there is definitely something wrong with your PC? My best guess is that it's something with Ranorex pre-requisities or USB driver? Have you tried to uninstall and reinstall Ranorex and all system requirements?

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Mon Mar 16, 2020 8:15 am
by mmahra
I am facing exactly the same problem and increasing timeout is not helping here.

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Mon Mar 16, 2020 8:26 am
by odklizec
Hi,

At first, are you sure there is installed proper usb driver and the app is correctly instrumented?

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Mon Mar 16, 2020 8:32 am
by mmahra
I tried multiple drivers,
I didn't do any instrumentation, trying to get the phone connected first
allowed Ports and enabled debugging,

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Mon Mar 16, 2020 8:38 am
by odklizec
Hi,

You don't have to try multiple driver, just the correct one ;) Please check on phone manufacturer's website, which USB driver should be used with your phone. If it still does not work, try it also on another computer.

Re: Unable to connect Android and iOS devices through 'Endpoints' option.

Posted: Mon Oct 05, 2020 4:01 pm
by Molus
So, was this ever resolved, I'm having the same issue, but it was working about 3 days ago.
I'm also seeing that there was some updates made this past weekend, could that be the issue?
Capture9.PNG