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

Screenshot function only saves a single screenshot when run on multiple devices #2164

Open
1 task done
aminosman opened this issue Nov 29, 2024 · 1 comment
Open
1 task done
Labels

Comments

@aminosman
Copy link

aminosman commented Nov 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

  1. Create a flow file that takes a screenshot
- takeScreenshot:
    path: LoginScreen
  1. Run the flow on multiple devices or use shard-all maestro test --shard-all 2 .

Actual results

You will only have 1 screenshot even though you ran this on multiple devices (they override each other)

Expected results

You should get 1 screenshot per device saved to disk. Ideally we would be provided some environment variables that can be used when setting the path of the screenshot to avoid clashing between the runs and be able to attribute the screenshots to the respective devices. For example MAESTRO_SHARD_ID and MAESTRO_DEVICE_UDID.

About app

This is an open source app, available at https://github.com/wikimedia/wikipedia-ios

About environment

Apple M1 Max Macbook Pro 16

Logs

Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

1.39.2

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

Tagging @Fishbowler
Link to our Slack conversation

@herval herval added the Maestro label Dec 20, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants