2020-08-27 10:07:46 +03:00
|
|
|
GET http://localhost:8000/predicates-string
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
[Asserts]
|
2022-03-28 19:04:35 +03:00
|
|
|
body == "Hello World!"
|
2020-08-27 10:07:46 +03:00
|
|
|
body startsWith "Hello"
|
2021-07-16 09:13:23 +03:00
|
|
|
body endsWith "!"
|
2020-08-27 10:07:46 +03:00
|
|
|
body contains "llo"
|
|
|
|
body matches "Hello [a-zA-Z]+!"
|
2022-03-28 19:04:35 +03:00
|
|
|
body matches /Hello [a-zA-Z]+!/
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
GET http://localhost:8000/predicates-string-empty
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2020-08-27 10:07:46 +03:00
|
|
|
[Asserts]
|
2022-03-28 19:04:35 +03:00
|
|
|
body == ""
|
2020-08-27 10:07:46 +03:00
|
|
|
body exists
|
|
|
|
|
2021-09-21 07:36:53 +03:00
|
|
|
GET http://localhost:8000/predicates-string-unicode
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2021-09-21 07:36:53 +03:00
|
|
|
[Asserts]
|
2022-03-28 19:04:35 +03:00
|
|
|
body == "\u{2708}"
|
2022-09-08 19:03:10 +03:00
|
|
|
bytes count == 3
|