Want to use Android API in my Ranorex project using C# scrip

Ask general questions here.
vipulagarwal
Posts: 3
Joined: Thu Nov 17, 2016 11:26 am

Want to use Android API in my Ranorex project using C# scrip

Post by vipulagarwal » Thu Nov 17, 2016 12:10 pm

I want to use Android API in my Ranorex project using C# script

Can we use Ranorex for android testing such opportunity? If yes, which library can I use?

Best Regards,
Vipul

User avatar
RobinHood42
Posts: 239
Joined: Fri Jan 09, 2015 3:24 pm

Re: Want to use Android API in my Ranorex project using C# scrip

Post by RobinHood42 » Fri Nov 18, 2016 3:45 pm

Hi Vipul,

It seems you are trying a complete different approach.

With the following link you can find a description how to test android apps with Ranorex.
http://www.ranorex.com/support/user-gui ... sting.html

Why do you want to use the Android API in Ranorex?

Cheers,
Robin

vipulagarwal
Posts: 3
Joined: Thu Nov 17, 2016 11:26 am

Re: Want to use Android API in my Ranorex project using C# scrip

Post by vipulagarwal » Mon Nov 21, 2016 7:17 am

Actually I want to automate the scenarios outside the android app, For example I want to verify my device is lock/unlocked and want to verify mobile access point name.

I am working on Mobile device management (MDM) capabilities give you the fundamental visibility and IT controls needed to securely deploy, manage, and retire devices when employees replace devices or leave the company.

Scenarios:

1. Turn On/ Turn Off GPS
2. Reboot the device
3. Verify the Push notification
4. Lock/Unlock

I hope now you understand my point.

Thanks,
Vipul

User avatar
RobinHood42
Posts: 239
Joined: Fri Jan 09, 2015 3:24 pm

Re: Want to use Android API in my Ranorex project using C# scrip

Post by RobinHood42 » Thu Nov 24, 2016 4:48 pm

Hi Vipul,

I'm afraid restarting and unlocking the device is not possible using the Ranorex API because the service app has to be started in order to execute actions on the device by Ranorex.

Cheers,
Robin

vipulagarwal
Posts: 3
Joined: Thu Nov 17, 2016 11:26 am

Re: Want to use Android API in my Ranorex project using C# scrip

Post by vipulagarwal » Fri Nov 25, 2016 5:14 am

Is there any alternative way or third-party integration ?

Please let me know ASAP.

Thanks in Advance.

Regards,
Vipul

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

Re: Want to use Android API in my Ranorex project using C# scrip

Post by odklizec » Fri Nov 25, 2016 8:13 am

Hi Vipul,

No there is no alternative way to achieve what you want. It's Android/iOS (mostly security) limitation. Certain things simply cannot be automated on these platforms. It's not a Ranorex fault.
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