"Failed to start application" on remote endpoint

Mobile Testing, Android App Testing.
boegvald
Posts: 62
Joined: Wed Mar 13, 2019 9:02 am

"Failed to start application" on remote endpoint

Post by boegvald » Mon Aug 02, 2021 2:34 pm

Anyone being successful with running an Android Emulator endpoint on a separate host?

I do get the following error when trying to launch the RxBrowser on an Android Emulator endpoint from my PC:
Failed to start application 'ranorex.RxBrowser' because the application started event was not received within the specified timeout
Observations:
  • When running Ranorex directly on the host of the emulator, everything works fine.
  • On my PC, the endpoint is displayed as Connected in Ranorex
  • The browser is actually launched in the emulator, but it seems like confirmation never reach Ranorex on my PC
  • Connect timeout and remote call timeout is set to 1 minute and the browser launch practically immediately, so I doubt there are performance issues
I have opened for TCP/UDP on port 31000, inbound and outbound, on both my PC and the emulator host. Setup port forwarding in windows on the emulator host on port 31000 from 0.0.0.0 to 127.0.0.1 (as the emulator seems to only listen to 127.0.0.1). Enabled redirection of tcp/udp port 31000 in the emulator firewall.

Any other port openings required? Any other ideas?

I am using:
Ranorex Studio 9.5.3
Android Studio 4.2.2 (emulated phone)
RxService: 2.3.3
RxBrowser: 2.3.3
Best Regards

Bo

JasonY
Posts: 9
Joined: Fri May 28, 2021 3:51 pm
Contact:

Re: "Failed to start application" on remote endpoint

Post by JasonY » Fri Aug 06, 2021 7:26 pm

Hello boegvald,

Please ensure you are not trying to instrument an application that you have already installed or instrumented to the mobile device endpoint. I also recommend that you update your version of Ranorex Studio to the latest version. We have added some features that should help with instrumentation and mobile endpoints. Let me know if that helps!

Best Regards
Image

boegvald
Posts: 62
Joined: Wed Mar 13, 2019 9:02 am

Re: "Failed to start application" on remote endpoint

Post by boegvald » Mon Aug 09, 2021 1:49 pm

I have upgraded to 10.1, but face the same situation.

I instrumented the phone directly on the phone, downloading both applications (Service and browser) from the download archive, so no instrumentation via Ranorex studio.

I changed from using port 31000 to using port 33000 on the host, to access the endpoint (and of course opened the ports on host and remote PC, redirected the port to 127.0.0.1 on remote, and redirected in emulator to 31000). That was in order to avoid interfering with any local emulator traffic.

But still the same situation. Browser loads fine in emulator, but Ranorex Studio never seem to recognize.
Best Regards

Bo

riagarwal
Posts: 17
Joined: Thu Aug 27, 2015 3:44 pm

Re: "Failed to start application" on remote endpoint

Post by riagarwal » Wed Sep 14, 2022 6:55 pm

Hello,

Please confirm if your issue is resolved, as I am using 10.2.4 and it shwos connected on my laptop but the Browser is not launched from teh Device.