Last active
April 6, 2021 01:32
-
-
Save olivierodo/abe96db0d5f0b51cb767e6f2b7ba096c to your computer and use it in GitHub Desktop.
RestQA Example simple scenario
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"dates": { | |
"day": 15, | |
"month": 7 | |
}, | |
"namedays": { | |
"sk": "Henrich" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: Retrieve successfully the information nameday related to a specific date and filter on the US country code | |
Given I have the api gateway | |
And I have the path "/namedays" | |
And I have the method "GET" | |
And the query parameter contains "country" as "sk" | |
And the query parameter contains "month" as "7" | |
And the query parameter contains "day" as "15" | |
And the header contains "accept" as "application/json" | |
When I run the API | |
Then I should receive a response with the status 200 | |
And the response body at "data.dates.day" should equal 15 | |
And the response body at "data.dates.month" should equal 7 | |
And the response body at "data.namedays.sk" should equal "Henrich" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment