sonic-server icon indicating copy to clipboard operation
sonic-server copied to clipboard

[Bug] 通过REST API占用设备并获取远程,不能立即使用连接

Open mocobk opened this issue 1 year ago • 2 comments

Search before asking

  • [X] I searched in the issue and found nothing similar. | 我查找了并确认issue列表无相似报告。

Sonic version

2.6.1

Deploy platform

Macosx

Minimal reproduce step

  1. 用 REST API 获取 uia2 连接地址
  2. 在脚本中立即使用 uia2 地址初始化 AndroidDriver
  3. 执行方法会出现报错情况

获取 uia2 地址需要强制等待设备 server 启动完成,建议这里做成阻塞式接口或能获取是否启动完成的状态,避免脚本强制等待一个时间

Are you willing to submit a PR?

  • [x] I'm willing to submit a PR! | 我将发起PR!

mocobk avatar Jul 18 '23 14:07 mocobk