COM014_bid_update_status_1_testcase.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
47
48
config:
name: 竞标任务状态验证-待发布
teststeps:
- name: 提问问题-审核问题-获取资源
testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml
- name: 登录系统
variables:
phone: ${ENV(wpftwphone)}
testcase: testcases/common/COM002_m_login_testcases.yml
- name: 引用资源
api: api/m_api/task_resource_api.yml
teardown_hooks:
- ${teardown_hook_get_resource_id($response)}
- ${teardown_hook_get_resource_title($response)}
- ${teardown_hook_get_resource_content($response)}
varidate:
validate:
- eq:
- content.msg
- ok
- name: 保存任务
api: api/m_api/bid/bid_update_api.yml
teardown_hooks:
- ${teardown_hook_get_bid_task_id($response)}
varidate:
validate:
- eq:
- content.msg
- ok
#- name: 查看详情
# api: api/m_api/loot/loot_detail_api.yml
# variables:
# status: ${get_bid_task_status_1_from_database()}
# msg: ok
# varidate:
# validate:
# - eq:
# - content.msg
# - $msg
# - eq:
# - content.data.status
# - $status