Android Automated Testing Python Appium
PART 1 : INSTALLATION
Tutorialhttps://www.youtube.com/watch?v=gD4eulxGNok
Download version 2.7.xhttps://www.python.org/downloads/release/python-2713/
Make sure after the all the installation complete open cmd and when type python –version is not error
Install Python
Install JDKDownloadhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
After InstallationSame as before instruction, Set JAVA_HOME to your JDK folder
Install Android SDK (Quite Big)Downloadhttps://developer.android.com/studio/index.html
After Installation:You will need to run the ‘android’ tool (included in the SDK) and make sure you have an API Level 17 or greater API installed. Set ANDROID_HOME to be your Android SDK path and add the tools and platform-tools folders to your PATH variable.
Install Appiumhttps://github.com/appium/appium-desktop/releases/tag/v1.0.0
Install Appium Python
Downloadhttps://github.com/appium/python-client/archive/master.zip
After Installation1. Open cmd and direct to the folder2. And run python setup.py install
Download Selendroid APK Only act as sample that will be replaced by your APK later on
Download Sublime 3https://www.sublimetext.com/3
Follow the instruction from Vedant Kashyap https://www.quora.com/How-do-I-use-python-2-and-3-in-sublime-text-editor
Download Code Editor (Optional)
PART 2 : SETTINGS
Start Appmium Server• Open Appmium• Type 127.0.01• Port 4723• Run
Connect Android to your computer for debug
Run Python
Paste the python code https://pastebin.com/k00LYmSe
• Make sure the location of apk file is correct:
• desired_caps['app'] = os.path.abspath(‘???/selendroid-test-app-0.17.0.apk') and execute it!
• Make sure your phone is on active mode
Thanks
Top Related