Feature data/response/success

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-30 15:17:22 +02:00
parent 741867b5f3
commit 0ebbc0674a
2 changed files with 29 additions and 12 deletions
@@ -13,7 +13,7 @@ Feature: Setting values for handler response resources in Kapow! server.
When I send a request to the testing route "/listRootDir"
And I set the resource "/response/status" with value "418"
And I release the testing request
Then I get 418 as response code
Then I get 418 as response code in the testing request
Scenario Outline: Set different resources for the current response.
Set the following resources for the current
@@ -27,11 +27,11 @@ Feature: Setting values for handler response resources in Kapow! server.
And I release the testing request
Then I get 200 as response code
And I get "OK" as response reason phrase
And I get the value <value> for the response <fieldType> named <elementName>
And I get the value "<value>" for the response "<fieldType>" named "<elementName>" in the testing request
Examples:
| resourcePath | value | fieldType | elementName |
| /headers/head1 | "headVal1" | header | "head1" |
| /cookies/cook1 | "cookVal1" | cookie | "cook1" |
| /body | "bodyValue1" | body | "" |
| /stream | "bodyValue2" | body | "" |
| resourcePath | value | fieldType | elementName |
| /response/headers/head1 | headVal1 | header | head1 |
| /response/cookies/cook1 | cookVal1 | cookie | cook1 |
| /response/body | bodyValue1 | body | - |
| /response/stream | bodyValue2 | body | - |