51Testing软件测试论坛
标题:
[求助]monkeyrunner脚本运行提示no model named 'com'
[打印本页]
作者:
Newsan
时间:
2014-7-23 17:31
标题:
[求助]monkeyrunner脚本运行提示no model named 'com'
脚本代码如下:
from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage
device=MonkeyRunner.waitForConnection()
device.installPackage("E:/Bazi/Aiqingyuce/packagename.apk")
#查看应用包名和启动Activity:进入sdk的build-tools目录
#使用aapt dump badging apkdir/apkname
device.startActivity(component='com.lbtjni.yuce/com.lbtjni.lbtjni')
device.press("KEYCODE_MENU","DOWN_AND_UP")
result=device.takesnapshot()
result.writeToFile(r'E:/Bazi/Aiqingyuce/shot1.png','.png')
作者:
hwzhuang
时间:
2014-11-11 23:35
楼主是怎么运行的?
作者:
cuikejie123
时间:
2016-5-28 18:44
cmd窗口运行可以的吧
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2