python appium automated testing

14
Android Automated Testing Python Appium

Upload: herman-taniwan

Post on 21-Apr-2017

85 views

Category:

Internet


8 download

TRANSCRIPT

Page 1: Python appium automated testing

Android Automated Testing Python Appium

Page 2: Python appium automated testing

PART 1 : INSTALLATION

Page 3: Python appium automated testing

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

Page 4: Python appium automated testing

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

Page 5: Python appium automated testing

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.

Page 6: Python appium automated testing

Install Appiumhttps://github.com/appium/appium-desktop/releases/tag/v1.0.0

Page 7: Python appium automated testing

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

Page 8: Python appium automated testing

Download Selendroid APK Only act as sample that will be replaced by your APK later on

Page 9: Python appium automated testing

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)

Page 10: Python appium automated testing

PART 2 : SETTINGS

Page 11: Python appium automated testing

Start Appmium Server• Open Appmium• Type 127.0.01• Port 4723• Run

Page 12: Python appium automated testing

Connect Android to your computer for debug

Page 13: Python appium automated testing

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

Page 14: Python appium automated testing

Thanks