COM019_bid_open_status_5_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
49
50
51
config:
name: 竞标任务状态验证-已验收,已完成
teststeps:
- name: 竞标任务状态验证-已完成,待验收
testcase: testcases/common/COM018_bid_open_status_4_testcase.yml
- name: 用户列表
output:
- uid0
- name0
- uid1
- name1
- uid2
- name2
- uid15
- name15
api: api/m_api/common/user_api.yml
extract:
uid0: content.data.list.0.uid
name0: content.data.list.0.name
uid1: content.data.list.1.uid
name1: content.data.list.1.name
uid2: content.data.list.2.uid
name2: content.data.list.2.name
uid15: content.data.list.15.uid
name15: content.data.list.15.name
- name: 竞标任务验收
api: api/m_api/bid/bid_task_accept_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- ok
- name: 查看详情中的状态
api: api/m_api/bid/bid_detail_api.yml
variables:
status: ${get_bid_task_status_5_from_database()}
msg: ok
varidate:
validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.status
- $status