mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 08:49:37 +08:00
feat: support alter response in teardown hooks
This commit is contained in:
@@ -31,7 +31,7 @@ teststeps:
|
||||
teardown_hooks:
|
||||
- ${alter_response($response)}
|
||||
validate:
|
||||
- eq: ["status_code", 200]
|
||||
# TODO: implement hooks
|
||||
# - eq: [body.headers."Content-Type", "html/text"]
|
||||
- eq: [body.headers.Host, "httpbin.org"]
|
||||
- eq: ["status_code", 500]
|
||||
- eq: [headers."Content-Type", "html/text"]
|
||||
- eq: [body.headers."Content-Type", "application/json"]
|
||||
- eq: [body.headers.Host, "127.0.0.1:8888"]
|
||||
|
||||
Reference in New Issue
Block a user