How do I install/uninstall APK in emulator

Mobile Testing, Android App Testing.
flashmark
Posts: 13
Joined: Tue Oct 28, 2014 6:25 am

How do I install/uninstall APK in emulator

Post by flashmark » Wed Nov 12, 2014 12:47 pm

Hi,

How do I install(also uninstall) .apk in android emulator before starting test execution ?
Before starting test execution, I want to install latest version of .apk file which is available in my hard drive.
Do you any solution to this?

thanks

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

Re: How do I install/uninstall APK in emulator

Post by Support Team » Fri Nov 14, 2014 11:12 am

Hello flashmark,

You can instrument and deploy your APK file using Instrumentation Wizard from the command line.

For example:

Code: Select all

Ranorex.Instrumentation.exe /p:"android" /d:"MyPhone" /a:"PathToAPK\MyApp.apk"
The Instrumentation Wizard executable is stored within the “bin”-folder of the installation folder of Ranorex. Usually, C:\Program Files (x86)\Ranorex 5.2\Bin

Further information about using the Instrumentation Wizard from the command line can be found here:
http://www.ranorex.com/support/user-gui ... html#c4643

In order to uninstall applications from your Android device you could use the Android Debug Bridge (adb) tool, which can be found within the Android tools of your Ranorex installation: C:\Program Files (x86)\Ranorex 5.2\Bin\RxEnv\Android\tools.

A comprehensive documentation about the Android Debug Bridge can be found here:
https://developer.android.com/tools/help/adb.html

The command line instructions could be called within a batch-file or could be executed from a CI*-tool such as Jenkins in order to automate the steps.
* Continues Integration

Hope this information helps.

Regards,
Robert

flashmark
Posts: 13
Joined: Tue Oct 28, 2014 6:25 am

Re: How do I install/uninstall APK in emulator

Post by flashmark » Mon Nov 24, 2014 10:48 am

ok.Thanks for your help