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

Mobile Testing, Android App Testing.
Deep
Posts: 1
Joined: Fri May 03, 2019 5:41 pm

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

Post by Deep » Fri May 03, 2019 5:43 pm

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.
Attachments
Error- device connectivity-MyTest2 - Ranorex Studio - (32bit).png
Error- device connectivity-MyTest2 - Ranorex Studio - (32bit).png (51.36 KiB) Viewed 1935 times
MyTest2.zip
(19.33 KiB) Downloaded 25 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6027
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Mon May 06, 2019 9:31 am

Hi,

Have you tried to increase Connection and USB connection timeouts? Maybe also General and Network timeout settings?...
MobileSettings.png
MobileSettings.png (104.89 KiB) Viewed 1912 times
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

sstrand72
Posts: 9
Joined: Thu May 30, 2019 3:38 pm

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

Post by sstrand72 » Mon Jan 20, 2020 9:22 pm

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.

foals11
Posts: 20
Joined: Wed Sep 18, 2019 9:19 am

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

Post by foals11 » Tue Jan 21, 2020 10:39 am

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,
Attachments
adb_2.PNG
adb_2.PNG (7.2 KiB) Viewed 1569 times
adb_1.PNG
adb_1.PNG (8.7 KiB) Viewed 1569 times

sstrand72
Posts: 9
Joined: Thu May 30, 2019 3:38 pm

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

Post by sstrand72 » Thu Jan 23, 2020 3:37 pm

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!!!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6027
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Fri Jan 24, 2020 8:47 am

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?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

mmahra
Posts: 37
Joined: Wed Feb 26, 2020 2:17 pm

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

Post by mmahra » Mon Mar 16, 2020 8:15 am

I am facing exactly the same problem and increasing timeout is not helping here.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6027
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Mon Mar 16, 2020 8:26 am

Hi,

At first, are you sure there is installed proper usb driver and the app is correctly instrumented?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

mmahra
Posts: 37
Joined: Wed Feb 26, 2020 2:17 pm

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

Post by mmahra » Mon Mar 16, 2020 8:32 am

I tried multiple drivers,
I didn't do any instrumentation, trying to get the phone connected first
allowed Ports and enabled debugging,

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6027
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Mon Mar 16, 2020 8:38 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration