Hi
I’m using C# with Appium and run tests (unit test) through browser (chrome),
Usually when I have started running more then one test in batch from visual studio,
I get the first test running fine (pass or fail) and the second test or the third test fail with the following error:
A new session could not be created. (origianl error: Requested a new session but one was in progress)
My Code : // driver init
driver = new RemoteWebDriver(new Uri(“http://127.0.0.1:4723/wd/hub”), capabilities);
with driver capabilities:
DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
capabilities.SetCapability(“deviceName”, “192.168.56.101:5555”);
capabilities.SetCapability(“platformName”, “android”);
capabilities.SetCapability(MobileCapabilityType.LaunchTimeout, “120000”);
I have make sure that chromedriver.exe is not running on background and also run driver.quit(); on test cleanup.
Do you have any idea how to find a workaround for that issue?
Appium version 1.3.4.1
Thanks
Eyal