问题描述
我尝试使用 TestNG 和 Appium 实现并行测试执行,我使用了 ThreadLocal.问题是第一次运行后的一个设备丢失了.但另一台设备已完成所有测试.
Hi I tried to implement parallel test execution using TestNG and Appium, I used ThreadLocal. The problem is that one device after the first run is lost. But the other device is completed all its test.
这是我的代码,
我正在努力寻找删除驱动程序的位置.
I am struggling to find where the driver is removed.
任何帮助将不胜感激.
推荐答案
我自己修复了它.由于我将 System port 和 WDALocalPort I 用于单个 appium 会话,因此我不需要使用会话覆盖.会话覆盖正在用一个新会话替换我当前的会话.总之谢谢大家
I fixed it by myself. As I am using System port and WDALocalPort I for single appium session, I don't need to use session override. Session overriding was replacing my current session's with a single new session. Anyway thanks everyone
这篇关于Appium Parallel Test Execution 删除一个设备的驱动程序,显示会话已终止或未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!