Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Releases: gridsmartercities/pywsitest

Release v0.3.8

03 Nov 15:00
7d43847
Compare
Choose a tag to compare

Websocket headers, top level lists, first draft of rest requests

14 Sep 10:37
d049dea
Compare
Choose a tag to compare

Users can now use headers when connecting to websocket hosts - headers can be used for auth.

Responses where the top level is a list can now be correctly parsed and handled.

First draft of sending rest requests as part of a WSTest now for flows that use both websockets and rest requests in tandem. Written with the help of @Maxoyd 👍

Received response logging

26 Mar 11:29
ad72efd
Compare
Choose a tag to compare

When the test times-out waiting for a response; users can now enable automatic logging of any received responses alongside the default logging of responses the test runner was still waiting for.

Response list testing

04 Mar 12:50
c876606
Compare
Choose a tag to compare

Users can now test that the n-th element of a list matches a value, or that at least one element in a list matches a value.

Users can also resolve the n-th element of a list in a response for a message payload too.

Better response testing

17 Feb 11:43
c54a4d4
Compare
Choose a tag to compare

Users can now better test attributes in websocket responses.

Message send delays

01 Aug 15:45
53db65b
Compare
Choose a tag to compare

Users can delay the sending of messages and triggered messages to be sent to a websocket host.
Bug fixed where an error was thrown if a user was connecting to an unsecure server (ws:// rather than wss://).

Response data extraction and better error handling

26 Jul 14:12
dd78ea0
Compare
Choose a tag to compare

Users can extract data from responses to use in triggered messages to be sent to a websocket host.
Exceptions from failed tests give details about which responses haven't been received or which message failed to send.
Whitespace and newlines are automatically removed from urls and query parameters.

First public release

22 Jul 15:15
987e86f
Compare
Choose a tag to compare

Users can create a test runner that connects to a url with http query parameters.
The test runner can send configured messages to the websocket host, and can receive messages and assert that specific messages have been received.
Users can also trigger messages to be sent when certain messages are received.
Users can assert that the runner has successfully finished sending and receiving messages.
Users can configure timeouts for sending messages, receiving messages, and the overall test execution.