Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running fastlane screengrab on multiple AVDs #35

Open
flsg-dev opened this issue Jan 29, 2020 · 1 comment
Open

Running fastlane screengrab on multiple AVDs #35

flsg-dev opened this issue Jan 29, 2020 · 1 comment

Comments

@flsg-dev
Copy link

flsg-dev commented Jan 29, 2020

Using #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.

@tomLadder
Copy link

Same issue 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants