login_testcases.yml 1.0 KB
config:
    name: 账号登录测试
    base_url: ${ENV(base_url)}

teststeps:
-   name:  登录统一用户中心
    api: api/app_api/login_api/auth/ucenter_login_api.yml
    teardown_hooks:
        - ${teardown_hook_get_cuid($response)}
        - ${teardown_hook_get_credentials($response)}
        - ${teardown_hook_get_muid($response)}
        - ${teardown_hook_get_cid($response)}
    variables:
        phone: ${ENV(appphone)}
    varidate:
        validate:
          - eq:
              - content.msg
              - ok
-   name:  登录app系统
    api: api/app_api/login_api/auth/authorize_api.yml
    teardown_hooks:
        - ${teardown_hook_get_authcode($response)}
    varidate:
        validate:
          - eq:
              - content.msg
              - 登录成功accessToken
-   name: 获取accessToken
    api: api/app_api/login_api/auth/accessToken_api.yml
    teardown_hooks:
        - ${teardown_hook_get_accesstoken($response)}
    varidate:
        validate:
          - eq:
              - content.msg
              - 获取成功