正在显示
35 个修改的文件
包含
110 行增加
和
586 行删除
@@ -3,7 +3,6 @@ base_url: ${ENV(base_worth_url)} | @@ -3,7 +3,6 @@ base_url: ${ENV(base_worth_url)} | ||
3 | verify: False | 3 | verify: False |
4 | variables: | 4 | variables: |
5 | id: ${get_loot_task_id()} | 5 | id: ${get_loot_task_id()} |
6 | -# status: ${get_task_status_1_from_database()} | ||
7 | msg: ok | 6 | msg: ok |
8 | request: | 7 | request: |
9 | headers: | 8 | headers: |
@@ -2,7 +2,7 @@ name: 确认领取人 | @@ -2,7 +2,7 @@ name: 确认领取人 | ||
2 | base_url: ${ENV(base_worth_url)} | 2 | base_url: ${ENV(base_worth_url)} |
3 | verify: False | 3 | verify: False |
4 | variables: | 4 | variables: |
5 | - id: ${get_task_status_7_from_database()} | 5 | + id: ${get_loot_task_id()} |
6 | planTime: ${get_today()} | 6 | planTime: ${get_today()} |
7 | msg: ok | 7 | msg: ok |
8 | request: | 8 | request: |
1 | -name: 公司任务(进行中、已完成) | 1 | +name: 任务详情 |
2 | base_url: ${ENV(base_url)} | 2 | base_url: ${ENV(base_url)} |
3 | verify: False | 3 | verify: False |
4 | variables: | 4 | variables: |
5 | currtime: ${make_time()} | 5 | currtime: ${make_time()} |
6 | uuid: ${make_uuid()} | 6 | uuid: ${make_uuid()} |
7 | - access_token: ${get_task_accesstoken()} | 7 | + access_token: ${get_accesstoken()} |
8 | sign: ${make_sign($currtime, $uuid, $access_token)} | 8 | sign: ${make_sign($currtime, $uuid, $access_token)} |
9 | request: | 9 | request: |
10 | headers: | 10 | headers: |
@@ -19,17 +19,14 @@ request: | @@ -19,17 +19,14 @@ request: | ||
19 | X-MMM-Uuid: $uuid | 19 | X-MMM-Uuid: $uuid |
20 | X-MMM-Version: 1.0.0 | 20 | X-MMM-Version: 1.0.0 |
21 | json: | 21 | json: |
22 | - pageIndex: 0 | ||
23 | - pageSize: 20 | ||
24 | - action: 0 | ||
25 | - newest: 0 | 22 | + id: $id |
26 | method: POST | 23 | method: POST |
27 | - url: v1/task/currentTasks | 24 | + url: v1/task/taskDetails |
28 | validate: | 25 | validate: |
29 | - eq: | 26 | - eq: |
30 | - content.code | 27 | - content.code |
31 | - 0 | 28 | - 0 |
32 | - eq: | 29 | - eq: |
33 | - content.msg | 30 | - content.msg |
34 | - - 获取成功 | 31 | + - 获取详情成功 |
35 | # - $msg | 32 | # - $msg |
api/m_api/task_delete_api.yml
已删除
100644 → 0
1 | -name: 删除任务 | ||
2 | -base_url: ${ENV(base_worth_url)} | ||
3 | -verify: False | ||
4 | -variables: | ||
5 | - msg: ok | ||
6 | -request: | ||
7 | - headers: | ||
8 | - Content-Type: application/json; charset=UTF-8 | ||
9 | - Authorization: Bearer ${get_task_Authorization()} | ||
10 | - Origin: https://value-test.fjmaimaimai.com | ||
11 | - Referer: https://value-test.fjmaimaimai.com/ | ||
12 | - User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36 | ||
13 | - X-Requested-With: XMLHttpRequest | ||
14 | - json: | ||
15 | - id: $id | ||
16 | - | ||
17 | - method: POST | ||
18 | - url: task/delete | ||
19 | -validate: | ||
20 | - - eq: | ||
21 | - - content.code | ||
22 | - - 0 | ||
23 | - - eq: | ||
24 | - - content.msg | ||
25 | - - $msg |
1 | -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OTg4NjQ3NjUsImV4cCI6MTU5ODg3NTU2NSwibmJmIjoxNTk4ODY0NzY1LCJqdGkiOiJFUG5pQzQ5dVZrVTg3WHd5Iiwic3ViIjozMjQ4ODE3NjEzNjgxNjY0LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2Ex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TAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.BrAra3HX8D3ozIz5UpQ997mmetNm5ZUt62Qdg50tFxM |
@@ -79,7 +79,7 @@ def get_task_status_1_from_database(): | @@ -79,7 +79,7 @@ def get_task_status_1_from_database(): | ||
79 | db = GetConnect() | 79 | db = GetConnect() |
80 | cursor = db.cursor() | 80 | cursor = db.cursor() |
81 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' | 81 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' |
82 | - sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and id = {} '''.format(get_loot_task_id()) | 82 | + sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 1 and id = {} '''.format(get_loot_task_id()) |
83 | # print(sql) | 83 | # print(sql) |
84 | try: | 84 | try: |
85 | cursor.execute(sql) | 85 | cursor.execute(sql) |
@@ -96,7 +96,23 @@ def get_task_status_2_from_database(): | @@ -96,7 +96,23 @@ def get_task_status_2_from_database(): | ||
96 | db = GetConnect() | 96 | db = GetConnect() |
97 | cursor = db.cursor() | 97 | cursor = db.cursor() |
98 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' | 98 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' |
99 | - sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and id = {} '''.format(get_loot_task_id()) | 99 | + sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 2 and id = {} '''.format(get_loot_task_id()) |
100 | + print(sql) | ||
101 | + try: | ||
102 | + cursor.execute(sql) | ||
103 | + result = cursor.fetchone() | ||
104 | + return result[0] | ||
105 | + except Exception as err: | ||
106 | + # 发生错误时回滚 | ||
107 | + print(err) | ||
108 | + db.rollback() | ||
109 | + db.close() | ||
110 | +#获取抢单任务单的状态:进行中 | ||
111 | +def get_task_status_3_from_database(): | ||
112 | + db = GetConnect() | ||
113 | + cursor = db.cursor() | ||
114 | + # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' | ||
115 | + sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 3 and id = {} '''.format(get_loot_task_id()) | ||
100 | # print(sql) | 116 | # print(sql) |
101 | try: | 117 | try: |
102 | cursor.execute(sql) | 118 | cursor.execute(sql) |
@@ -107,14 +123,13 @@ def get_task_status_2_from_database(): | @@ -107,14 +123,13 @@ def get_task_status_2_from_database(): | ||
107 | print(err) | 123 | print(err) |
108 | db.rollback() | 124 | db.rollback() |
109 | db.close() | 125 | db.close() |
110 | - | ||
111 | -#获取任务单的状态:待确认 | 126 | +# #获取抢单任务单的状态:待确认 |
112 | def get_task_status_7_from_database(): | 127 | def get_task_status_7_from_database(): |
113 | db = GetConnect() | 128 | db = GetConnect() |
114 | cursor = db.cursor() | 129 | cursor = db.cursor() |
115 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' | 130 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' |
116 | - sql = '''select id from tasks where company_id = 366 and task_status = 7 order by id desc''' | ||
117 | - # print(sql) | 131 | + sql = '''select task_status from tasks where company_id = 366 and task_status = 7 and id = {}'''.format(get_loot_task_id()) |
132 | + print(sql) | ||
118 | try: | 133 | try: |
119 | cursor.execute(sql) | 134 | cursor.execute(sql) |
120 | result = cursor.fetchone() | 135 | result = cursor.fetchone() |
@@ -130,7 +145,7 @@ def get_task_status_4_from_database(): | @@ -130,7 +145,7 @@ def get_task_status_4_from_database(): | ||
130 | db = GetConnect() | 145 | db = GetConnect() |
131 | cursor = db.cursor() | 146 | cursor = db.cursor() |
132 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' | 147 | # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc ' |
133 | - sql = '''select id from tasks t where t.company_id = 366 and t.task_status = 4 and t.receiver_uid = '3247366011913216' order by id desc''' | 148 | + sql = '''select id from tasks t where t.company_id = 366 and t.task_status = 4 and t.receiver_uid = '3248817613892608' and id = {}'''.format(get_loot_task_id()) |
134 | # print(sql) | 149 | # print(sql) |
135 | try: | 150 | try: |
136 | cursor.execute(sql) | 151 | cursor.execute(sql) |
@@ -3,8 +3,8 @@ config: | @@ -3,8 +3,8 @@ config: | ||
3 | 3 | ||
4 | teststeps: | 4 | teststeps: |
5 | 5 | ||
6 | -#- name: COM008_loot_open_status_2_testcase.yml | ||
7 | -# testcase: testcases/common/COM008_loot_open_status_2_testcase.yml | 6 | +- name: 抢单任务状态验证-已发布,待领取 |
7 | + testcase: testcases/common/COM008_loot_open_status_2_testcase.yml | ||
8 | 8 | ||
9 | - name: app端点击立即抢单 | 9 | - name: app端点击立即抢单 |
10 | testcase: testcases/task/loot/loot_rewards_taskDetails_testcase.yml | 10 | testcase: testcases/task/loot/loot_rewards_taskDetails_testcase.yml |
@@ -12,7 +12,7 @@ teststeps: | @@ -12,7 +12,7 @@ teststeps: | ||
12 | - name: 查看详情 | 12 | - name: 查看详情 |
13 | api: api/m_api/loot/loot_detail_api.yml | 13 | api: api/m_api/loot/loot_detail_api.yml |
14 | variables: | 14 | variables: |
15 | - status: ${get_task_status_2_from_database()} | 15 | + status: ${get_task_status_7_from_database()} |
16 | msg: ok | 16 | msg: ok |
17 | varidate: | 17 | varidate: |
18 | validate: | 18 | validate: |
1 | +config: | ||
2 | + name: 抢单任务状态验证-进行中 | ||
3 | + | ||
4 | +teststeps: | ||
5 | + | ||
6 | +- name: 抢单任务状态验证-已领取,待确认 | ||
7 | + testcase: testcases/common/COM009_loot_open_status_7_testcase.yml | ||
8 | + | ||
9 | +- name: 确认领取人 | ||
10 | + api: api/m_api/loot/loot_task_confirm_api.yml | ||
11 | + varidate: | ||
12 | + validate: | ||
13 | + - eq: | ||
14 | + - content.msg | ||
15 | + - ok | ||
16 | +- name: 查看详情中的状态 | ||
17 | + api: api/m_api/loot/loot_detail_api.yml | ||
18 | + variables: | ||
19 | + status: ${get_task_status_3_from_database()} | ||
20 | + msg: ok | ||
21 | + varidate: | ||
22 | + validate: | ||
23 | + - eq: | ||
24 | + - content.msg | ||
25 | + - $msg | ||
26 | + - eq: | ||
27 | + - content.data.status | ||
28 | + - $status |
1 | +config: | ||
2 | + name: 抢单任务状态验证-已完成,待验收 | ||
3 | + | ||
4 | +teststeps: | ||
5 | + | ||
6 | +- name: 抢单任务状态验证-进行中 | ||
7 | + testcase: testcases/common/COM010_loot_open_status_3_testcase.yml | ||
8 | + | ||
9 | +##-------------------------APP端完成抢单任务------------------------------ | ||
10 | +- name: 完成任务 | ||
11 | + testcase: testcases/task/loot/loot_task_finishTask_testcase.yml | ||
12 | + | ||
13 | +- name: 查看详情中的状态 | ||
14 | + api: api/m_api/loot/loot_detail_api.yml | ||
15 | + variables: | ||
16 | + status: ${get_task_status_4_from_database()} | ||
17 | + msg: ok | ||
18 | + varidate: | ||
19 | + validate: | ||
20 | + - eq: | ||
21 | + - content.msg | ||
22 | + - $msg | ||
23 | + - eq: | ||
24 | + - content.data.status | ||
25 | + - $status |
testcases/task/jxz/JB/jxz_gb.yml
已删除
100644 → 0
1 | -config: | ||
2 | - name: jxz:登录系统-查看公司悬赏任务-点击抢单 | ||
3 | - | ||
4 | -teststeps: | ||
5 | - | ||
6 | -- name: 19990000011登录系统 | ||
7 | - variables: | ||
8 | - phone: ${ENV(pfphone)} | ||
9 | - testcase: testcases/login_testcases.yml | ||
10 | - | ||
11 | -- name: 19990000011查看公司悬赏任务 | ||
12 | - output: | ||
13 | - - id | ||
14 | - api: api/task_api/task/rewards/rewards_api.yml | ||
15 | - extract: | ||
16 | - id: content.data.tasks.0.id | ||
17 | - validate: | ||
18 | - - eq: | ||
19 | - - content.data.tasks.0.id | ||
20 | - - $id | ||
21 | - - eq: | ||
22 | - - content.code | ||
23 | - - 0 | ||
24 | - - eq: | ||
25 | - - content.msg | ||
26 | - - 获取成功 | ||
27 | - | ||
28 | -- name: 19990000011任务详情 | ||
29 | - api: api/task_api/task/taskDetails_api.yml | ||
30 | - validate: | ||
31 | - - eq: | ||
32 | - - content.code | ||
33 | - - 0 | ||
34 | - - eq: | ||
35 | - - content.msg | ||
36 | - - 获取详情成功 | ||
37 | - | ||
38 | -- name: 19990000011点击抢单 | ||
39 | - api: api/task_api/task/rewards/submitCompete_0_api.yml | ||
40 | - validate: | ||
41 | - - eq: | ||
42 | - - content.code | ||
43 | - - 0 | ||
44 | - - eq: | ||
45 | - - content.msg | ||
46 | - - 抢单成功! | ||
47 | - | ||
48 | -- name: 19990000011查看进行中的任务 | ||
49 | - api: api/task_api/task/rewards/currentTasks_0_api.yml | ||
50 | - validate: | ||
51 | - - eq: | ||
52 | - - content.code | ||
53 | - - 0 | ||
54 | - - eq: | ||
55 | - - content.msg | ||
56 | - - 获取成功 | ||
57 | - | ||
58 | -- name: 19990000011任务详情 | ||
59 | - api: api/task_api/task/taskDetails_api.yml | ||
60 | - validate: | ||
61 | - - eq: | ||
62 | - - content.code | ||
63 | - - 0 | ||
64 | - - eq: | ||
65 | - - content.data.task.status | ||
66 | - - 3 | ||
67 | - - eq: | ||
68 | - - content.msg | ||
69 | - - 获取详情成功 | ||
70 | - |
testcases/task/jxz/JB/jxz_wc.yml
已删除
100644 → 0
1 | -config: | ||
2 | - name: jxz:登录系统-查看公司悬赏任务-点击竞标 | ||
3 | - | ||
4 | -teststeps: | ||
5 | - | ||
6 | -- name: 19990000011登录系统 | ||
7 | - variables: | ||
8 | - phone: ${ENV(pfphone)} | ||
9 | - testcase: testcases/login_testcases.yml | ||
10 | - | ||
11 | -- name: 19990000011查看公司悬赏任务 | ||
12 | - output: | ||
13 | - - id | ||
14 | - api: api/task_api/task/rewards/rewards_api.yml | ||
15 | - extract: | ||
16 | - id: content.data.tasks.0.id | ||
17 | - validate: | ||
18 | - - eq: | ||
19 | - - content.data.tasks.0.id | ||
20 | - - $id | ||
21 | - - eq: | ||
22 | - - content.code | ||
23 | - - 0 | ||
24 | - - eq: | ||
25 | - - content.msg | ||
26 | - - 获取成功 | ||
27 | - | ||
28 | -- name: 19990000011任务详情 | ||
29 | - api: api/task_api/task/taskDetails_api.yml | ||
30 | - validate: | ||
31 | - - eq: | ||
32 | - - content.code | ||
33 | - - 0 | ||
34 | - - eq: | ||
35 | - - content.msg | ||
36 | - - 获取详情成功 | ||
37 | - | ||
38 | -- name: 19990000011点击竞标 | ||
39 | - api: api/task_api/task/rewards/submitCompete_1_api.yml | ||
40 | - validate: | ||
41 | - - eq: | ||
42 | - - content.code | ||
43 | - - 0 | ||
44 | - - eq: | ||
45 | - - content.msg | ||
46 | - - 已成功参与竞标,等待中标!! | ||
47 | - | ||
48 | -- name: 19990000008登录系统 | ||
49 | - variables: | ||
50 | - phone: ${ENV(wpftwphone)} | ||
51 | - testcase: testcases/login_testcases.yml | ||
52 | - | ||
53 | -- name: 19990000008查看公司悬赏任务 | ||
54 | - output: | ||
55 | - - id | ||
56 | - api: api/task_api/task/rewards/rewards_api.yml | ||
57 | - extract: | ||
58 | - id: content.data.tasks.0.id | ||
59 | - validate: | ||
60 | - - eq: | ||
61 | - - content.data.tasks.0.id | ||
62 | - - $id | ||
63 | - - eq: | ||
64 | - - content.code | ||
65 | - - 0 | ||
66 | - - eq: | ||
67 | - - content.msg | ||
68 | - - 获取成功 | ||
69 | - | ||
70 | -- name: 19990000008任务详情 | ||
71 | - output: | ||
72 | - - uid | ||
73 | - api: api/task_api/task/taskDetails_api.yml | ||
74 | - extract: | ||
75 | - uid: content.data.tasks.bidders.0.uid | ||
76 | - validate: | ||
77 | - - eq: | ||
78 | - - content.code | ||
79 | - - 0 | ||
80 | - - eq: | ||
81 | - - content.msg | ||
82 | - - 获取详情成功 | ||
83 | - | ||
84 | -- name: 19990000008中标 | ||
85 | - api: api/task_api/task/bidTask_api.yml | ||
86 | - validate: | ||
87 | - - eq: | ||
88 | - - content.code | ||
89 | - - 0 | ||
90 | - - eq: | ||
91 | - - content.msg | ||
92 | - - 中标成功 | ||
93 | - | ||
94 | -- name: 19990000011登录系统 | ||
95 | - variables: | ||
96 | - phone: ${ENV(pfphone)} | ||
97 | - testcase: testcases/login_testcases.yml | ||
98 | - | ||
99 | -- name: 19990000011查看公司悬赏任务 | ||
100 | - output: | ||
101 | - - id | ||
102 | - api: api/task_api/task/rewards/rewards_api.yml | ||
103 | - extract: | ||
104 | - id: content.data.tasks.0.id | ||
105 | - validate: | ||
106 | - - eq: | ||
107 | - - content.data.tasks.0.id | ||
108 | - - $id | ||
109 | - - eq: | ||
110 | - - content.code | ||
111 | - - 0 | ||
112 | - - eq: | ||
113 | - - content.msg | ||
114 | - - 获取成功 | ||
115 | - | ||
116 | -- name: 19990000011任务详情 | ||
117 | - api: api/task_api/task/taskDetails_api.yml | ||
118 | - validate: | ||
119 | - - eq: | ||
120 | - - content.code | ||
121 | - - 0 | ||
122 | - - eq: | ||
123 | - - content.msg | ||
124 | - - 获取详情成功 | ||
125 | - | ||
126 | -- name: 19990000011查看进行中的任务 | ||
127 | - api: api/task_api/task/rewards/currentTasks_0_api.yml | ||
128 | - validate: | ||
129 | - - eq: | ||
130 | - - content.code | ||
131 | - - 0 | ||
132 | - - eq: | ||
133 | - - content.msg | ||
134 | - - 获取成功 | ||
135 | - | ||
136 | -- name: 19990000011任务详情 | ||
137 | - api: api/task_api/task/taskDetails_api.yml | ||
138 | - validate: | ||
139 | - - eq: | ||
140 | - - content.code | ||
141 | - - 0 | ||
142 | - - eq: | ||
143 | - - content.data.task.status | ||
144 | - - 3 | ||
145 | - - eq: | ||
146 | - - content.msg | ||
147 | - - 获取详情成功 | ||
148 | - | ||
149 | -- name: 19990000011完成任务 | ||
150 | - api: api/task_api/task/taskfinishTask_api.yml | ||
151 | - validate: | ||
152 | - - eq: | ||
153 | - - content.code | ||
154 | - - 0 | ||
155 | - - eq: | ||
156 | - - content.msg | ||
157 | - - 完成成功 |
testcases/task/jxz/QD/jxz_gb.yml
已删除
100644 → 0
1 | -config: | ||
2 | - name: jxz:登录系统-查看公司悬赏任务-点击抢单 | ||
3 | - | ||
4 | -teststeps: | ||
5 | - | ||
6 | -- name: 19990000011登录系统 | ||
7 | - variables: | ||
8 | - phone: ${ENV(pfphone)} | ||
9 | - testcase: testcases/login_testcases.yml | ||
10 | - | ||
11 | -- name: 19990000011查看公司悬赏任务 | ||
12 | - output: | ||
13 | - - id | ||
14 | - api: api/task_api/task/rewards/rewards_api.yml | ||
15 | - extract: | ||
16 | - id: content.data.tasks.0.id | ||
17 | - validate: | ||
18 | - - eq: | ||
19 | - - content.data.tasks.0.id | ||
20 | - - $id | ||
21 | - - eq: | ||
22 | - - content.code | ||
23 | - - 0 | ||
24 | - - eq: | ||
25 | - - content.msg | ||
26 | - - 获取成功 | ||
27 | - | ||
28 | -- name: 19990000011任务详情 | ||
29 | - api: api/task_api/task/taskDetails_api.yml | ||
30 | - validate: | ||
31 | - - eq: | ||
32 | - - content.code | ||
33 | - - 0 | ||
34 | - - eq: | ||
35 | - - content.msg | ||
36 | - - 获取详情成功 | ||
37 | - | ||
38 | -- name: 19990000011点击抢单 | ||
39 | - api: api/task_api/task/rewards/submitCompete_0_api.yml | ||
40 | - validate: | ||
41 | - - eq: | ||
42 | - - content.code | ||
43 | - - 0 | ||
44 | - - eq: | ||
45 | - - content.msg | ||
46 | - - 抢单成功! | ||
47 | - | ||
48 | -- name: 19990000011查看进行中的任务 | ||
49 | - api: api/task_api/task/rewards/currentTasks_0_api.yml | ||
50 | - validate: | ||
51 | - - eq: | ||
52 | - - content.code | ||
53 | - - 0 | ||
54 | - - eq: | ||
55 | - - content.msg | ||
56 | - - 获取成功 | ||
57 | - | ||
58 | -- name: 19990000011任务详情 | ||
59 | - api: api/task_api/task/taskDetails_api.yml | ||
60 | - validate: | ||
61 | - - eq: | ||
62 | - - content.code | ||
63 | - - 0 | ||
64 | - - eq: | ||
65 | - - content.data.task.status | ||
66 | - - 3 | ||
67 | - - eq: | ||
68 | - - content.msg | ||
69 | - - 获取详情成功 | ||
70 | - |
testcases/task/jxz/QD/jxz_wc.yml
已删除
100644 → 0
1 | -config: | ||
2 | - name: jxz:登录系统-查看公司悬赏任务-点击抢单 | ||
3 | - | ||
4 | -teststeps: | ||
5 | - | ||
6 | -- name: 19990000011登录系统 | ||
7 | - variables: | ||
8 | - phone: ${ENV(pfphone)} | ||
9 | - testcase: testcases/login_testcases.yml | ||
10 | - | ||
11 | -- name: 19990000011查看公司悬赏任务 | ||
12 | - output: | ||
13 | - - id | ||
14 | - api: api/task_api/task/rewards/rewards_api.yml | ||
15 | - extract: | ||
16 | - id: content.data.tasks.0.id | ||
17 | - validate: | ||
18 | - - eq: | ||
19 | - - content.data.tasks.0.id | ||
20 | - - $id | ||
21 | - - eq: | ||
22 | - - content.code | ||
23 | - - 0 | ||
24 | - - eq: | ||
25 | - - content.msg | ||
26 | - - 获取成功 | ||
27 | - | ||
28 | -- name: 19990000011任务详情 | ||
29 | - api: api/task_api/task/taskDetails_api.yml | ||
30 | - validate: | ||
31 | - - eq: | ||
32 | - - content.code | ||
33 | - - 0 | ||
34 | - - eq: | ||
35 | - - content.msg | ||
36 | - - 获取详情成功 | ||
37 | - | ||
38 | -- name: 19990000011点击抢单 | ||
39 | - api: api/task_api/task/rewards/submitCompete_0_api.yml | ||
40 | - validate: | ||
41 | - - eq: | ||
42 | - - content.code | ||
43 | - - 0 | ||
44 | - - eq: | ||
45 | - - content.msg | ||
46 | - - 抢单成功! | ||
47 | - | ||
48 | -- name: 19990000011查看进行中的任务 | ||
49 | - api: api/task_api/task/rewards/currentTasks_0_api.yml | ||
50 | - validate: | ||
51 | - - eq: | ||
52 | - - content.code | ||
53 | - - 0 | ||
54 | - - eq: | ||
55 | - - content.msg | ||
56 | - - 获取成功 | ||
57 | - | ||
58 | -- name: 19990000011任务详情 | ||
59 | - api: api/task_api/task/taskDetails_api.yml | ||
60 | - validate: | ||
61 | - - eq: | ||
62 | - - content.code | ||
63 | - - 0 | ||
64 | - - eq: | ||
65 | - - content.data.task.status | ||
66 | - - 3 | ||
67 | - - eq: | ||
68 | - - content.msg | ||
69 | - - 获取详情成功 | ||
70 | - | ||
71 | -- name: 19990000011完成任务 | ||
72 | - api: api/task_api/task/taskfinishTask_api.yml | ||
73 | - validate: | ||
74 | - - eq: | ||
75 | - - content.code | ||
76 | - - 0 | ||
77 | - - eq: | ||
78 | - - content.msg | ||
79 | - - 完成成功 |
1 | -config: | ||
2 | - name: 保存抢单任务-发布任务-确认领取人 | ||
3 | - | ||
4 | -teststeps: | ||
5 | - | ||
6 | -- name: 登录系统 | ||
7 | - testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml | ||
8 | - | ||
9 | -- name: app端点击立即抢单 | ||
10 | - testcase: testcases/task/task_rewards_taskDetails_testcase.yml | ||
11 | - | ||
12 | -- name: 确认领取人 | ||
13 | - api: api/m_api/loot/loot_task_confirm_api.yml | ||
14 | -# variables: | ||
15 | -# id: ${get_task_id()} | ||
16 | - varidate: | ||
17 | - validate: | ||
18 | - - eq: | ||
19 | - - content.msg | ||
20 | - - ok | ||
21 | - | ||
22 | -- name: 抢单任务详情 | ||
23 | - output: | ||
24 | - - status | ||
25 | - api: api/m_api/loot/task_loot_detail_api.yml | ||
26 | - extract: | ||
27 | - status: content.data.status | ||
28 | -# variables: | ||
29 | -# id: ${get_task_id()} | ||
30 | - varidate: | ||
31 | - validate: | ||
32 | - - eq: | ||
33 | - - content.msg | ||
34 | - - ok | ||
35 | - - eq: | ||
36 | - - content.data.status | ||
37 | - - $status |
@@ -2,18 +2,18 @@ config: | @@ -2,18 +2,18 @@ config: | ||
2 | name: 任务完成 | 2 | name: 任务完成 |
3 | 3 | ||
4 | teststeps: | 4 | teststeps: |
5 | -- name: 19990000008登录系统 | 5 | +- name: 登录系统 |
6 | variables: | 6 | variables: |
7 | phone: ${ENV(appphone)} | 7 | phone: ${ENV(appphone)} |
8 | - testcase: testcases/login_testcases.yml | 8 | + testcase: testcases/common/login_testcases.yml |
9 | 9 | ||
10 | -- name: 19990000008登录价值系统 | ||
11 | - testcase: testcases/task_login_testcases.yml | 10 | +- name: 登录价值系统 |
11 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
12 | 12 | ||
13 | -- name: 公司任务(进行中、已完成) | 13 | +- name: 公司任务(抢单任务) |
14 | output: | 14 | output: |
15 | - id | 15 | - id |
16 | - api: api/m_api/task_currentTasks_api.yml | 16 | + api: api/m_api/loot/loot_contendTasks_api.yml |
17 | extract: | 17 | extract: |
18 | id: content.data.tasks.0.id | 18 | id: content.data.tasks.0.id |
19 | validate: | 19 | validate: |
@@ -21,5 +21,8 @@ teststeps: | @@ -21,5 +21,8 @@ teststeps: | ||
21 | - content.data.tasks.0.id | 21 | - content.data.tasks.0.id |
22 | - $id | 22 | - $id |
23 | 23 | ||
24 | +- name: 查看抢单任务详情 | ||
25 | + api: api/m_api/loot/loot_task_Details_api.yml | ||
26 | + | ||
24 | - name: 完成任务 | 27 | - name: 完成任务 |
25 | - api: api/m_api/task_finishTask_api.yml | ||
28 | + api: api/m_api/loot/loot_task_finishTask_api.yml |
1 | -config: | ||
2 | - name: 保存抢单任务-发布任务-驳回领取人 | ||
3 | - | ||
4 | -teststeps: | ||
5 | - | ||
6 | -- name: 登录系统 | ||
7 | - testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml | ||
8 | - | ||
9 | -- name: app端点击立即抢单 | ||
10 | - testcase: testcases/task/task_rewards_taskDetails_testcase.yml | ||
11 | - | ||
12 | -- name: 驳回领取人 | ||
13 | - api: api/m_api/loot/loot_task_reject_api.yml | ||
14 | - variables: | ||
15 | - id: ${get_task_id()} | ||
16 | - varidate: | ||
17 | - validate: | ||
18 | - - eq: | ||
19 | - - content.msg | ||
20 | - - ok | ||
21 | - | ||
22 | -- name: 抢单任务详情 | ||
23 | - output: | ||
24 | - - status | ||
25 | - api: api/m_api/loot/task_loot_detail_api.yml | ||
26 | - extract: | ||
27 | - status: content.data.status | ||
28 | - variables: | ||
29 | - id: ${get_task_id()} | ||
30 | - varidate: | ||
31 | - validate: | ||
32 | - - eq: | ||
33 | - - content.msg | ||
34 | - - ok | ||
35 | - - eq: | ||
36 | - - content.data.status | ||
37 | - - $status |
1 | -config: | ||
2 | - name: 保存抢单任务-发布任务-确认领取人 | ||
3 | -# | ||
4 | -teststeps: | ||
5 | -#- name: 登录系统 | ||
6 | -# testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml | ||
7 | -# | ||
8 | -#- name: app端点击立即抢单 | ||
9 | -# testcase: testcases/task/task_rewards_taskDetails_testcase.yml | ||
10 | -# | ||
11 | -#- name: 确认领取人 | ||
12 | -# api: api/m_api/loot/loot_task_confirm_api.yml | ||
13 | -## variables: | ||
14 | -## id: ${get_task_id()} | ||
15 | -# varidate: | ||
16 | -# validate: | ||
17 | -# - eq: | ||
18 | -# - content.msg | ||
19 | -# - ok | ||
20 | -##-------------------------APP端完成抢单任务------------------------------ | ||
21 | -#- name: 完成任务 | ||
22 | -# testcase: testcases/task/task_finishTask_testcase.yml | ||
23 | - | ||
24 | -#-------------------------web端验收抢单任务------------------------------ | ||
25 | -- name: 获取用户信息 | ||
26 | - output: | ||
27 | - - uid0 | ||
28 | - - name0 | ||
29 | - - uid1 | ||
30 | - - name1 | ||
31 | - - uid2 | ||
32 | - - name2 | ||
33 | - - uid15 | ||
34 | - - name15 | ||
35 | - api: api/m_api/common/user_api.yml | ||
36 | - teardown_hooks: | ||
37 | - - ${teardown_hook_get_uid0($response)} | ||
38 | - - ${teardown_hook_get_uid1($response)} | ||
39 | - - ${teardown_hook_get_uid2($response)} | ||
40 | - - ${teardown_hook_get_uid15($response)} | ||
41 | - extract: | ||
42 | -# uid0: content.data.list.0.uid | ||
43 | - name0: content.data.list.0.name | ||
44 | -# uid1: content.data.list.1.uid | ||
45 | - name1: content.data.list.1.name | ||
46 | -# uid2: content.data.list.2.uid | ||
47 | - name2: content.data.list.2.name | ||
48 | -# uid15: content.data.list.15.uid | ||
49 | - name15: content.data.list.15.name | ||
50 | - validate: | ||
51 | - - eq: | ||
52 | - - content.data.list.0.name | ||
53 | - - $name0 | ||
54 | - - eq: | ||
55 | - - content.data.list.1.name | ||
56 | - - $name1 | ||
57 | - - eq: | ||
58 | - - content.data.list.2.name | ||
59 | - - $name2 | ||
60 | - - eq: | ||
61 | - - content.data.list.15.name | ||
62 | - - $name15 | ||
63 | - | ||
64 | -#- name: 验收任务 | ||
65 | -# api: api/m_api/loot/loot_task_accept_api.yml | ||
66 | - | ||
67 | -- name: 验收任务 | ||
68 | - api: api/m_api/loot/loot_task_accept_api.yml |
不能预览此文件类型
@@ -13,5 +13,5 @@ testcases: | @@ -13,5 +13,5 @@ testcases: | ||
13 | #- name: member_set_permission 成员管理设置权限 | 13 | #- name: member_set_permission 成员管理设置权限 |
14 | # testcase: testcases/task/member/member_set_permission_testcases.yml | 14 | # testcase: testcases/task/member/member_set_permission_testcases.yml |
15 | 15 | ||
16 | -- name: COM009_loot_open_status_7_testcase.yml | ||
17 | - testcase: testcases/common/COM009_loot_open_status_7_testcase.yml | ||
16 | +- name: 任务状态验证-已完成,待验收 | ||
17 | + testcase: testcases/common/COM011_loot_open_status_4_testcase.yml |
-
请 注册 或 登录 后发表评论