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

TriggerMode.AUTOMATIC_ON_FAIL isn't triggered instantly when @AfterAll is present in Junit5 #658

Open
slawekradzyminski opened this issue Jan 3, 2019 · 2 comments
Labels

Comments

@slawekradzyminski
Copy link
Member

slawekradzyminski commented Jan 3, 2019

#655 continuation.

Using JUnit5 even though user configures TriggerMode.AUTOMATIC_ON_FAIL screenshot is created after annotation code method execution.

In JUnit4 we have implemented custom After annotation to solve this issue.

Not sure if this feature works in TestNG.

@slawekradzyminski
Copy link
Member Author

This is great task to learn JUnit 5 :)

@nsmorisset
Copy link

hello,

I would like to take a capture with junit 5, but the feature does not work.

When can we take a screenshot before executing the annotation code method (@AfterEach & @afterall)

Is there a "Simple" alternative because I am a beginner ?

Thank you

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