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)---