Skip to content

Running fastlane screengrab on multiple AVDs #35

@flsg-dev

Description

@flsg-dev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions