Install Appium, set
demo.py from appium import webdriver #要装webdriver, method View http://www.cnblogs.com/sincoolvip/p/ 4532743.html from time import sleep
Desired_caps={}desired_caps['PlatformName'] ='Android'desired_caps['platformversion'] ='4.3'desired_caps['devicename'] ='gt-n7100' #appium自己定义, this is the name of my real machinedesired_caps['app'] ='c:\\users\\liujuan\\desktop\\apk\\app-release (+). APK' #要测试的apk包desired_caps['Apppackage'] ='Cn.com.pclady.yimei' #appium中配置desired_caps['appactivity'] ='cn.com.pclady.yimei.module.launcher.LauncherActivity' #appium中配置
Specific methods See: Http://www.cnblogs.com/sincoolvip/p/4535839.htm
= Webdriver. Remote ('http://127.0.0.1:4723/wd/hub', Desired_caps) #连接appiumsleep (3)
Use the Python GUI to open, press F5 to execute, check the results
Appium output:
Appium Run Demo Simple example explanation