QX003_pf_levelhigh_permission.yml 1.4 KB
config:
    name: QX003:高级别评分权限人员-查看问题-权限校验42
#    #清理数据
#    teardown_hooks:
#        - ${teardown_hook_clean_db()}
#        - ${teardown_hook_sleep_N_secs($response,2)}

teststeps:

-   name: 18100000004提出问题
    testcase: testcases/question/add_question.yml

-   name: 有评分权限18200000005登录系统
    variables:
        currtime: ${make_time()}
        uuid: ${make_uuid()}
        access_token: ''
        sign: ${make_sign($currtime, $uuid,$access_token)}
        phone: ${ENV(pfphone)}
    testcase: testcases/login_testcases.yml

-   name: 有评分权限18200000005查看待我审核
    output:
        - qid
    api: api/question_api/audits_api.yml
    extract:
        qid: content.data.questions.0.id
    validate:
        - eq:
              - content.data.questions.0.id
              - $qid

-   name: 有评分权限18200000005审核问题
    api: api/question_api/auditquestion_api.yml

-   name: 高级别有评分权限18200000002登录系统
    variables:
        currtime: ${make_time()}
        uuid: ${make_uuid()}
        access_token: ''
        sign: ${make_sign($currtime, $uuid,$access_token)}
        phone: ${ENV(pflevelhighphone)}
    testcase: testcases/login_testcases.yml

-   name: 高级别评分权限18200000002查看问题详情
    api: api/question_api/questiondetail_api.yml
    validate:
        - eq:
              - content.data.question.permission
              - 42