You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support request => Please do not submit support request here, see note at the top of this template.
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:
fun takeScreenshotOnNavigation(testName: String, navController: NavController): Job {
val counter = AtomicInteger(0)
return GlobalScope.launch(Dispatchers.IO) {
navController.currentBackStackEntryFlow.collect {
val screenshotName = "${testName}-${counter.getAndIncrement()}"
allureScreenshot(name=screenshotName)
}
}
}
NOTE: I also tried addOnDestinationChangedListener and got the same behavior.
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: