COM002_m_login_testcases.yml 1023 字节
config:
    name: 用户登录管理后台

teststeps:
-   name:  登录企业平台
    api: api/m_api/login_api/pwdLogin_api.yml
    extract:
      pwdLogintoken: content.data.access.token
    varidate:
          - eq:
              - content.msg
              - ok

-   name: 选择公司登陆
    variables:
      companyId: ${ENV(companyId)}
    api: api/m_api/login_api/anonymousLogin_api.yml
    extract:
        anonymousLogintoken: content.data.access.token
    varidate:
          - eq:
              - content.msg
              - ok

-   name: 单点登录,获取secret用于登录子系统
    api: api/m_api/login_api/getSingleLoginMenus_api.yml
    extract:
        url: content.data.list.0.url
    varidate:
          - eq:
              - content.msg
              - ok

-   name: 登录价值系统
    api: api/m_api/login_api/login_api.yml
    teardown_hooks:
      - ${teardown_hook_get_task_manager_accesstoken($response)}
    validate:
          - eq:
              - content.msg
              - ok