作者 bianxinhua

add README

... ... @@ -3,7 +3,6 @@ base_url: ${ENV(base_worth_url)}
verify: False
variables:
id: ${get_loot_task_id()}
# status: ${get_task_status_1_from_database()}
msg: ok
request:
headers:
... ...
... ... @@ -2,7 +2,7 @@ name: 确认领取人
base_url: ${ENV(base_worth_url)}
verify: False
variables:
id: ${get_task_status_7_from_database()}
id: ${get_loot_task_id()}
planTime: ${get_today()}
msg: ok
request:
... ...
name: 公司任务(进行中、已完成)
name: 任务详情
base_url: ${ENV(base_url)}
verify: False
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
access_token: ${get_task_accesstoken()}
access_token: ${get_accesstoken()}
sign: ${make_sign($currtime, $uuid, $access_token)}
request:
headers:
... ... @@ -19,17 +19,14 @@ request:
X-MMM-Uuid: $uuid
X-MMM-Version: 1.0.0
json:
pageIndex: 0
pageSize: 20
action: 0
newest: 0
id: $id
method: POST
url: v1/task/currentTasks
url: v1/task/taskDetails
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- 获取详情成功
# - $msg
\ No newline at end of file
... ...
name: 删除任务
base_url: ${ENV(base_worth_url)}
verify: False
variables:
msg: ok
request:
headers:
Content-Type: application/json; charset=UTF-8
Authorization: Bearer ${get_task_Authorization()}
Origin: https://value-test.fjmaimaimai.com
Referer: https://value-test.fjmaimaimai.com/
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
X-Requested-With: XMLHttpRequest
json:
id: $id
method: POST
url: task/delete
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- $msg
\ No newline at end of file
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OTg4NjQ3NjUsIm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AxnwFO9I3HgGsrvfEY
\ No newline at end of file
... ...
ttosts8vxjr
\ No newline at end of file
amk7iu8zz8
\ No newline at end of file
... ...
9ae96156b03893790822a25c332635a55596657255165d212719d21848161c8832412cbb
\ No newline at end of file
b8a8ace231fae55cbad834ad5b66e3d6a560f139581366548d37fe19f52167107b45d02b
\ No newline at end of file
... ...
QLDVfBcYi7T76LcWhcF9bjPvuerNnJrn9BNav2E6GKyXNsPvX7RKxxTS5Qnf2Xf8UNdJWK7g/3rwCReZacnXMJkRmFHVGlGN5la+Gh7e6qtYvEol0wrkM4x97IaaN0aq6M9Azm78lW55Dr3SK7cVmno7DIAcOh8MRkEIGI6iDY0=
\ No newline at end of file
akJLKfTT99ux5Pb/hJfAYc8ibr82OYYJRZ7s8yVO81THB4Zq3tkWqy6+nVOzvioN9EgeWrQkQ1CWDr+U4avOBRBnmXgzEwnlx5k10SvrUQA0QFei99aIz3CoLMl04vI3T3p9qV8iMhapaEuwSYM2/ZnMjaZeYCMa+hTLyab4kc0=
\ No newline at end of file
... ...
3035452474095305728
\ No newline at end of file
3036831452701918208
\ No newline at end of file
... ...
мֵ2
\ No newline at end of file
мֵ53
\ No newline at end of file
... ...
3274475036725504
\ No newline at end of file
3274643368620288
\ No newline at end of file
... ...
мֵ2
\ No newline at end of file
мֵ53
\ No newline at end of file
... ...
10996
\ No newline at end of file
11005
\ No newline at end of file
... ...
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk4ODY0NzY2LCJleHAiOjE1OTg4NzU1NjYsIm5iZiI6MTU5ODg2NDc2NiwianRpIjoiYXIzaFhBekc3WGN3TVRkbCIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.lOkS3UxFvqyaSfBGy5m3bey63HNbaFDQ57FWakBftmA
\ No newline at end of file
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk4OTQ2OTU5LCJleHAiOjE1OTg5NTc3NTksIm5iZiI6MTU5ODk0Njk1OSwianRpIjoiMGpXMDdCRzZRa0pDVGtrciIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.BrAra3HX8D3ozIz5UpQ997mmetNm5ZUt62Qdg50tFxM
\ No newline at end of file
... ...
MSmH3bAPn44brCGzsjcaWW2xWa6Y2QBc
\ No newline at end of file
GMd7aPHQ5JbSTseas5GxisiiksKeTC8n
\ No newline at end of file
... ...
v5uarxgozjm
\ No newline at end of file
h30g7yrn9iq
\ No newline at end of file
... ...
... ... @@ -79,7 +79,7 @@ def get_task_status_1_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and id = {} '''.format(get_loot_task_id())
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())
# print(sql)
try:
cursor.execute(sql)
... ... @@ -96,7 +96,23 @@ def get_task_status_2_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and id = {} '''.format(get_loot_task_id())
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())
print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取抢单任务单的状态:进行中
def get_task_status_3_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
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())
# print(sql)
try:
cursor.execute(sql)
... ... @@ -107,14 +123,13 @@ def get_task_status_2_from_database():
print(err)
db.rollback()
db.close()
#获取任务单的状态:待确认
# #获取抢单任务单的状态:待确认
def get_task_status_7_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select id from tasks where company_id = 366 and task_status = 7 order by id desc'''
# print(sql)
sql = '''select task_status from tasks where company_id = 366 and task_status = 7 and id = {}'''.format(get_loot_task_id())
print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
... ... @@ -130,7 +145,7 @@ def get_task_status_4_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
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'''
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())
# print(sql)
try:
cursor.execute(sql)
... ...
... ... @@ -3,8 +3,8 @@ config:
teststeps:
#- name: COM008_loot_open_status_2_testcase.yml
# testcase: testcases/common/COM008_loot_open_status_2_testcase.yml
- name: 抢单任务状态验证-已发布,待领取
testcase: testcases/common/COM008_loot_open_status_2_testcase.yml
- name: app端点击立即抢单
testcase: testcases/task/loot/loot_rewards_taskDetails_testcase.yml
... ... @@ -12,7 +12,7 @@ teststeps:
- name: 查看详情
api: api/m_api/loot/loot_detail_api.yml
variables:
status: ${get_task_status_2_from_database()}
status: ${get_task_status_7_from_database()}
msg: ok
varidate:
validate:
... ...
config:
name: 抢单任务状态验证-进行中
teststeps:
- name: 抢单任务状态验证-已领取,待确认
testcase: testcases/common/COM009_loot_open_status_7_testcase.yml
- name: 确认领取人
api: api/m_api/loot/loot_task_confirm_api.yml
varidate:
validate:
- eq:
- content.msg
- ok
- name: 查看详情中的状态
api: api/m_api/loot/loot_detail_api.yml
variables:
status: ${get_task_status_3_from_database()}
msg: ok
varidate:
validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.status
- $status
\ No newline at end of file
... ...
config:
name: 抢单任务状态验证-已完成,待验收
teststeps:
- name: 抢单任务状态验证-进行中
testcase: testcases/common/COM010_loot_open_status_3_testcase.yml
##-------------------------APP端完成抢单任务------------------------------
- name: 完成任务
testcase: testcases/task/loot/loot_task_finishTask_testcase.yml
- name: 查看详情中的状态
api: api/m_api/loot/loot_detail_api.yml
variables:
status: ${get_task_status_4_from_database()}
msg: ok
varidate:
validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.status
- $status
\ No newline at end of file
... ...
config:
name: jxz:登录系统-查看公司悬赏任务-点击抢单
teststeps:
- name: 19990000011登录系统
variables:
phone: ${ENV(pfphone)}
testcase: testcases/login_testcases.yml
- name: 19990000011查看公司悬赏任务
output:
- id
api: api/task_api/task/rewards/rewards_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.id
- $id
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000011点击抢单
api: api/task_api/task/rewards/submitCompete_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 抢单成功!
- name: 19990000011查看进行中的任务
api: api/task_api/task/rewards/currentTasks_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.data.task.status
- 3
- eq:
- content.msg
- 获取详情成功
config:
name: jxz:登录系统-查看公司悬赏任务-点击竞标
teststeps:
- name: 19990000011登录系统
variables:
phone: ${ENV(pfphone)}
testcase: testcases/login_testcases.yml
- name: 19990000011查看公司悬赏任务
output:
- id
api: api/task_api/task/rewards/rewards_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.id
- $id
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000011点击竞标
api: api/task_api/task/rewards/submitCompete_1_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 已成功参与竞标,等待中标!!
- name: 19990000008登录系统
variables:
phone: ${ENV(wpftwphone)}
testcase: testcases/login_testcases.yml
- name: 19990000008查看公司悬赏任务
output:
- id
api: api/task_api/task/rewards/rewards_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.id
- $id
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000008任务详情
output:
- uid
api: api/task_api/task/taskDetails_api.yml
extract:
uid: content.data.tasks.bidders.0.uid
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000008中标
api: api/task_api/task/bidTask_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 中标成功
- name: 19990000011登录系统
variables:
phone: ${ENV(pfphone)}
testcase: testcases/login_testcases.yml
- name: 19990000011查看公司悬赏任务
output:
- id
api: api/task_api/task/rewards/rewards_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.id
- $id
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000011查看进行中的任务
api: api/task_api/task/rewards/currentTasks_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.data.task.status
- 3
- eq:
- content.msg
- 获取详情成功
- name: 19990000011完成任务
api: api/task_api/task/taskfinishTask_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 完成成功
\ No newline at end of file
config:
name: jxz:登录系统-查看公司悬赏任务-点击抢单
teststeps:
- name: 19990000011登录系统
variables:
phone: ${ENV(pfphone)}
testcase: testcases/login_testcases.yml
- name: 19990000011查看公司悬赏任务
output:
- id
api: api/task_api/task/rewards/rewards_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.id
- $id
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000011点击抢单
api: api/task_api/task/rewards/submitCompete_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 抢单成功!
- name: 19990000011查看进行中的任务
api: api/task_api/task/rewards/currentTasks_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.data.task.status
- 3
- eq:
- content.msg
- 获取详情成功
config:
name: jxz:登录系统-查看公司悬赏任务-点击抢单
teststeps:
- name: 19990000011登录系统
variables:
phone: ${ENV(pfphone)}
testcase: testcases/login_testcases.yml
- name: 19990000011查看公司悬赏任务
output:
- id
api: api/task_api/task/rewards/rewards_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.id
- $id
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000011点击抢单
api: api/task_api/task/rewards/submitCompete_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 抢单成功!
- name: 19990000011查看进行中的任务
api: api/task_api/task/rewards/currentTasks_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.data.task.status
- 3
- eq:
- content.msg
- 获取详情成功
- name: 19990000011完成任务
api: api/task_api/task/taskfinishTask_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 完成成功
\ No newline at end of file
config:
name: 保存抢单任务-发布任务-确认领取人
teststeps:
- name: 登录系统
testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml
- name: app端点击立即抢单
testcase: testcases/task/task_rewards_taskDetails_testcase.yml
- name: 确认领取人
api: api/m_api/loot/loot_task_confirm_api.yml
# variables:
# id: ${get_task_id()}
varidate:
validate:
- eq:
- content.msg
- ok
- name: 抢单任务详情
output:
- status
api: api/m_api/loot/task_loot_detail_api.yml
extract:
status: content.data.status
# variables:
# id: ${get_task_id()}
varidate:
validate:
- eq:
- content.msg
- ok
- eq:
- content.data.status
- $status
\ No newline at end of file
... ... @@ -2,18 +2,18 @@ config:
name: 任务完成
teststeps:
- name: 19990000008登录系统
- name: 登录系统
variables:
phone: ${ENV(appphone)}
testcase: testcases/login_testcases.yml
testcase: testcases/common/login_testcases.yml
- name: 19990000008登录价值系统
testcase: testcases/task_login_testcases.yml
- name: 登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 公司任务(进行中、已完成
- name: 公司任务(抢单任务
output:
- id
api: api/m_api/task_currentTasks_api.yml
api: api/m_api/loot/loot_contendTasks_api.yml
extract:
id: content.data.tasks.0.id
validate:
... ... @@ -21,5 +21,8 @@ teststeps:
- content.data.tasks.0.id
- $id
- name: 查看抢单任务详情
api: api/m_api/loot/loot_task_Details_api.yml
- name: 完成任务
api: api/m_api/task_finishTask_api.yml
\ No newline at end of file
api: api/m_api/loot/loot_task_finishTask_api.yml
\ No newline at end of file
... ...
config:
name: 保存抢单任务-发布任务-驳回领取人
teststeps:
- name: 登录系统
testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml
- name: app端点击立即抢单
testcase: testcases/task/task_rewards_taskDetails_testcase.yml
- name: 驳回领取人
api: api/m_api/loot/loot_task_reject_api.yml
variables:
id: ${get_task_id()}
varidate:
validate:
- eq:
- content.msg
- ok
- name: 抢单任务详情
output:
- status
api: api/m_api/loot/task_loot_detail_api.yml
extract:
status: content.data.status
variables:
id: ${get_task_id()}
varidate:
validate:
- eq:
- content.msg
- ok
- eq:
- content.data.status
- $status
\ No newline at end of file
config:
name: 保存抢单任务-发布任务-确认领取人
#
teststeps:
#- name: 登录系统
# testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml
#
#- name: app端点击立即抢单
# testcase: testcases/task/task_rewards_taskDetails_testcase.yml
#
#- name: 确认领取人
# api: api/m_api/loot/loot_task_confirm_api.yml
## variables:
## id: ${get_task_id()}
# varidate:
# validate:
# - eq:
# - content.msg
# - ok
##-------------------------APP端完成抢单任务------------------------------
#- name: 完成任务
# testcase: testcases/task/task_finishTask_testcase.yml
#-------------------------web端验收抢单任务------------------------------
- name: 获取用户信息
output:
- uid0
- name0
- uid1
- name1
- uid2
- name2
- uid15
- name15
api: api/m_api/common/user_api.yml
teardown_hooks:
- ${teardown_hook_get_uid0($response)}
- ${teardown_hook_get_uid1($response)}
- ${teardown_hook_get_uid2($response)}
- ${teardown_hook_get_uid15($response)}
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
validate:
- eq:
- content.data.list.0.name
- $name0
- eq:
- content.data.list.1.name
- $name1
- eq:
- content.data.list.2.name
- $name2
- eq:
- content.data.list.15.name
- $name15
#- name: 验收任务
# api: api/m_api/loot/loot_task_accept_api.yml
- name: 验收任务
api: api/m_api/loot/loot_task_accept_api.yml
\ No newline at end of file
... ... @@ -13,5 +13,5 @@ testcases:
#- name: member_set_permission 成员管理设置权限
# testcase: testcases/task/member/member_set_permission_testcases.yml
- name: COM009_loot_open_status_7_testcase.yml
testcase: testcases/common/COM009_loot_open_status_7_testcase.yml
\ No newline at end of file
- name: 任务状态验证-已完成,待验收
testcase: testcases/common/COM011_loot_open_status_4_testcase.yml
\ No newline at end of file
... ...