I have two different Android devices plugged into the same machine. What I would like to do is to target each device and execute a test on it separately.
Unfortunately,
In the new Android Studio Artic Fox (it would have been Android Studio 4.3 in the previous numering system and at this moment is still in beta) you can run the tests in multiple machines at the same time.
https://developer.android.com/studio/preview/features?utm_source=android-studio-2020-3-1&utm_medium=studio-assistant-preview#instrumentation-testing
To take advantage of this feature:
- Choose Select Multiple Devices in the target device dropdown menu (in the top-center of the IDE).
- Select the target devices and click OK.
- Run your tests.
To view your test results in the Run panel, go to
View > Tool Windows > Run
.