app_login_testcases.yml 862 字节
config:
    name: APP登录用例
    base_url: ${ENV(base_url)}
    variables:
        phone: ${ENV(adminphone_app)}
        msg: '成功'
    output:
      - accessToken
teststeps:

-   name: $phone 登录系统
    api: api/app_api/login/auth_centerCompanys_api.yml
    extract:
        credentials: content.data.center.credentials
    validate:
        - eq:
              - content.msg
              - 成功

-   name: $phone 账号登录
    api: api/app_api/login/auth_login_api.yml
    extract:
        authCode: content.data.authCode
    validate:
        - eq:
              - content.msg
              - 成功
#
-   name: $phone 获取授权令牌accessToken
    api: api/app_api/login/auth_accessToken_api.yml
    extract:
        accessToken: content.data.accessToken
    validate:
        - eq:
              - content.msg
              - 成功