This context has no steps by itself, but helper to mock away external APIs in tests and check if they are called correctly, or how the app behaves with different responses. For example if you want to test your connection to an API for users
"""
{"some":"json response"}
"""
or
"""
HTTP/1.0 OK
Content-Type: application/json
{"some":"json response with http headers"}
"""
Will mock the response, the next request to his api will get.
Backed by using the addResponse
method.
Check if the api call was performed right, by the application.
Can also contain payload or methods.
Backed by using the assertApiCall
method.
The opposite, by using assertNoApiCall
method.