移动性能测试 monkeyrunner 中触摸屏幕老出错,都无奈了。device.touch 应该怎么用呀

苏昊波 · September 27, 2017 · Last by 小菜 replied at November 24, 2018 · 3163 hits
>>> device.touch(250,450,'Down_And_Up')
170927 11:12:14.112:S [main] [com.android.chimpchat.adb.AdbChimpDevice] Error se
nding touch event: 250 450 DOWN_AND_UP
170927 11:12:14.112:S [main] [com.android.chimpchat.adb.AdbChimpDevice]java.net.
SocketException: Software caused connection abort: socket write error
170927 11:12:14.112:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.
net.SocketOutputStream.socketWrite0(Native Method)
170927 11:12:14.112:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.
net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)


>>> device.touch(250,450,'DOWN_AND_UP')
170927 11:13:46.857:S [main] [com.android.chimpchat.adb.AdbChimpDevice] Error se
nding touch event: 250 450 DOWN_AND_UP
170927 11:13:46.857:S [main] [com.android.chimpchat.adb.AdbChimpDevice]java.net.
SocketException: Software caused connection abort: socket write error
170927 11:13:46.857:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.
net.SocketOutputStream.socketWrite0(Native Method)
170927 11:13:46.857:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.
net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)

>>> device.touch(250,450,"DOWN_AND_UP")
170927 11:26:48.736:S [main] [com.android.chimpchat.adb.AdbChimpDevice] Error se
nding touch event: 250 450 DOWN_AND_UP
170927 11:26:48.736:S [main] [com.android.chimpchat.adb.AdbChimpDevice]java.net.
SocketException: Software caused connection abort: socket write error
170927 11:26:48.736:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.
net.SocketOutputStream.socketWrite0(Native Method)
170927 11:26:48.736:S [main] [com.android.chimpchat.adb.AdbChimpDevice] at java.
net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)

共收到 1 条回复 时间 点赞

这个问题解决了吗?我也经常遇到这个问题,贼头疼啊,小米手机这样,有个华为手机没有这个问题。不知道咋回事

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up