-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to user handler in websocket tests in 1.4.1 #2572
Comments
@jrx-sjg thanks for the report, and it may take a while to get to this. I also wanted to be transparent about the fact that the websocket feature has not been very successful because of its design. recently we re-thought how to test async systems in general and are releasing a set of capabilities which will be closed-source. if you are interested I can let you know when websocket support lands, you can see a preview here: https://github.com/karatelabs/karate-addons/blob/main/karate-websocket/README.md |
@ptrthomas thanks so much for the transparency. My questions are? Will be the open-source basic websocket implementation fixed? What license will be necessary to get access to karate-websocket addon? Having websocket support was something that made us decide to use karate in our company. However, the fact that it doesn't work in the latest version is something that blocks us a lot. |
yes, breakage of any existing functionality should be fixed. we also welcome PRs from the community the license needed is described at the link above (runtime + IDE) |
Hello,
|
I was hoping this would be fixed in 1.5.0 but I guess not. for everybody's info - the |
Hi all.
I'm unable to use a handler when using karate.websocket(), as intented in the documentation.
The test is:
And the error I'm getting is:
This is something that only happens in karate 1.4.1, using 1.4.0 works normally and it calls the handler function and retrieve the messages as intended.
I've tried to use
karate.toJava
to call the handler, but didn't help.I've tested everything in a new minimal maven karate template as explained in https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue, and you can replicate everything in the code in the attached .zip using the command:
mvn compile test
karate-template.zip
The text was updated successfully, but these errors were encountered: