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
Assuming I have the below class which implements both Task and an empty interface called NoScreenshot.
public class A implements Task, NoScreenshots
And in serenity.properties I do the following: serenity.take.screenshots=AFTER_EACH_STEP serenity.take.screenshot.for.noscreenshots=DISABLED
How does the framework resolve this conflict of Task taking screenshots after each step, but NoScreenshot defining it as disabled?
Based on my test, it seems like screenshots are still being taken when class A is executed. I'm trying to find a way to disable screenshots just for this class, but all Tasks should take screenshots as per defined. Thanks!
The text was updated successfully, but these errors were encountered:
I think serenity.take.screenshot.for.noscreenshots should take priority, but the best way to check would be to see what the code is doing in the BaseStepListener class (in the take() method).
Hi there,
I'm on Screenplay for my project.
Assuming I have the below class which implements both
Task
and an empty interface calledNoScreenshot
.public class A implements Task, NoScreenshots
And in
serenity.properties
I do the following:serenity.take.screenshots=AFTER_EACH_STEP
serenity.take.screenshot.for.noscreenshots=DISABLED
How does the framework resolve this conflict of
Task
taking screenshots after each step, butNoScreenshot
defining it as disabled?Based on my test, it seems like screenshots are still being taken when class
A
is executed. I'm trying to find a way to disable screenshots just for this class, but all Tasks should take screenshots as per defined. Thanks!The text was updated successfully, but these errors were encountered: