问题
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