From 7acebe775f9550cf5d9cda0d8ec3180f89441c31 Mon Sep 17 00:00:00 2001 From: Ragin666 Date: Wed, 23 Sep 2020 09:30:20 +0200 Subject: [PATCH 1/2] Documentation --- CHANGELOG.md | 14 +++++++++----- README.md | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbe24f1..0486530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,13 @@ ## Absolute file path support -Files can be added as 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. +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 +## Validate response HTTP code and body together ```gherkin Scenario: - Then Then I ensure that the response code is 201 and the body is equal to + Then I ensure that the response code is 201 and the body is equal to """ { "field": "value", @@ -20,12 +20,16 @@ In this case, the response status code is part of the sentence, and the JSON is Here it is also possible to use [JSON Unit](https://github.com/lukas-krecan/JsonUnit) syntax to validate dynamic elements. -## Validate response http code and body together with a JSON file +## Validate response HTTP code and body together with a JSON file ```gherkin 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](https://github.com/lukas-krecan/JsonUnit) syntax to validate dynamic elements. + + # Release 1.16.0 - Changing the body manipulation with creating numbers from ` characters` to ` bdd_lib_numbers` (e.g. `10 bdd_lib_numbers`). - Adding `bdd_lib_uuid` to generate random UUIDs diff --git a/README.md b/README.md index f863e7c..fddd276 100644 --- a/README.md +++ b/README.md @@ -367,7 +367,7 @@ Here it is also possible to use [JSON Unit](https://github.com/lukas-krecan/Json #### Validate response http code and body together ```gherkin Scenario: - Then Then I ensure that the response code is 201 and the body is equal to + Then I ensure that the response code is 201 and the body is equal to """ { "field": "value", @@ -377,7 +377,7 @@ Scenario: 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](https://github.com/lukas-krecan/JsonUnit) syntax to validate dynamic elements. - + #### Validate response http code and body together with a JSON file ```gherkin @@ -387,7 +387,7 @@ Scenario: 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](https://github.com/lukas-krecan/JsonUnit) syntax to validate dynamic elements. - + #### Read from Response and set it to a `Feature` context ```gherkin From 28f6f484c7b79afc1f72dc49ce713482f6961321 Mon Sep 17 00:00:00 2001 From: JoergFlade Date: Wed, 23 Sep 2020 09:31:21 +0200 Subject: [PATCH 2/2] Documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fddd276..3a61fb1 100644 --- a/README.md +++ b/README.md @@ -364,7 +364,7 @@ Scenario: In this case, the JSON is written directly under the sentence and enclosed in three double quotation marks. Here it is also possible to use [JSON Unit](https://github.com/lukas-krecan/JsonUnit) syntax to validate dynamic elements. -#### Validate response http code and body together +#### Validate response HTTP code and body together ```gherkin Scenario: Then I ensure that the response code is 201 and the body is equal to @@ -379,7 +379,7 @@ In this case, the response status code is part of the sentence, and the JSON is Here it is also possible to use [JSON Unit](https://github.com/lukas-krecan/JsonUnit) syntax to validate dynamic elements. -#### Validate response http code and body together with a JSON file +#### Validate response HTTP code and body together with a JSON file ```gherkin Scenario: Then I ensure that the response code is 200 and the body is equal to the file "response.json"