CANNOT implement a parallel testing in Appium 2.0

Hello,
I am in trouble making several devices tested simultaneously in 1 Appium instance.
I already put systemPort for each device as a desired capability.
I found that all three devices were connected but only one of them started to test and it was working properly.
could you please help to find the solution to this?
Kind regards,
Suree

Desired capabilities
DEVICES = [
    {
        'platformName': 'Android',
        'platformVersion': '11',
        'deviceName': 'Pixel',
        'automationName': 'uiautomator2',
        'udid': 'emulator-5554',
        'systemPort':8200,
        'app': ‘path/app/app.apk',
        'fastReset': True,   
        'noReset': True,
        'appLaunched': True,
        'newCommandTimeout': 100,
        'ignoreHiddenApiPolicyError': True
    },
    {
        'platformName': 'Android',
        'platformVersion': '12',
        'deviceName': 'Galaxy',
        'automationName': 'uiautomator2',
        'udid': ‘********’,
        'systemPort':8299,
        'app': ‘path/app/app.apk',
        'fastReset': True,
        'noReset': True,
        'appLaunched': True,
        'newCommandTimeout': 100,
        'ignoreHiddenApiPolicyError': True    
    },
    {
        'platformName': 'Android',
        'platformVersion': '9',
        'deviceName': 'SM-N971N',
        'automationName': 'uiautomator2',
        'udid': ‘********’,
        'systemPort':8300,
        'app': ‘path/app/app.apk',
        'fastReset': True,
        'noReset': True,
        # 'appLaunched': True,
        'autoLaunch':True,
        'newCommandTimeout': 100,
        'ignoreHiddenApiPolicyError': True    
    }
]
  • driver
    for device in DEVICES:
    driver = webdriver.Remote(‘http://localhost:4723/wd/hub’, device)

  • Appium log
    [debug] [ADB] Connected devices: [{"udid”:”R***”,”state":“device”},{“udid”:“R3*****”,”state”:“device”},{“udid”:“emulator-5554”,“state”:“device”}]**

[AndroidDriver] Using device: R3******

one device = one appium server = 4723 appium server port should unique per device

1 Like