Skip to content

0.9.3 : Experimental HTTP mock

Compare
Choose a tag to compare
@agourlay agourlay released this 10 Oct 10:13
· 2732 commits to master since this release

Maintenance release introducing the following changes:

Features & improvements

  • improved diff of collections (show added, deleted and moved elements).
  • removed extra curly brace in diff messages.
  • introduced HttpListenTo creates an HTTP server that will be running during the length of the enclosed steps.

By default this server responds with 201 to any POST request and 200 for all the rest.

The server records all requests received as a JSON array of HTTP request for later assertions.

There are two ways to perform assertions on the server statistics, either by querying the session at the end of the block or by contacting directly the server while it runs.

Refer to those examples for more information.

This feature is experimental and subject to changes.