Skip to content

Instantly share code, notes, and snippets.

@olivierodo
Last active April 6, 2021 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivierodo/abe96db0d5f0b51cb767e6f2b7ba096c to your computer and use it in GitHub Desktop.
Save olivierodo/abe96db0d5f0b51cb767e6f2b7ba096c to your computer and use it in GitHub Desktop.
RestQA Example simple scenario
{
"data": {
"dates": {
"day": 15,
"month": 7
},
"namedays": {
"sk": "Henrich"
}
}
}
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