login_testcases.yml 685 字节
config:
    name: APP登录用例
    base_url: ${ENV(base_url)}
    variables:
        phone: ${get_partner_account_from_database()}

teststeps:

-   name: $phone 登录系统
    api: api/app_api/login/login_api.yml
    teardown_hooks:
        - ${teardown_hook_get_authcode($response)}
#    validate:
#        - eq:
#              - content.msg
#              - 登录成功

-   name: $phone 获取accessToken
    api: api/app_api/login/accessToken_api.yml
    teardown_hooks:
        - ${teardown_hook_get_accesstoken($response)}

-   name: $phone 获取用户信息
    api:  api/app_api/user/userInfo_api.yml
    validate:
        - eq:
          - content.msg
          - $msg