mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-22 10:31:46 +03:00
2 lines
933 B
JSON
2 lines
933 B
JSON
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/hello_gb2312"},"response":{"status":200,"asserts":[{"query":{"type":"header","name":"Content-Type"},"predicate":{"type":"equal","value":"text/html; charset=gb2312"}},{"query":{"type":"bytes"},"predicate":{"type":"contain","value":"xOO6w8rAvec=","encoding":"base64"}},{"query":{"type":"xpath","expr":"string(//body)"},"predicate":{"type":"equal","value":"你好世界"}}]}},{"request":{"method":"GET","url":"http://localhost:8000/hello_gb2312_implicit"},"response":{"status":200,"asserts":[{"query":{"type":"header","name":"Content-Type"},"predicate":{"type":"equal","value":"text/html"}},{"query":{"type":"bytes"},"predicate":{"type":"contain","value":"xOO6w8rAvec=","encoding":"base64"}},{"query":{"type":"bytes"},"filters":[{"type":"decode","encoding":"gb2312"},{"type":"toDate","expr":"string(//body)"}],"predicate":{"type":"equal","value":"你好世界"}}]}}]}
|