Scenario: [1:8]
Get pet
ms: 42
>>
Background:
4
* url url_rest_api
0
15:16:39.881 browser = firefox
15:16:39.882 engine = selenium
15:16:39.882 headless = true
9
Given path '5432'
0
10
When method get
36
15:16:39.886 request:
1 > GET https://petstore.swagger.io/v2/pet/5432
1 > Host: petstore.swagger.io
1 > Connection: Keep-Alive
1 > User-Agent: Apache-HttpClient/4.5.14 (Java/17.0.15)
1 > Accept-Encoding: gzip,deflate
15:16:39.919 response time in milliseconds: 32
1 < 404
1 < Date: Tue, 26 Aug 2025 15:16:39 GMT
1 < Content-Type: application/json
1 < Transfer-Encoding: chunked
1 < Connection: keep-alive
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Allow-Methods: GET, POST, DELETE, PUT
1 < Access-Control-Allow-Headers: Content-Type, api_key, Authorization
1 < Server: Jetty(9.2.9.v20150224)
{"code":1,"type":"error","message":"Pet not found"}
11
Then status 200
6
15:16:39.928 classpath:rest_api/petstore/2_get.feature:11
Then status 200
status code was: 404, expected: 200, response time in milliseconds: 32, url: https://petstore.swagger.io/v2/pet/5432, response:
{"code":1,"type":"error","message":"Pet not found"}
classpath:rest_api/petstore/2_get.feature:11
12
And match response contains {id: 5432}
0
13
And match response contains {name: "doggie"}
0
14
And match response contains {status: "available"}
0