Is there any way to listen to incoming requests during Karate test?
I saw that there is the Async option, but there it talks about Queues listeners only.
Is there anything similar, but for HTTP requests?
Is there any way to listen to incoming requests during Karate test?
I saw that there is the Async option, but there it talks about Queues listeners only.
Is there anything similar, but for HTTP requests?
First, this is a rare use-case, so there is not much support for it.
You can try using a RuntimeHook, it has a beforeHttpCall() handler.
Also refer the new API that allows you to inspect an HTTP response "after the fact": https://github.com/karatelabs/karate/issues/1962
Finally, if you really have some exotic use-case, refer this: https://twitter.com/getkarate/status/1417023536082812935