安装appium,设置
demo.pyfrom appium import webdriver #要装webdriver,方法查看http://www.cnblogs.com/sincoolvip/p/4532743.htmlfrom time import sleep
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '4.3'
desired_caps['deviceName'] = 'GT-N7100' #appium自己定义,这是我的真机名称
desired_caps['app'] = 'C:\\Users\\liujuan\\Desktop\\apk\\app-release(30).apk' #要测试的apk包
desired_caps['appPackage'] = 'cn.com.pclady.yimei' #appium中配置
desired_caps['appActivity'] = 'cn.com.pclady.yimei.module.launcher.LauncherActivity' #appium中配置
具体方法见:http://www.cnblogs.com/sincoolvip/p/4535839.htm
dr = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) #连接appium
sleep(3)
使用python GUI找开,按F5执行,检查结果
appium输出: