I am trying to run Test in 2 Android device parallel .
Appium : 1.13
java-client:6.0.0
this is my testng.xml
<test name="Android native app test on Android 7.1">
<parameter name="platform" value="Android 7.0"/>
<parameter name="udid" value="ce091609a485d33201"/>
<parameter name="systemPort" value="8204"/>
<classes>
<class name="Live_to_DVR_streaming" />
</classes>
</test>
Desired capability is
capabilities.setCapability(“deviceName”, “Moto”);
capabilities.setCapability(“device”, platformInfo[0]);
capabilities.setCapability(“version”, platformInfo[1]);
capabilities.setCapability(“platformName”, “android”);
capabilities.setCapability(“platform”, “Windows”);
capabilities.setCapability(“automationName”, “uiautomator2”);
capabilities.setCapability(“newCommandTimeout”, “1800”);
capabilities.setCapability(AndroidMobileCapabilityType.SYSTEM_PORT, systemPort);
capabilities.setCapability(MobileCapabilityType.UDID, udid);
capabilities.setCapability("androidPackage",
"com.test.amin");
capabilities.setCapability("appActivity",
"com.test.amin.MainActivity");
capabilities.setCapability("app","E:/Eclipse/AirtV/Apk/test_deebug.apk");
capabilities.setCapability(MobileCapabilityType.NO_RESET,true);
capabilities.setCapability(MobileCapabilityType.FULL_RESET,false);
capabilities.setCapability("autoGrantPermissions", "true");
driver = new AndroidDriver(url ,capabilities);
APP is launching launching in both device parallel , then after first thread always in suspended , and 1st device stuck in login screen, though second device went through and complete test.
Please tell me how to recover