Using Android Api

Mobile Testing, Android App Testing.
n.chekasheva
Posts: 2
Joined: Thu Nov 28, 2013 3:59 pm

Using Android Api

Post by n.chekasheva » Thu Nov 28, 2013 4:06 pm

Hi,

I have the next question,

I want to use Android Api in my test, e.g using C# script
Do I have such opportunity?
If yes, which library can i use?

I want e.g. disable wifi on my phone..

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Using Android Api

Post by krstcs » Mon Dec 02, 2013 2:37 pm

There is currently no way to disable WiFi on an Android (or iOS) device using Ranorex.

Ranorex does not have access to internal Android functions. You could write a small Android app that wraps that functionality and instrument it with Ranorex. Then you could use that wrapper app to turn WiFi on/off as needed.
Shortcuts usually aren't...

n.chekasheva
Posts: 2
Joined: Thu Nov 28, 2013 3:59 pm

Re: Using Android Api

Post by n.chekasheva » Tue Dec 03, 2013 9:48 am

Thank you for your answer,

For e.g. I have a small apk which disables wifi on the phone...
How can I instrument it with Ranorex?
Or can I manage this apk FROM Ranorex during my test passing (preferably in the background)?

Are you sure that I cannot use a special library like dot42 for connecting Android api to my c# test?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Using Android Api

Post by Support Team » Thu Dec 05, 2013 11:36 am

Hello.

Unfortunately Ranorex is currently not able to deactivate, e.g., WiFi, unless there is no dedicated element available on the UI which would perform such an action.
If you are able to implement, e.g., a button to enable/disable WiFi, Ranorex could touch this button and the intended action is performed by your own app.

The usage of some library like dot42 also would not solve the problem, because the Ranorex C# code (e.g., within a code module) is not deployed to your Android device. Ranorex only communicates with the Ranorex Service App to send or retrieve messages.

Kind regards,
Christian

User avatar
Rhett
Posts: 1
Joined: Mon Dec 16, 2013 7:53 am
Location: USA
Contact:

Re: Using Android Api

Post by Rhett » Wed Jan 22, 2014 11:27 am

Ranorex does not have access to internal Android functions. You could write a small Android app that wraps that functionality and instrument it with Ranorex.
home networking solutions provider company