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
How do I install/uninstall APK in emulator
- Support Team
- 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
Hello flashmark,
You can instrument and deploy your APK file using Instrumentation Wizard from the command line.
For example:
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
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"
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
Re: How do I install/uninstall APK in emulator
ok.Thanks for your help