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

System.Exit in karate #2338

Closed
divya2210 opened this issue Jun 8, 2023 · 1 comment
Closed

System.Exit in karate #2338

divya2210 opened this issue Jun 8, 2023 · 1 comment
Labels

Comments

@divya2210
Copy link

Currently, Karate is not supporting system.exit() functionality. Once a condition is matched, it should stop the execution.
Example: While creating a user, We get cookie/token in responseHeaders. If not, Execution needs to be stopped.

@ptrthomas
Copy link
Member

sorry, closing as wontfix there are many reasons why we can't do this. that said, maybe this discussion will help: #2090

and refer https://github.com/karatelabs/karate#configure - you can now do karate.configure('abortSuiteOnFailure', true); and now any failure will stop everything.

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