-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
airtest断开连接:orientationWatcher has ended #191
Comments
不要在运行airtest脚本的同时运行ADB指令……会相互抢占导致ADB不断重启的 |
我再重新创建airtest,再抢占回来也不行吗 |
目前暂时最好不要这么做,或者等待下一次airtest的版本更新ADB之后,统一你的本地adb环境之后可能可以解决 |
我需要在运行airtest步骤的中间去执行其他的adb命令,然后在回来接着执行airtest,现在有办法解决吗 ? |
可以用airtest里封装的adb来尝试执行,参考文档 |
@silencesmile 我也遇到相同的问题了,也是执行airtest过程中另外调用adb来截图出现的,请问你用airtest里封装的adb来解决这个问题了吗? |
没有
| |
henan_youngstar
|
|
henan_youngstar@163.com
|
签名由网易邮箱大师定制
在2018年10月24日 09:46,wcp1234<notifications@github.com> 写道:
@silencesmile 我也遇到相同的问题了,也是执行airtest过程中另外调用adb来截图出现的,请问你用airtest里封装的adb来解决这个问题了吗?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
我给个代码范例吧,类似这样
|
像示例里那样,在收集数据时使用airtest中的adb,或者等下个版本更新后,将本地adb和airtest中使用的adb统一成同一个版本(目录位置 |
@yimelia |
@wcp1234 有同步更新,执行 |
明白了,谢谢 @yimelia |
(请尽量按照下面提示内容填写,有助于我们快速定位和解决问题,感谢配合。否则直接关闭。)
(重要!问题分类)
Python代码控制airtest时,中间使用adb命令可能导致airtest断开连接,当我使用多线程操作其他adb命令时,为什么同样也会断开连接,当断开连接后我重新创建爱airtest为什么还是不能继续使用
描述问题bug
Python代码控制airtest时,中间使用adb命令可能导致airtest断开连接,当我使用多线程操作其他adb命令时,为什么同样也会断开连接,当断开连接后我重新创建爱airtest为什么还是不能继续使用
相关截图
复现步骤
#点击某个图片,Airtest中基于图像识别语法,图片自己提供。
for img in imgs:
airtest.touch_img(img)
print('zzz', img)
预期效果
多线程(代码时通过adb截取手机屏幕)不影响airtest的继续运行
python 版本:
python3.5
python3.6.5
airtest 版本:
1.0.69
airtest:1.0.23
设备:
The text was updated successfully, but these errors were encountered: