Little White Learn appium how to install apk

Source: Internet
Author: User
Tags appium

As a pure small white, only a little Python, no contact with automation, from the beginning of the mad. The process may not be perfect, may be particularly white description and the focus of the puzzle, but at least it is their own efforts, refueling.

In detail, I learned how to build an environment for appium automated testing, and I used Appium + Python + Android.

This time write how to install and uninstall apk in Android emulator on Windows

1. Install apk

First the APK to install will be placed under a path, such as my c:\\ (if C:\android\android-sdk-windows\platform-tools adb.exe I have installed)

I am going to install the APK in the simulator, then I should start the simulator? I'm good to go first.

Enter the command in the CMD window in the directory where the APK is located: adb install xxxx.apk

Display * Daemon not running. Starting it now on Port 5037 *

* Daemon started successfully *

Success

This means that the install APK is successful, and you can see the icon for the app that was successfully installed in the emulator.

If the failed, it is possible that the simulator boot time is too long and then a problem can be resolved by rebooting.

ADB kill-server adb start-server

Sometimes you start a lot of devices and you need to see how many devices are online: ADB devices

Ah, it is so simple, I also tinker for a long time, stupid dead.

2. Uninstall APK

2.1 Already installed on the emulator apk to uninstall: adb uninstall xxx.apk

2.2 Already installed on the emulator apk to uninstall and then install: adb uninstall xxx.apk, adb install xxxx.apk or direct adb install-r xxxx.apk

2.3 When uninstalling an application, you can add the-K command line parameter to keep the data and buffer directory, only uninstall the application: ADB uninstall-k xxx.apk

2.4 Installing the Apk:adb-s emulator-5554 install xxx.apk (this emulator-5554 from ADB devices) on the simulator

2.5 Installing Apk:adb-s ht9byl904399 install xxx.apk on a real machine

2.6 Reinstall the Apk:adb-s emulator-5554 install-r xxxx.apk on the emulator

2.7 Reinstall Apk:adb-s ht9byl904399 install-r xxxx.apk on the real machine

Above

Little White Learn appium how to install apk

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.