I have written code for parallel execution to start appium driver based on port and device ids given from Testng . Selenium hub is starting and registering code but the code that instantiates the driver after setting desired capabilities give null driver with error Failed to start the appium session , device id <> not listed.