currys-co-uk / mobile-manager

MobileManager is an application used for automation testing of iOS and Android mobile devices.
GNU General Public License v3.0
8 stars 2 forks source link

Problem with adding newer Android devices (GetDevicePropertiesById(String deviceId)) #42

Closed CDJojn closed 2 years ago

CDJojn commented 2 years ago

We have problem to add new versioned Android devices (typically Android 11). We get error with many devices.

fail: MobileManager[0] 11.01.2022 21:08:56: [ERROR]: Index was outside the bounds of the array. fail: MobileManager[0] 11.01.2022 21:08:56: at MobileManager.Services.AndroidDeviceService.GetDevicePropertiesById(String deviceId) in \mobile-manager\MobileManager\Services\AndroidDeviceService.cs:line 220 at MobileManager.Services.AndroidDeviceService.LoadConnectedAndroidDevicesAsync(CancellationToken cancellationToken) in \mobile-manager\MobileManager\Services\AndroidDeviceService.cs:line 121

This error is caused by one wrong (multi-line or non-standard record [key]: [value]). In this case whole Android Device is not added as device. One missing device property doesn't affect functionality of device.

CDJojn commented 2 years ago

Fixed by pull-request #43.