TA的每日心情 | 慵懒 2017-10-9 10:04 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
D:\Program Files\Java\adt-bundle-windows-x86-20130917\sdk\tools>monkeyrunner
Jython 2.5.3 (2.5:c56500f08d34+, Aug 13 2012, 14:54:35)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_144
>>> from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage
>>> devices=MonkeyRunner.waitForConnection(5,'4b37ca1d')
>>> devices.startActivity(component = 'com.jiaotong.app/.mvp.module.launch.Splas
hScreenActivity')
>>> devices.touch(351,1292,"DOWN_AND_UP")
>>> MonkeyRunner.sleep(5)
>>> result = device.takeSnapshot()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'device' is not defined
C:\Users\admin\Desktop\QQ截图20170920174330.png
报错 |
|