Appium Parallel Test Execution removes driver for one device, showing A session is either terminated or not started

試著忘記壹切 提交于 2019-12-25 03:04:10

问题


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.

Here is my code,

BaseDriver

TestClass

TestListener

TestNG XML

Error Description

Appium Server Log

Execution Log

I am struggling to find where the driver is removed.

Any help will be appreciated.


回答1:


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



来源:https://stackoverflow.com/questions/55019517/appium-parallel-test-execution-removes-driver-for-one-device-showing-a-session

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!