2020-08-27 10:07:46 +03:00
|
|
|
GET http://localhost:8000/predicate/error/type
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
[Asserts]
|
2023-06-18 15:35:03 +03:00
|
|
|
jsonpath "$.status" == "true"
|
2020-08-27 10:07:46 +03:00
|
|
|
#jsonpath "$.count" equals "0"
|
2023-06-18 15:35:03 +03:00
|
|
|
jsonpath "$.count" == 0
|
|
|
|
jsonpath "$.message" == 0
|
|
|
|
jsonpath "$.empty" == 0
|
|
|
|
jsonpath "$.number" == 1.1
|
2020-08-27 10:07:46 +03:00
|
|
|
jsonpath "$.message" startsWith "hi"
|
2021-07-16 09:13:23 +03:00
|
|
|
jsonpath "$.message" endsWith "hi"
|
2020-08-27 10:07:46 +03:00
|
|
|
jsonpath "$.message" contains "hi"
|
|
|
|
jsonpath "$.message" matches "hi"
|
2021-06-26 11:00:23 +03:00
|
|
|
jsonpath "$.message" count == 1
|
2020-08-27 10:07:46 +03:00
|
|
|
jsonpath "$.toto" exists
|
|
|
|
jsonpath "$.message" not exists
|
2022-10-24 12:37:11 +03:00
|
|
|
jsonpath "$.list" count == 2
|