Appium (i)---

Source: Internet
Author: User

Appium Environment Construction

1. Install Oracle VirtualBox >= 4.1 (the higher the version, the better)

: https://www.virtualbox.org/wiki/Downloads Official Download installation,

and the corresponding patches, such as VirtualBox 4.2.16 Oracle VM VirtualBox Extension Pack

2. Install Android development environment: Sdk,eclipse+adt

: http://www.android-doc.com/sdk/index.html

3. Installing Genymotion

: https://www.genymotion.com

Follow the instructions on the graphical interface and click Next to complete the installation

Several points to note:

A.genymotion and VirtualBox versions are consistent

B.genymotion in ADB settings, you cannot use the default SDK, otherwise you will get an error

C. After the virtual device is installed successfully, you need to install the Genymotion-arm-translation plugin in the virtual device, all the error about ARM is because the plugin is not installed

: A lot of resources, self-search it

ADB basic commands

ADB Shell Dumpsys Activity | grep focuse >/libary/log.txt queries the currently open activity name and outputs it to the/libary/log.txt directory

ADB Shell Dumpsys Activity | findstr focuse Query the currently open activity name (executed under Windows cmd)

ADB shell PM List package lists all installed packages names

ADB shell am start-w-n p (package name)/p (package name) +a (activity name) forcibly launches an activity with ADB

ADB shell am force-stop forced exit

ADB shell pm Clear Clear Cache

Install safety loading and unloading

Unstall Uninstall

Push

Pull

ADB shell getprop ro.serialno query device string number

Eclipse Encapsulation adb Command

1. Class and method calls that execute the ADB command

Runtime.getruntime (). EXEC ("adb devices");

Appium (i)---

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.