-
Notifications
You must be signed in to change notification settings - Fork 21
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
Calling allureScreenshot on a different thread does not add attachment #64
Comments
I did figure out that this works a bit better using the above function.
Presumably because i'm no longer starting the monitoring inside of the main thread (via scenario.onActivity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a ...
What is the current behavior?
I am trying to monitor the destinations of my navController, and at each change in destination record an allure snapshot. The snapshot png files are produced in the allure-results directory. However, they are not referenced as attachments in the .json file. Instead i get an empty attachments array.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
The function i'm using to monitor the nav controller:
NOTE: I also tried addOnDestinationChangedListener and got the same behavior.
And calling it here in my espresso test:
but the only attachment i see in the json is the main one from the ScreenshotRule:
But the allure-results directory has all the screenshots in it.
What is the expected behavior?
I would expect these attachments to be record in the results.json file.
What is the motivation / use case for changing the behavior?
Automating screenshots on navigation events.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: