I connected two android devices [adb devices = 3739433139333098,98893945564a395343] to my desktop . Appium sever always selecting one device (3739433139333098) to run the test. i even tried the udid while starting the sever but no luck.
Can any one help me to target the specific device when multiple devices are connected with same version.
{“desiredCapabilities”:{“appActivity”:“com.staircase3.opensignal.activities.MainActivity”,“appPackage”:“com.staircase3.opensignal”,“newCommandTimeout”:200,“platformVersion”:“9”,“automationName”:“UiAutomator2”,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“98893945564a395343”},“capabilities”:{“firstMatch”:[{“appium:appActivity”:“com.staircase3.opensignal.activities.MainActivity”,“appium:appPackage”:“com.staircase3.opensignal”,“appium:autoGrantPermissions”:true,“appium:automationName”:“UiAutomator2”,“appium:deviceName”:“98893945564a395343”,“appium:newCommandTimeout”:200,“platformName”:“android”,“appium:platformVersion”:“9”}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{“appActivity”:“com.staircase3.opensignal.activities.MainActivity”,“appPackage”:“com.staircase3.opensignal”,“newCommandTimeout”:200,“platformVersion”:“9”,“automationName”:“UiAutomator2”,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“98893945564a395343”},null,{“firstMatch”:[{“appium:appActivity”:“com.staircase3.opensignal.activities.MainActivity”,“appium:appPackage”:“com.staircase3.opensignal”,“appium:autoGrantPermissions”:true,“appium:automationName”:“UiAutomator2”,“appium:deviceName”:“98893945564a395343”,“appium:newCommandTimeout”:200,“platformName”:“android”,“appium:platformVersion”:“9”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1560801583583 (15:59:43 GMT-0400 (Eastern Daylight Time))
[Appium] Appium v1.13.0 creating new AndroidUiautomator2Driver (v1.33.1) session
[Appium] Capabilities:
[Appium] platformName: android
[Appium] appActivity: com.staircase3.opensignal.activities.MainActivity
[Appium] appPackage: com.staircase3.opensignal
[Appium] autoGrantPermissions: true
[Appium] automationName: UiAutomator2
[Appium] deviceName: 98893945564a395343
[Appium] newCommandTimeout: 200
[Appium] platformVersion: 9
[debug] [BaseDriver] W3C capabilities {“alwaysMatch”:{"platformNa… and MJSONWP desired capabilities {“appActivity”:"com.stairca… were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {“alwaysMatch”:{"platformNa…
[BaseDriver] Session created with session id: b3bbb3c5-6709-4442-a00c-51f3a2d541fd
[ADB] Found 11 ‘build-tools’ folders under ‘C:\Users\t936317\AppData\Local\Android\Sdk’ (newest first):
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/28.0.3
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/28.0.2
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/28.0.0
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/27.0.3
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/27.0.2
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/26.0.3
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/26.0.1
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/24.0.3
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/24.0.1
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/23.0.0
[ADB] C:/Users/t936317/AppData/Local/Android/Sdk/build-tools/21.1.2
[ADB] Using ‘adb.exe’ from ‘C:\Users\t936317\AppData\Local\Android\Sdk\platform-tools\adb.exe’
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[AndroidDriver] Looking for a device with Android ‘9’
[debug] [ADB] Setting device id to 3739433139333098
[ADB] Getting device platform version
[debug] [ADB] Running ‘C:\Users\t936317\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 3739433139333098 shell getprop ro.build.version.release’