Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Given the following definition of 2 managed devices:
Given a dependency on
androidTestUtil("androidx.test.services:test-services:1.4.2")
Given an instrumentation test that takes a screenshot:
When you comment out the definition of the "tablet" device and run
./gradlew clean phoneDebugAndroidTest
you end up with 1 screenshot in theapp/build/outputs/managed_device_android_test_additional_output/debug/phone
folder. The screenshot has the dimension of a phone. This is expected.When you comment out the definition of the "phone" device and run
./gradlew clean tabletDebugAndroidTest
you end up with 1 screenshot in theapp/build/outputs/managed_device_android_test_additional_output/debug/tablet
folder. The screenshot has the dimension of a tablet. This is expected.When you execute
./gradlew clean allDevicesAndroidTest
, two tests are executed:Unfortunately, only 1 screenshot ends up in the
app/build/outputs/managed_device_android_test_additional_output/debug
folder. It has the dimensions of a phone, yet it is stored in thetablet
subfolder.I would expect to get 2 screenshots: 1 of a phone in the
phone
subfolder and 1 of a tablet in thetablet
subfolder.A sample project showing this issue is available athttps://github.com/litrik/MultipleManagedDevices