I am trying to attach screenshot to the cucumber report after the failure of a test run. Using test listener with @After I am able to take and embed screenshot when run with katalon studio. However if I run the same in console(Command Prompt) or through jenkins it is not working.
@After tag does not work in console.
I am using Import cucumber.api.java.After
Can anyone help @devalex88
Thanks in advance.