-
Notifications
You must be signed in to change notification settings - Fork 25
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
minitouch did not work,且尝试多种方法后均未解决 #22
Comments
|
@williamfzc ,尊敬的开发者,你好,我们也是在模拟器上进行测试遇到了类似的问题: Type A touch device androVM Virtual Input (1600x900 with 2 contacts) detected on /dev/input/event4 (score 11200)
binding socket: Address already in use
Unable to start server on minitouch
Traceback (most recent call last):
File "D:\Program\**********\lab\test_pyminitouch.py", line 54, in <module>
main()
File "D:\Program\**********\lab\test_pyminitouch.py", line 42, in main
device = MNTDevice("emulator-5554")
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\**********\mambaforge\envs\conda-general\Lib\site-packages\pyminitouch\actions.py", line 117, in __init__
self.start()
File "C:\Users\**********\mambaforge\envs\conda-general\Lib\site-packages\pyminitouch\actions.py", line 125, in start
self.server = MNTServer(self.device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\**********\mambaforge\envs\conda-general\Lib\site-packages\pyminitouch\connection.py", line 102, in __init__
assert (
AssertionError: minitouch did not work. see https://github.com/williamfzc/pyminitouch/issues/11
Process finished with exit code 1 经过探索,我们发现:这是由于在测试脚本执行完毕后, 期待您的回复! |
@songyuc 可以在执行完毕时尝试利用adb把进程杀掉,如果进程没有正常结束的话 |
@williamfzc ,您好,请问一下,您在实机测试中使用 |
没有。但我个人的样本量不大,不好做参考 |
好的,感谢您的回复! |
@williamfzc,您好,我看到您在首页文档中引用的minitouch,仍然是旧版的openstf/minitouch; |
看了一下新版本只是换到了openstf namespace下,并没有对代码有什么改动的样子,可能影响不大。 我也留意到官方似乎并不打算原生支持 10+ 的版本,也可能与之后的安全策略有关系。 |
@williamfzc,感谢您的解答! |
https://github.com/williamfzc/pyminitouch/blob/master/pyminitouch/connection.py 提前把预编译好的minitouch推进设备,让他自动跳过下载的步骤即可 |
@williamfzc 感谢您的回复,我们学习一下您的代码~ |
IDE报:
按照#11 的解法,每次执行程序前都已重启ADB服务器:
每次点击完成后都会执行
device.stop()
问题依旧未解决,第一次执行程序不会出现问题,之后会一直出现,重启模拟器后依旧仅第一次能够不出问题
没有安装uiautomator或者airtest
大佬看一下还有解吗,辛苦了
The text was updated successfully, but these errors were encountered: