The difference between ITestListener vs IInvokedMethodListener while adding custom steps #2879
-
Hi, I was trying to add custom steps before each test using TestNG+Maven+Selenide. Noticed that all works fine while using IInvokedMethodListener, but when it comes to ITestListener nothing is visible, Is there a way to implement this change or it has something to do with Allure lifecycle() and that's why I cannot? P.S. Test code is below: #####WORK########## public class MethodListener implements IInvokedMethodListener {
#####DOES NOT WORK########## public class MethodListener implements ITestListener
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Please look at https://github.com/biczomate/allure-testng7.5-attachment-example. The idea is the same, you can use Allure Lifecycle Listener instead of TestNG Listeners to avoid reporting issues |
Beta Was this translation helpful? Give feedback.
Please look at https://github.com/biczomate/allure-testng7.5-attachment-example. The idea is the same, you can use Allure Lifecycle Listener instead of TestNG Listeners to avoid reporting issues