fastlane-plugin-automated-test-emulator-run icon indicating copy to clipboard operation
fastlane-plugin-automated-test-emulator-run copied to clipboard

Running fastlane screengrab on multiple AVDs

Open flsg-dev opened this issue 5 years ago • 1 comments

Using https://github.com/AzimoLabs/fastlane-plugin-automated-test-emulator-run/issues/3 as a base for this issue, I would like to run fastlane's Screengrab on all my AVDs and this does not seem to be working at the moment.

My fastfile:

lane :assemble_apk_and_grab_screenshots do
  gradle(task: "assembleDebug assembleDebugAndroidTest")
  screengrab
 end

 lane :grab_screenshots do
  automated_test_emulator_run(
   AVD_setup_path: "~/project/fastlane/AVD_config.json",
   AVD_recreate_new: false,
   AVD_clean_after: false,
   shell_task: "fastlane assemble_apk_and_grab_screenshots"
  )
 end

What this does is launch my AVDs and runs my tests successfully. However, when I get to the screengrab task, only one emulator is showing there are screenshots available on the sdcard. The other emulator shows an error that there are no screenshots stored on the sdcard.

Both AVDs should have screenshots saved to them, since they are running the same tests. However, somehow, the screenshots from the first emulator are being cleaned when the second one completes.

flsg-dev avatar Jan 29 '20 19:01 flsg-dev

Same issue 👍

tomLadder avatar Aug 31 '20 11:08 tomLadder