Search found 16 matches

by piotrn
Mon Aug 25, 2014 7:46 am
Forum: Mobile Testing
Topic: RunMobileApp specifying the timeout
Replies: 1
Views: 2355

Re: RunMobileApp specifying the timeout

The timeout can be handled programmatically with:
Ranorex.Plugin.Mobile.RxIntegration.MobilePluginConfig.ConnectTimeout = YOURTIMEOUTVALUE; // in milliseconds

Cheers
Piotr
by piotrn
Mon Aug 18, 2014 8:57 am
Forum: Mobile Testing
Topic: RunMobileApp specifying the timeout
Replies: 1
Views: 2355

RunMobileApp specifying the timeout

Hi Is it possible to specify the timeout value that 'RunMobileApp' waits when starting the app before it throws System.TimeoutException : Failed to start app 'xxx' because the app started event was not received within the specified timeout of '00:00:10' In other words: Is it possible to define a lon...
by piotrn
Thu Sep 12, 2013 3:40 pm
Forum: Mobile Testing
Topic: Instrumentation fails for Android APIDemos sample app
Replies: 3
Views: 3379

Re: Instrumentation fails for Android APIDemos sample app

The problem is the deployment timeout setting. The Instrumentation Wizard wants to run as an administrator user but the deployment timeout setting is updated in the Ranorex Spy Settings Plugins that is run as another user. So basically the Ranorex Spy Settings Plugins deployment timeout does not pro...
by piotrn
Thu Sep 12, 2013 9:59 am
Forum: Mobile Testing
Topic: Instrumentation fails for Android APIDemos sample app
Replies: 3
Views: 3379

Instrumentation fails for Android APIDemos sample app

Ranorex 4.1 installed on Windows 7 Android SDK installed: adt-bundle-windows-x86-20130729 (Android 4.3 API 18) Android emulator device is running and there is an activated Ranorex Service on the device. Instrumenting APIDemos.apk (with the Ranorex Instrumentation Wizard) fails with the provided stac...
by piotrn
Mon Aug 19, 2013 8:44 am
Forum: Mobile Testing
Topic: Android app base element is not valid after app update
Replies: 7
Views: 3457

Re: Android app base element is not valid after app update

Hi In this discussion thread I've provided two code examples using the Android APIDemos app. The example code performs a simple test with two user actions: - the APIDemos is started - the user selects 'App' menu item - the user selects 'Alarm' menu item The first example implementation fails when th...
by piotrn
Mon Aug 12, 2013 10:27 am
Forum: Mobile Testing
Topic: Android app base element is not valid after app update
Replies: 7
Views: 3457

Re: Android app base element is not valid after app update

Hi Let's say the top application adapter for the Android APIDemos app is found with: mobile_app_id = "/mobileapp[@title='com.example.android.apis']" app = Host.Local.Find[MobileApp](RxPath(mobile_app_id), find_normal_delay)[0] Now some action can be performed using the 'app' adapter: choice_id = "./...
by piotrn
Fri Aug 09, 2013 10:28 am
Forum: Mobile Testing
Topic: Android app base element is not valid after app update
Replies: 7
Views: 3457

Re: Android app base element is not valid after app update

Apparently for Android apps the base/root adapter reference gets invalid when performing user actions. This implies that all GUI objects have to be found with a root path. Also 'Touch' user action is better than 'Click' for mobile apps :) The updated example: import clr clr.AddReference('Ranorex.Cor...
by piotrn
Fri Aug 09, 2013 10:05 am
Forum: Mobile Testing
Topic: Android App PressBackKey has no effect
Replies: 2
Views: 2706

Re: Android App PressBackKey has no effect

Apparently PressKeys("{BACK}") call is better to use for go-back user action: normal_delay = 30000 ... app = Host.Local.Find[MobileApp](RxPath(mobile_app_id), normal_delay)[0] app.PressKeys("{BACK}") Note also that the app adapter reference must be found again before the KeyPress because it might be...
by piotrn
Thu Aug 08, 2013 10:08 am
Forum: Mobile Testing
Topic: Android app base element is not valid after app update
Replies: 7
Views: 3457

Android app base element is not valid after app update

Hi I have a problem where the base (root) adapter reference for an Android app is NOT valid after the app is updated via some user action. This problem requires the base adapter to be found again after every user action. Also it's not clear how long to delay before the search operation as the base g...
by piotrn
Thu Aug 08, 2013 9:32 am
Forum: Mobile Testing
Topic: Android App PressBackKey has no effect
Replies: 2
Views: 2706

Android App PressBackKey has no effect

Hi I cannot get any effect using the PressBackKey while testing an Android app. There is no effect for the PressKeyBack action. Is this a known problem? Has anybody got this working on a real mobile device? The app is deployed in an Android Emulator (adt-bundle-windows-x86-20130729, AVD_for_Nexus_S_...
by piotrn
Wed Aug 07, 2013 9:26 am
Forum: Mobile Testing
Topic: Device channel failure accessing Android Emulator
Replies: 1
Views: 2684

Re: Device channel failure accessing Android Emulator

The above problems arise when the Ranorex Servicess app is NOT installed on the Android Emulator.

After installing and starting the Ranorex Services app (ex: 405.apk) on the emulator the Ranorex Device Manager can discover the emulator device.

Also starting an instrumented app works fine...

Cheers
by piotrn
Tue Aug 06, 2013 3:09 pm
Forum: Mobile Testing
Topic: Device channel failure accessing Android Emulator
Replies: 1
Views: 2684

Device channel failure accessing Android Emulator

Hi When adding Android SDK Emulator to the Ranorex Mobile Devices using "Manage Devices" wizard I'm getting: "Device channel failure: XML-RPC Endpoint failure: Channel failed during data receive." The Emulator is running fine and it's possible to instrument and deploy an example app: 'KeePassDroid-1...
by piotrn
Wed Jul 31, 2013 1:01 pm
Forum: Automation API
Topic: Falis starting Ranorex during debug in VS 2012
Replies: 8
Views: 3920

Re: Falis starting Ranorex during debug in VS 2012

So what is the solution to this problem?
I've updated to Ranorex 4.0.5 and it's still not possible to debug in VS2012 when running NUnit tests with Ranorex code?

Regards
Piotr
by piotrn
Fri Jul 29, 2011 2:39 pm
Forum: Automation API
Topic: How to right click on a web element in IronPython?
Replies: 2
Views: 3017

Re: How to right click on a web element in IronPython?

Hi
The provided explanation works great.
Thanks :)
by piotrn
Thu Jul 28, 2011 4:13 pm
Forum: Automation API
Topic: How to right click on a web element in IronPython?
Replies: 2
Views: 3017

How to right click on a web element in IronPython?

Hi It's unclear how to right click on a web element in IronPython. Also MouseButtons is not really documented in the latest Ranorex version. The following code is not working but possibly it should... import clr clr.AddReference('Ranorex.Core') import Ranorex .... # di is LiTag di.Click(Ranorex.Mous...