I will however take a look at the information you provided.
Thanks
!DOCTYPE suite SYSTEM “http://testng.org/testng-1.0.dtd”>
suite name=“RunAllTestSuitesInParallel-SG” verbose=“1” parallel =“tests” thread-count=“10”>
test name = "ANDROID_Tests”>
parameter name=“AP1” value=“AP1Value”>
classes>
class name=“AutomationCode.TestCases”>
methods>
include name=“Android-Test1” />
include name=“Androit-Test2” />
/methods>
/class>
/classes>
/test>
test name = "IOS_Tests”>
parameter name=“IP1” value=“IP1”>
classes>
class name=“AutomationCode.TestCases”>
methods>
include name="IOS_Test1” />
include name="IOS_Test2” />
/methods>
/class>
/classes>
/test>
/suite>
What i mean is how do you define is it like below or you do not use static driver and instead create objects:
static Appium driver;
driver = new AndroidDriver(new URL(“http://127.0.0.1:4723/wd/hub”), dc);
Why i ask you this is when there is a static definition of any element, Parallel Testing doesnt work.Need you to confirm
Yes i understand the part where you use different port for each device you test your script on.
As i have already tried that, and was able to execute the scripts in parallel,But had a issue wherein the script continued on one of the devices and other device stopped.
I probably feel it may be due to the static driver object.
Could you please post your driver definition snippet here, if you dont mind?