Release 1.17.0 - Simplified sentences and better file handling
Absolute file path support
Files can be added as a relative path to a previously given base path or with an "absolute" path with the prefix absolutePath:
.
In the last case, the system is using the base classpath as root.
Validate response HTTP code and body together
Scenario:
Then I ensure that the response code is 201 and the body is equal to
"""
{
"field": "value",
}
"""
In this case, the response status code is part of the sentence, and the JSON is written directly under the sentence and enclosed in three double quotation marks.
Here it is also possible to use JSON Unit syntax to validate dynamic elements.
Validate response HTTP code and body together with a JSON file
Scenario:
Then I ensure that the response code is 200 and the body is equal to the file "response.json"
In this case, the response status code, and the JSON file are written together in one sentence.
Here it is also possible to use JSON Unit syntax to validate dynamic elements.