stcnchenxin

Results 2 issues of stcnchenxin

因为测试的应用是用unity的,所以把poco_driver 换成了 UnityPoco,但是跑的时候发现提示:OSError: socket connection broken。 看了下airtest的官方文档,说一般是因为需要启动应用之后才实例化UnityPoco。所以换成下面的方式,在 ```test_domo.app.setup_func``` 里启动应用之后再实例化UnityPoco,但是好像还是报这个错 ``` # common.py @allure.step('初始化驱动') def init_driver(self): # 创建设备驱动 self.device_phone = my_retry_connect("android://{0}:{1}/{2}?cap_method=javacap&touch_method=adb".format( self.phone_ip, self.phone_port, self.phone_uuid)) self.phone_dev = self.phone_uuid # init的时候抽离 poco的实例化,改为在启动应用后进行 def...

Sometimes i want to use the position when use `poco.click()` for some reason (like calculate, or record), i must use `poco.get_position()` to get position (and it can be more trouble...