2020-11-03 22:34:12 +03:00
|
|
|
GET http://localhost:8000/assert-status-code
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 201
|
|
|
|
|
2023-02-16 15:04:41 +03:00
|
|
|
# Assert HTTP 1.1
|
2022-11-11 16:25:00 +03:00
|
|
|
GET http://localhost:8000/assert-status-code
|
2023-02-16 15:04:41 +03:00
|
|
|
HTTP/1.1 201
|
2020-11-03 22:34:12 +03:00
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
# Simply check that the status code is not 200
|
|
|
|
# Do not run implicit assert of HTTP response version and code
|
2020-11-03 22:34:12 +03:00
|
|
|
GET http://localhost:8000/assert-status-code
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP *
|
2020-11-03 22:34:12 +03:00
|
|
|
[Asserts]
|
2022-03-28 19:04:35 +03:00
|
|
|
status != 200
|
2020-11-03 22:34:12 +03:00
|
|
|
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
# Simply check that the status code is OK
|
2020-11-21 12:04:45 +03:00
|
|
|
GET http://localhost:8000/assert-status-code
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP *
|
2020-11-21 12:04:45 +03:00
|
|
|
[Asserts]
|
2022-03-28 19:04:35 +03:00
|
|
|
status >= 200
|
2022-10-24 12:37:11 +03:00
|
|
|
status < 300
|