pwdLogin_api.yml 782 字节
name: 企业平台账号登录
base_url: ${ENV(base_business_url)}
verify: False
variables:
#    username: ${ENV(wpftwphone)}
    password: 7c4a8d09ca3762af61e59520943dc26494f8941b
teardown_hooks:
    - ${teardown_hook_get_Authorization($response)}

request:
    headers:
        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:
        password: $password
        username: $username
    method: POST
    url: auth/pwdLogin
validate:
-   eq:
    - content.msg
    - ok