Appium Automated test Environment setup:
1.Python Environment (recommended 2.7) and JDK.
Download 2.Adb tools: Download adb, night God simulator and Android SDK yourself separately
3.APK installation media: Real-computer, Android-powered simulator and third-party simulator, recommended here: third-party simulator (Night-god simulator). You need to set the night God Simulator to: Developer mode.
4. Install the Appium PC client.
(1) Install The Python development module Appium-python-client:pip install Appium-python-client.
(2) use apktool-new to analyze the Apppackage and appactivity of the apk you want to download.
Reference URL:
A.http://www.cnblogs.com/fnng/p/4540731.html
B.http://www.cnblogs.com/fnng/p/4552438.html
C.http://www.cnblogs.com/fnng/p/4560298.html
D.http://www.cnblogs.com/fnng/p/4579152.html Steps to use:
I. Use the Apktool tool to decompile the downloaded apk. The command is as follows:
Apktool D xxx.apk
II. Anti-compilation Get xxx folder, in Androidmanifest.xml find apppackage and appactivity, specific find can refer to http://blog.csdn.net/linux_ loajie/article/details/34148943 .
A. use the UI Automator viewer in the Android SDK in step 2 to locate the element location of the apk you want to analyze.
B.[start coding], make sure to start [adb connect 127.0.0.1:62001 | adb devices]
Simple test Case:
Instance Code
ADB operations
Appium PC Client Run condition
Night God simulator apk running situation
Mobile (Appium) Automated testing-another means of crawler