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

introduce beforeScenario hook #2239

Open
ptrthomas opened this issue Jan 16, 2023 · 2 comments
Open

introduce beforeScenario hook #2239

ptrthomas opened this issue Jan 16, 2023 · 2 comments
Assignees

Comments

@ptrthomas
Copy link
Member

at the very least for mocks, to complement the already existing configure afterScenario option: https://github.com/karatelabs/karate/tree/master/karate-netty#configure-afterscenario

this is needed because the Background in mocks is only "one time": https://github.com/karatelabs/karate/tree/master/karate-netty#background

teams will be able to do advanced request validation with mocks

note that the new JS mocks gives you this flexibility: https://github.com/karatelabs/karate/wiki/Karate-JavaScript-Mocks

but some teams prefer the simpler karate-style mocks

@ptrthomas ptrthomas self-assigned this Jan 16, 2023
@ericdriggs
Copy link

You read my mind! Was just about to open this issue.
This would allow me to use a global coinfig to log scenario names before execution.
Especially useful for when scenarios are timing out.

@ptrthomas
Copy link
Member Author

@ericdriggs cool. do note that this should be already possible via the ExecutionHook: https://github.com/karatelabs/karate/wiki/1.0-upgrade-guide#hooks

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