mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
feat: support api layer and global headers for testcase
This commit is contained in:
@@ -411,11 +411,11 @@ teststeps:
|
||||
validate:
|
||||
- check: status_code
|
||||
assert: equals
|
||||
expect: 302
|
||||
expect: 200
|
||||
msg: assert response status code
|
||||
- check: headers."Content-Type"
|
||||
assert: equals
|
||||
expect: text/plain; charset=utf-8
|
||||
expect: application/json; charset=utf-8
|
||||
msg: assert response header Content-Type
|
||||
- name: ""
|
||||
request:
|
||||
@@ -490,11 +490,11 @@ teststeps:
|
||||
validate:
|
||||
- check: status_code
|
||||
assert: equals
|
||||
expect: 302
|
||||
expect: 200
|
||||
msg: assert response status code
|
||||
- check: headers."Content-Type"
|
||||
assert: equals
|
||||
expect: text/plain; charset=utf-8
|
||||
expect: application/json; charset=utf-8
|
||||
msg: assert response header Content-Type
|
||||
- name: ""
|
||||
request:
|
||||
|
||||
Reference in New Issue
Block a user