feat: support api layer and global headers for testcase

This commit is contained in:
xucong053
2022-03-15 12:39:41 +08:00
parent 2585670030
commit ee679a7bc2
37 changed files with 907 additions and 135 deletions

View File

@@ -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: