appium启动APP时避免重新安装的问题

https://www.cnblogs.com/jinbaobao/p/9776889.html

from appium import webdriver
from time import sleep
import os

#获取apk的绝对路径
desired_cups = {}
#设备平台
desired_cups['platformName'] = 'Android'
#设备系统版本
desired_cups['platformVersion'] = '4.4.2'
#设备名称
desired_cups['deviceName'] = 'HuaWei'
#APK名
desired_cups['appPackage'] = 'com.tencent.mm'
#APKactivity
desired_cups['appActivity'] = 'com.tencent.mm.ui.LauncherUI'
#不需要再次签名
desired_cups['noSign'] = 'True'
#不需要清理数据,避免重新安装的问题
desired_cups['noReset'] = 'True'

print desired_cups
driver = webdriver.Remote('http://localhost:4723/wd/hub',desired_cups)
sleep(10)
原文地址:https://www.cnblogs.com/zhenyu1/p/12937414.html