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

Lifecycle callbacks setupall investigation #1741

Conversation

bartekpacia
Copy link
Contributor

@bartekpacia bartekpacia commented Sep 22, 2023

Looks like it's not possible to for an instrumentation app to store cache/tmp files (link).

@github-actions github-actions bot added the package: patrol Related to the patrol package (native automation, test bundling) label Sep 22, 2023
@bartekpacia
Copy link
Contributor Author

bartekpacia commented Sep 25, 2023

Remembering setUpAlls that were executed across multiple app under test runs requires some safe, persistent place.

On iOS, this can simply be instrumentation's memory, because it lives for the whole duration of the test suite execution.

On Android though, the instrumentation and app under test live in the same process, and both are killed and their memory is cleared after a single test finishes running. It's Android Test Orchestrator who manages execution, and it doesn't expose any APIs for storing some data persistently.


Another idea is to store the status of setUpAll that were executed in the filesystem.

As an example, we can take a look at how Allure accomplishes saving files to filesystem:

@bartekpacia
Copy link
Contributor Author

This sounds good

@bartekpacia
Copy link
Contributor Author

Superseded by #1751.

@bartekpacia bartekpacia deleted the lifecycle_callbacks_setupall_investigation branch September 28, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: patrol Related to the patrol package (native automation, test bundling)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant