login_api.yml
731 字节
name: 登录价值系统
base_url: ${ENV(base_worth_url)}
verify: False
variables:
msg: ok
teardown_hooks:
- ${teardown_hook_get_task_Authorization($response)}
request:
headers:
# Authorization: Bearer ${get_access_token()}
Content-Type: application/json; charset=UTF-8
Origin: https://enterprise-platform-dev.fjmaimaimai.com
Referer: https://enterprise-platform-dev.fjmaimaimai.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
X-Requested-With: XMLHttpRequest
json:
code: ${get_login_code()}
method: POST
url: auth/login
validate:
- eq:
- content.msg
- $msg