mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-18 12:17:37 +08:00
增加#430修复代码测试案例
This commit is contained in:
13
tests/httpbin/api/302_redirect_teardown_hook.yml
Normal file
13
tests/httpbin/api/302_redirect_teardown_hook.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
name: 302 redirect
|
||||
request:
|
||||
url: https://httpbin.org/redirect-to
|
||||
params:
|
||||
url: https://github.com
|
||||
status_code: 302
|
||||
method: GET
|
||||
verify: False
|
||||
teardown_hooks:
|
||||
- ${alter_response_302($response)}
|
||||
validate:
|
||||
- eq: ["status_code", 500]
|
||||
- eq: ["text","abcdef"]
|
||||
Reference in New Issue
Block a user