Cucumber Hooks work in KSE but not KRE

I have a simple Cucumber project in Katalon, which works fine, but if I run it from command line (KRE) while the scenarios/features are executed, the hooks (@before and @after) are being ignored. I can’t work out why this would be different from running the test suite in KSE?

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.



Thank you for sharing your problem. I found this article on your issue: Please take a look

Thanks! I moved the hooks class from the Test Listeners folder to the Include\scripts\groovy(default package) folder and now it magically works. Not entirely sure I understand why, but an easy fix at least!

1 Like