QX001_pf_permission.yml
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
config:
name: QX001:评分权限人员-审核问题-查看问题-权限校验42
teststeps:
- name: 19990000008提出问题
testcase: testcases/question/add_question.yml
- name: 有评分权限19990000011登录系统
variables:
phone: ${ENV(pfphone)}
testcase: testcases/common/login_testcases.yml
- name: 19990000011查看待我审核
output:
- qid
api: api/app_api/question_api/audits_ireview_api.yml
extract:
qid: content.data.questions.0.id
validate:
- eq:
- content.data.questions.0.id
- $qid
- name: 19990000011审核问题
api: api/app_api/question_api/auditquestion_api.yml
- name: 19990000011查看问题详情
api: api/app_api/question_api/questiondetail_api.yml
teardown_hooks:
- ${teardown_hook_get_serialNo($response)}
# validate:
# - eq:
# - content.data.question.serialNo
# - $serialno
- name: 19990000011申请解决问题
api: api/app_api/question_api/applyForQuestions_api.yml
- name: 19990000011查看问题详情
api: api/app_api/question_api/questiondetail_api.yml
validate:
- eq:
- content.data.question.permission
- 42