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

afterScenario hook not running when scenario fails #2540

Open
Liz0206 opened this issue Mar 28, 2024 · 1 comment
Open

afterScenario hook not running when scenario fails #2540

Liz0206 opened this issue Mar 28, 2024 · 1 comment

Comments

@Liz0206
Copy link

Liz0206 commented Mar 28, 2024

I am doing an integration between Jira Rest API + karate that allows my team generate Test Cases automatically the first time running a new scenario. I added an after scenario hook in order to send the scenario results to Jira. Each time the scenario fails, the test stopped and afterScenario hook is skipped. Is there any open bug for this? I read the hook section but doesn't said anything related to the Scenario status itself? Is there anything I'm missing?

@ptrthomas
Copy link
Member

@Liz0206 very few teams use hooks so my suggestion is please contribute code or work with your leadership to do so. you can see that vendors such as x-ray and report portal document how you can integrate, you may be able to look at their implementation for tips.

https://github.com/reportportal/agent-java-karate
https://docs.getxray.app/display/XRAYCLOUD/Testing+APIs+using+Karate+DSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants