Appium Parallel Test Execution 删除一个设备的驱动程序,显示会话已终止或未启动 [英] Appium Parallel Test Execution removes driver for one device, showing A session is either terminated or not started

查看:20
本文介绍了Appium Parallel Test Execution 删除一个设备的驱动程序,显示会话已终止或未启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 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.

这是我的代码,

BaseDriver

TestClass

TestListener

TestNG XML

错误说明

Appium 服务器日志

执行日志

我正在努力寻找删除驱动程序的位置.

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 删除一个设备的驱动程序,显示会话已终止或未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆