Closed win5923 closed 1 year ago
@win5923 The plugin currently gets all the devices in the order appium returns and picks the free device. If you want to only run on specific devices please check this
https://github.com/AppiumTestDistribution/appium-device-farm#capabilities
appium:udids | Comma separated list of device udid's to execute tests only on specific devices appium:udids: device1UDID,device2UDID |
---|
Thank you very much.
Describe the bug
I am performing end-to-end (e2e) testing using Appium. However, when I set the capabilities to a specific device, Appium always automatically captures the first available device, even if I replace deviceName with udid.
Link to Appium logs
GIST
change to udid
Expected Behavior
I wish that when I set the udid or device name, Appium would be able to capture the correct device.
Minimal Reproducible Example
I am using https://github.com/appium/appium-docker-android and install device-farm and appium-dashboard with Docker Appium.
below is my capabilities: { platformName: 'Android', 'appium:automationName': 'uiautomator2', 'appium:udid': 'RKCXXZ0174', 'appium:platformVersion': '10', 'appium:ensureWebviewsHavePages': true, 'appium:nativeWebScreenshot': true, 'appium:newCommandTimeout': 3600, 'appium:connectHardwareKeyboard': true }
but Appium-device-farm always automatically captures the first available device.
Environment