Scenario: [1:8]
Delete pet
ms: 29
>>
Background:
4
* url url_rest_api
0
15:16:40.036 browser = firefox
15:16:40.036 engine = selenium
15:16:40.036 headless = true
9
Given path '5432'
0
10
When method delete
29
15:16:40.039 request:
1 > DELETE 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:40.066 response time in milliseconds: 26
1 < 404
1 < Date: Tue, 26 Aug 2025 15:16:40 GMT
1 < Content-Length: 0
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)
11
Then status 200
0
15:16:40.067 classpath:rest_api/petstore/3_delete.feature:11
Then status 200
status code was: 404, expected: 200, response time in milliseconds: 26, url: https://petstore.swagger.io/v2/pet/5432, response:
classpath:rest_api/petstore/3_delete.feature:11
12
And match response contains {message: '5432'}
0
14
Given path '5432'
0
15
When method get
0
16
Then status 404
0
17
And match response contains {type: 'error'}
0
18
And match response contains {message: 'Pet not found'}
0