Hello!
The problem states in following: while running tests for a long time on the mobile device (6 hours and longer), Ranorex sometimes stops see the application and none of the repository elements can be found (exception 'Failed to find item *', 'No element found for path * within 2m.'). All starts work again only after pressing on the 'Devices' -> 'Retry' button. Changing of mobile connect timeout or element search timeout values doesn't better the situation.
So, is there some functionallity to perform retry to connect to device programmatically from code?
Ranorex version 4.1.0
Mobile app type - android native.
Connection to device via USB.
Thanks in advance,
Oksana
How to retry connect to mobile device from code
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to retry connect to mobile device from code
Hello,
There is another (hidden) way to do that problematically but it's not recommended at all.
We couldn't guarantee for any side effects, though.
If you really want to use this method, please write an email to [email protected].
Regards,
Markus (T)
There is another (hidden) way to do that problematically but it's not recommended at all.
We couldn't guarantee for any side effects, though.
If you really want to use this method, please write an email to [email protected].
Regards,
Markus (T)
Re: How to retry connect to mobile device from code
Hi,
Is it possible to reconnect mobile device after 'System.TimeoutException' ('Device communication timed out. Either no instrumented application is running on the device or the device was not able to process the request within the specified timeout of '00:00:15'. Check that an instrumented application is running on the device or try to increase the timeout.') from code?
The thing is that adviced method doesn't help to reconnect device after such exception.
Thanks,
Oksana
Is it possible to reconnect mobile device after 'System.TimeoutException' ('Device communication timed out. Either no instrumented application is running on the device or the device was not able to process the request within the specified timeout of '00:00:15'. Check that an instrumented application is running on the device or try to increase the timeout.') from code?
The thing is that adviced method doesn't help to reconnect device after such exception.
Thanks,
Oksana
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to retry connect to mobile device from code
Hello Oksana,
As Markus already wrote, this is not recommended by Ranorex and that's the reason that we cannot post the workaround in the forum.
I suggest to increase the connection timeout in the plugins tab in the general settings dialog in Ranorex Studio.
Thank you for your understanding.
Regards,
Bernhard
As Markus already wrote, this is not recommended by Ranorex and that's the reason that we cannot post the workaround in the forum.
I suggest to increase the connection timeout in the plugins tab in the general settings dialog in Ranorex Studio.
Thank you for your understanding.
Regards,
Bernhard