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
Add ability to control websocket connection lifecycle #720
Add ability to control websocket connection lifecycle #720
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are build failures
About the build failures: I broke the build the first time because I am not able to successfully build the project on my machine (Ubuntu Linux) when running I highly recommend to make this project build on any machine and at least on Mac and Linux. Otherwise its a nightmare to contribute to it and therefor ppl will stop to do so (incl me). About my PR: I also updated the README a bit. Take a look if this makes sense to you. |
@ptrthomas I tried to trigger the build job again but didnt found a way to do so. Can you run it again? I hope/think it will pass then cos the build failure is very likely not related to my change. |
I just realized that you are using |
e524877
to
22c2caf
Compare
22c2caf
to
d0985e8
Compare
@leozilla ah you are as charming as always. we've been through this before a couple of times already.
thanks & peace |
Look, i dont want to be annoying. Its just that its really cumbersome to test changes and to push code that doesnt break the CI build if you cannot build the project locally. As I said I already tried to fix the build issues but I got stuck on this errors in
It would help to know why this builds on another machine so that I have a better understanding howto fix it. |
@leozilla just guessing maybe this will help: #124 (comment) I'm surprised you get this problem even after #656 - because we use the JavaFX libs from maven and don't depend on your OS / JVM version etc |
#718 has been fixed to the extent that multiple websocket client instances are supported, this PR is no longer necessary |
Description
Allows for disabling the automatic closing of websockets at the end of each
Scenario
by using the new methodWebSocketClient#autoClose(boolean)
.Websockets can then be opened once per
Feature
by using thecallonce
keyword and closed manually in the lastScenario
of theFeature
by callingWebSocketClient#close()
.Also the methods for signaling and awaiting messages where moved to
WebSocketClient
.