作者 dengyuting

fix

正在显示 43 个修改的文件 包含 697 行增加644 行删除
name: /api/time/get_timestamp
request:
headers:
User-Agent: okhttp/3.12.3
method: GET
url: http://tongji.fjmaimaimai.com/api/time/get_timestamp
validate:
- eq:
- content.msg
- success
- eq:
- content.code
- 0
\ No newline at end of file
... ...
... ... @@ -5,9 +5,6 @@ from urllib import parse
from helpfunc.db_func import *
from helpfunc.header_func import *
from helpfunc.login_func import *
from helpfunc.pg_db_loot_func import *
from helpfunc.pg_db_bid_func import *
from helpfunc.pg_db_appoint_func import *
import time,datetime,re
... ...
... ... @@ -3,18 +3,21 @@
# @File :db_func.py
import psycopg2
db_config ={'database': "mmmworthtest",
'user': "bianxinhua",
'password': "bianxinhua_123",
'host': "114.55.200.59",
'port': "31543"}
def GetConnect():
conn = False
try:
conn = psycopg2.connect(database="mmmworthtest",
user="bianxinhua",
password="bianxinhua_123",
host="114.55.200.59",
port="31543")
conn = psycopg2.connect(**db_config)
except Exception as err:
print("连接数据库失败,%s" % err)
return conn
def setup_hook_clean_db(company_id):
"""
初始化时清理数据库中的历史数据
... ... @@ -24,37 +27,37 @@ def setup_hook_clean_db(company_id):
cursor = db.cursor()
try:
#获得素币
cursor.execute('''DELETE FROM su_money_transaction_records smrt WHERE ( smrt.employee @> '{"uid":3248817613863936 }' or smrt.employee @> '{"uid":3247366011913216 }' or smrt.employee @> '{"uid":3248817613835264 }'or smrt.employee @> '{"uid":3248817613892608 }')''')
cursor.execute("DELETE FROM su_money_transaction_records smrt WHERE smrt.operator#>>'{{uid}}' in (select uid::TEXT from employees where company_id={})".format(company_id))
db.commit()
#发送推送
cursor.execute('''DELETE FROM sent_notifications sn WHERE ( sn.receiver @> '{"uid":3248817613863936 }' OR sn.receiver @> '{"uid":3247366011913216 }' OR sn.receiver @> '{"uid":3248817613835264 }' OR sn.receiver @> '{"uid":3248817613892608 }' )''')
cursor.execute('DELETE FROM sent_notifications sn WHERE sn.notification_id in (select n.id FROM notifications n WHERE n.external_resource IN ( SELECT t.ID FROM tasks t WHERE t.company_id ={} ))'.format(company_id))
db.commit()
#任务接收者
cursor.execute('''DELETE FROM rob_infos ri WHERE ri.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id ={} )'''.format(company_id))
cursor.execute('DELETE FROM rob_infos ri WHERE ri.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id ={} )'.format(company_id))
db.commit()
#驳回任务
cursor.execute('''DELETE FROM reject_task_records rtr WHERE rtr.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'''.format(company_id))
cursor.execute('DELETE FROM reject_task_records rtr WHERE rtr.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'.format(company_id))
db.commit()
#关闭任务
cursor.execute('''DELETE FROM off_task_records otr WHERE otr.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'''.format(company_id))
cursor.execute('DELETE FROM off_task_records otr WHERE otr.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'.format(company_id))
db.commit()
#通知
cursor.execute('''DELETE FROM notifications n WHERE n.external_resource IN ( SELECT ID FROM tasks T WHERE T.company_id ={} )'''.format(company_id))
cursor.execute('DELETE FROM notifications n WHERE n.external_resource IN ( SELECT ID FROM tasks T WHERE T.company_id ={} )'.format(company_id))
db.commit()
#参与竞标
cursor.execute('''DELETE FROM bid_infos bi WHERE bi.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'''.format(company_id))
cursor.execute('DELETE FROM bid_infos bi WHERE bi.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'.format(company_id))
db.commit()
#中标
cursor.execute('''DELETE FROM bidder_infos bin WHERE bin.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'''.format(company_id))
cursor.execute('DELETE FROM bidder_infos bin WHERE bin.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = {} )'.format(company_id))
db.commit()
#任务列表
cursor.execute('DELETE from tasks t where t.company_id ={}'.format(company_id))
db.commit()
cursor.execute('''DELETE from tasks t where t.company_id ={};'''.format(company_id))
print(cursor.rowcount)
cursor.execute('update employees set su_money=0 where company_id={}'.format(company_id))
db.commit()
print("delete 成功")
except:
except Exception as err:
# 发生错误时回滚
db.rollback()
print('回滚操作')
print('this is:', err)
db.close()
\ No newline at end of file
... ...
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Date: 2020/7/12 16:27
# @Author:bxh
# @file: pg_db_func.py
import psycopg2
from datetime import *
# 获得连接
def GetConnect():
conn = False
try:
conn = psycopg2.connect(database="mmmworthtest",
user="bianxinhua",
password="bianxinhua_123",
host="114.55.200.59",
port="31543")
except Exception as err:
print("连接数据库失败,%s" % err)
return conn
#获取指派任务单的状态:待发布
def get_appoint_task_status_1_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks where company_id = 366 and task_type = 3 and task_status = 1 and id = {} '''.format(get_appoint_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_appoint_task_status_3_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks where company_id = 366 and task_type = 3 and task_status = 3 and id = {} '''.format(get_appoint_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_appoint_task_status_4_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 3 and t.task_status = 4 and id = {}'''.format(get_appoint_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_appoint_task_status_5_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 3 and t.task_status = 5 and id = {}'''.format(get_appoint_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_appoint_task_status_6_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 3 and t.task_status = 6 and id = {}'''.format(get_appoint_task_id())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
\ No newline at end of file
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Date: 2020/7/12 16:27
# @Author:bxh
# @file: pg_db_func.py
import psycopg2
from datetime import *
# 获得连接
def GetConnect():
conn = False
try:
conn = psycopg2.connect(database="mmmworthtest",
user="bianxinhua",
password="bianxinhua_123",
host="114.55.200.59",
port="31543")
except Exception as err:
print("连接数据库失败,%s" % err)
return conn
#获取竞标任务单的状态:待发布
def get_bid_task_status_1_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 1 and id = {} '''.format(get_bid_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_bid_task_status_2_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 2 and id = {} '''.format(get_bid_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_bid_task_status_3_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 3 and id = {} '''.format(get_bid_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_bid_task_status_4_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 2 and t.task_status = 4 and t.receiver_uid = '3248817613892608' and id = {}'''.format(get_bid_task_id())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
# print(get_bid_task_status_4_from_database())
#获取竞标任务单的状态:已完成
def get_bid_task_status_5_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 2 and t.task_status = 5 and id = {}'''.format(get_bid_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_bid_task_status_6_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 2 and t.task_status = 6 and id = {}'''.format(get_bid_task_id())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
\ No newline at end of file
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Date: 2020/7/12 16:27
# @Author:bxh
# @file: pg_db_func.py
import psycopg2
from datetime import *
def get_today():
today = datetime.now(timezone.utc).astimezone().isoformat()
return today
# 获得连接
def GetConnect():
conn = False
try:
conn = psycopg2.connect(database="mmmworthtest",
user="bianxinhua",
password="bianxinhua_123",
host="114.55.200.59",
port="31543")
except Exception as err:
print("连接数据库失败,%s" % err)
return conn
#获取员工的姓名
def get_employees_name_from_database():
db = GetConnect()
cursor = db.cursor()
sql = ''' select employee_name from employees e where e.company_id = 366 order by id desc'''
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取员工的uid
def get_uid_from_database():
db = GetConnect()
cursor = db.cursor()
sql = ''' select uid from employees e where e.company_id = 366 order by id desc'''
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取超级管理员账号
def get_employee_account_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select employee_account from employees where company_id = 366 order by id desc '''
# 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_1_from_database():
db = GetConnect()
cursor = db.cursor()
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)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取抢单任务单的状态:待领取
def get_task_status_2_from_database():
db = GetConnect()
cursor = db.cursor()
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 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)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
# #获取抢单任务单的状态:待确认
def get_task_status_7_from_database():
db = GetConnect()
cursor = db.cursor()
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()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取任务单的状态:待验收
def get_task_status_4_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status 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)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取任务单的状态:已完成
def get_task_status_5_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 5 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_6_from_database():
db = GetConnect()
cursor = db.cursor()
sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 6 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()
\ No newline at end of file
config:
name: ME007-抢单任务被领取-任务数量统计待领取-1,待确认+1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +12,9 @@ teststeps:
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
- name: 第一次查看我发布的
... ... @@ -41,10 +39,10 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
... ...
config:
name: ME008-竞标任务被领取-任务数量统计不变,还是待领取状态
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
- name: 第一次查看我发布的
... ... @@ -44,10 +42,10 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ...
config:
name: ME009-抢单任务被确认-任务数量统计待确认-1,进行中+1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +12,9 @@ teststeps:
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -32,10 +30,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
... ... @@ -66,7 +65,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ...
config:
name: ME010-竞标人确认-任务数量统计待领取-1,进行中+1
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -35,10 +33,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ... @@ -69,7 +68,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -86,7 +85,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- $tasks_title
- name: 竞标人中标确认
variables:
... ...
config:
name: ME011-抢单任务已完成待验收-任务数量统计进行中-1,待验收+1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +13,9 @@ teststeps:
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -32,10 +31,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
... ... @@ -56,7 +56,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ...
config:
name: ME012-竞标人完成任务-任务数量统计进行中-1,待验收+1
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -35,10 +33,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ... @@ -60,7 +59,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -77,7 +76,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- $tasks_title
- name: 竞标人中标确认
variables:
... ...
config:
name: ME013-发布指派任务-任务数量统计进行中-1,待验收+1
base_url: ${ENV(base_url)}
variables:
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -21,6 +16,9 @@ teststeps:
plannedFinishDate: ${get_endtime()}
uid: 3284714710070272
uname: '价值系统账号1'
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
- name: 第一次查看我发布的
... ... @@ -44,10 +42,11 @@ teststeps:
api: api/app_api/task_api/AssignMeTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 完成任务
variables:
... ...
config:
name: ME014-抢单任务验收成功-任务数量统计待验收-1,完成+1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +12,9 @@ teststeps:
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -32,10 +30,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
... ... @@ -56,7 +55,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ...
config:
name: ME015-竞标任务验收成功-任务数量统计待验收-1,完成+1
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -35,10 +33,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ... @@ -60,7 +59,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -77,7 +76,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- $tasks_title
- name: 竞标人中标确认
variables:
... ...
config:
name: ME016-指派任务验收完成-任务数量统计待验收-1,已完成+1
base_url: ${ENV(base_url)}
variables:
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -21,6 +16,9 @@ teststeps:
plannedFinishDate: ${get_endtime()}
uid: 3284714710070272
uname: '价值系统账号1'
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -35,10 +33,11 @@ teststeps:
api: api/app_api/task_api/AssignMeTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 完成任务
variables:
... ...
config:
name: ME017-领取抢单任务-我领取的数量正确
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +12,9 @@ teststeps:
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -40,10 +38,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
... ... @@ -80,7 +79,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ...
config:
name: ME018-领取竞标任务-我领取的、我参与的数量正确
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -45,10 +43,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ... @@ -91,7 +90,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -108,7 +107,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- $tasks_title
- name: 竞标人中标确认
variables:
... ...
config:
name: ME019-竞标任务-参与人的“我参与的-已完成”数量校验
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -35,10 +33,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ... @@ -60,7 +59,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -77,7 +76,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- $tasks_title
- name: 竞标人中标确认
variables:
... ...
config:
name: ME020-指派我的-任务数量统计校验
base_url: ${ENV(base_url)}
variables:
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -38,6 +33,9 @@ teststeps:
plannedFinishDate: ${get_endtime()}
uid: 3284714710070272
uname: '价值系统账号1'
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
... ... @@ -76,10 +74,11 @@ teststeps:
api: api/app_api/task_api/AssignMeTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 完成任务
variables:
... ...
config:
name: ME021-抢单任务驳回后-我领取的-待确认-1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +12,9 @@ teststeps:
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -32,10 +30,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
... ... @@ -63,7 +62,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ...
config:
name: ME022-抢单任务驳回后-我发布的-待确认-1,待领取+1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +12,9 @@ teststeps:
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -32,10 +30,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
... ... @@ -65,7 +64,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ...
config:
name: ME023-竞标任务驳回后-我发布的统计校验
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -35,10 +33,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ... @@ -60,7 +59,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -77,7 +76,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- $tasks_title
- name: 竞标人中标确认
variables:
... ...
config:
name: ME024-竞标任务被驳回-我领取的、我参与的统计校验
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +15,9 @@ teststeps:
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
... ... @@ -35,10 +33,11 @@ teststeps:
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
... ... @@ -60,7 +59,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -77,7 +76,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- $tasks_title
- name: 竞标人中标确认
variables:
... ...
config:
name: ME025-抢单任务验收成功-任务领取人和参与人当前素币、贡献值数据正确
base_url: ${ENV(base_url)}
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布抢单任务
variables:
action: 1
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone3)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务参与人第一次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- cyr_suMoney: content.data.taskMsg.suMoney
- cyr_winShares: content.data.taskMsg.winShares
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务领取人第一次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- lqr_suMoney: content.data.taskMsg.suMoney
- lqr_winShares: content.data.taskMsg.winShares
- name: 查看抢单任务列表
variables:
action: 0
newest: 1
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取任务
variables:
action: 0
id: $tasks_id
api: api/app_api/task_api/submitCompete_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看我发布的-待确认
variables:
action: 5
api: api/app_api/task_api/iPublishedTasks_api.yml
validate:
- eq:
- content.data.tasks.0.title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
- name: 确认领取人
variables:
taskId: $tasks_id
planDate: ${get_endtime()}
api: api/app_api/task_api/verifyReceiver_api.yml
validate:
- eq:
- content.msg
- 确认成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 完成任务
variables:
id: $tasks_id
api: api/app_api/task_api/finishTask_api.yml
validate:
- eq:
- content.msg
- 完成成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 验收任务
variables:
id: $tasks_id
actualFinishDate: ${get_endtime()}
api: api/app_api/task_api/checkAccept_api.yml
validate:
- eq:
- content.msg
- 验收成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务领取人第二次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.suMoney
- ${add($lqr_suMoney,90)}
- eq:
- content.data.taskMsg.winShares
- ${add($lqr_winShares,90)}
- name: $phone 登录系统
variables:
phone: ${ENV(phone3)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务参与人第二次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.suMoney
- ${add($cyr_suMoney,10)}
- eq:
- content.data.taskMsg.winShares
- ${add($cyr_winShares,10)}
\ No newline at end of file
... ...
config:
name: ME026-竞标任务验收成功-任务领取人和参与人当前素币、贡献值数据正确
base_url: ${ENV(base_url)}
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布竞标任务
variables:
action: 1
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone3)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务参与人第一次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- cyr_suMoney: content.data.taskMsg.suMoney
- cyr_winShares: content.data.taskMsg.winShares
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务领取人第一次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- lqr_suMoney: content.data.taskMsg.suMoney
- lqr_winShares: content.data.taskMsg.winShares
- name: 查看竞标任务列表
variables:
action: 1
newest: 1
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 领取竞标任务
variables:
action: 1
id: $tasks_id
api: api/app_api/task_api/submitCompete_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看我发布的-待领取
variables:
action: 1
api: api/app_api/task_api/iPublishedTasks_api.yml
validate:
- eq:
- content.data.tasks.0.title
- $tasks_title
- eq:
- content.data.tasks.0.id
- $tasks_id
- name: 查看任务详情
variables:
id: $tasks_id
api: api/app_api/task_api/taskDetails_api.yml
extract:
- bidders: content.data.task.bidders.0.uid
validate:
- eq:
- content.msg
- 获取详情成功
- eq:
- content.data.task.title
- $tasks_title
- name: 竞标人中标确认
variables:
id: $tasks_id
uid: $bidders
planFinishDate: ${get_endtime()}
api: api/app_api/task_api/bidTask_api.yml
validate:
- eq:
- content.msg
- 中标成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 完成任务
variables:
id: $tasks_id
api: api/app_api/task_api/finishTask_api.yml
validate:
- eq:
- content.msg
- 完成成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 验收任务
variables:
id: $tasks_id
actualFinishDate: ${get_endtime()}
api: api/app_api/task_api/checkAccept_api.yml
validate:
- eq:
- content.msg
- 验收成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务领取人第二次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.suMoney
- ${add($lqr_suMoney,90)}
- eq:
- content.data.taskMsg.winShares
- ${add($lqr_winShares,90)}
- name: $phone 登录系统
variables:
phone: ${ENV(phone3)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务参与人第二次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.suMoney
- ${add($cyr_suMoney,10)}
- eq:
- content.data.taskMsg.winShares
- ${add($cyr_winShares,10)}
\ No newline at end of file
... ...
config:
name: ME027-指派任务验收成功-任务领取人和参与人当前素币、贡献值数据正确
base_url: ${ENV(base_url)}
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布指派任务
variables:
action: 1
type: 2
plannedFinishDate: ${get_endtime()}
uid: 3284714710070272
uname: '价值系统账号1'
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone3)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务参与人第一次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- cyr_suMoney: content.data.taskMsg.suMoney
- cyr_winShares: content.data.taskMsg.winShares
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务领取人第一次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- lqr_suMoney: content.data.taskMsg.suMoney
- lqr_winShares: content.data.taskMsg.winShares
- name: 查看指派我的-进行中
variables:
action: 0
api: api/app_api/task_api/AssignMeTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
- tasks_title: content.data.tasks.0.title
# validate:
# - eq:
# - content.data.tasks.0.title
# - $title
- name: 完成任务
variables:
id: $tasks_id
api: api/app_api/task_api/finishTask_api.yml
validate:
- eq:
- content.msg
- 完成成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 验收任务
variables:
id: $tasks_id
actualFinishDate: ${get_endtime()}
api: api/app_api/task_api/checkAccept_api.yml
validate:
- eq:
- content.msg
- 验收成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务领取人第二次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.suMoney
- ${add($lqr_suMoney,90)}
- eq:
- content.data.taskMsg.winShares
- ${add($lqr_winShares,90)}
- name: $phone 登录系统
variables:
phone: ${ENV(phone3)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 任务参与人第二次查看当前素币
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.suMoney
- ${add($cyr_suMoney,10)}
- eq:
- content.data.taskMsg.winShares
- ${add($cyr_winShares,10)}
\ No newline at end of file
... ...
... ... @@ -3,9 +3,7 @@ config:
base_url: ${ENV(base_url)}
variables:
phone: ${ENV(phone2)}
title: '抢单悬赏任务标题${get_nowtime()}'
content: '抢单悬赏任务内容${get_nowtime()}'
acceptability: '抢单悬赏任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,11 +15,22 @@ teststeps:
action: 0
type: 0
isReward: True
title: '抢单悬赏任务标题1'
content: '抢单悬赏任务内容1'
acceptability: '抢单悬赏任务验收标准1'
api: api/app_api/task_api/taskPublish_api.yml
#- name: 查看我发布的-待发布
# variables:
# action: 0
# type: [0,1,2]
# api: api/app_api/task_api/iPublishedTasks_api.yml
# extract:
# - tasks_title: content.data.tasks.0.title
- name: 查看悬赏任务列表
api: api/app_api/task_api/taskrewards_api.yml
validate:
- not_equals:
- content.data.tasks.0.title
- $title
- length_equals:
- content.data.tasks
- 0
... ...
... ... @@ -3,9 +3,7 @@ config:
base_url: ${ENV(base_url)}
variables:
phone: ${ENV(phone2)}
title: '抢单悬赏任务标题${get_nowtime()}'
content: '抢单悬赏任务内容${get_nowtime()}'
acceptability: '抢单悬赏任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -17,6 +15,9 @@ teststeps:
action: 1
type: 0
isReward: True
title: '抢单悬赏任务标题2'
content: '抢单悬赏任务内容2'
acceptability: '抢单悬赏任务验收标准2'
api: api/app_api/task_api/taskPublish_api.yml
- name: 查看悬赏任务列表
... ... @@ -24,7 +25,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '抢单悬赏任务标题2'
- equals:
- content.data.tasks.0.inBid
- 0
\ No newline at end of file
... ...
config:
name: RED003-抢单悬赏任务被领取-悬赏任务列表无数据
base_url: ${ENV(base_url)}
variables:
title: '抢单悬赏任务标题${get_nowtime()}'
content: '抢单悬赏任务内容${get_nowtime()}'
acceptability: '抢单悬赏任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -18,6 +14,9 @@ teststeps:
action: 1
type: 0
isReward: True
title: '抢单悬赏任务标题3'
content: '抢单悬赏任务内容3'
acceptability: '抢单悬赏任务验收标准3'
api: api/app_api/task_api/taskPublish_api.yml
- name: 查看悬赏任务列表
... ... @@ -25,7 +24,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '抢单悬赏任务标题3'
- equals:
- content.data.tasks.0.inBid
- 0
... ... @@ -45,7 +44,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- '抢单悬赏任务标题3'
- name: 领取任务
variables:
... ... @@ -64,4 +63,4 @@ teststeps:
validate:
- not_equals:
- content.data.tasks.0.title
- $title
\ No newline at end of file
- '抢单悬赏任务标题3'
\ No newline at end of file
... ...
... ... @@ -3,9 +3,7 @@ config:
base_url: ${ENV(base_url)}
variables:
phone: ${ENV(phone2)}
title: '竞标悬赏任务标题${get_nowtime()}'
content: '竞标悬赏任务内容${get_nowtime()}'
acceptability: '竞标悬赏任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +18,9 @@ teststeps:
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
isReward: True
title: '竞标悬赏任务标题1'
content: '竞标悬赏任务内容1'
acceptability: '竞标悬赏任务验收标准1'
api: api/app_api/task_api/taskPublish_api.yml
- name: 查看悬赏任务列表
... ... @@ -27,4 +28,4 @@ teststeps:
validate:
- not_equals:
- content.data.tasks.0.title
- $title
\ No newline at end of file
- '竞标悬赏任务标题1'
\ No newline at end of file
... ...
... ... @@ -3,9 +3,7 @@ config:
base_url: ${ENV(base_url)}
variables:
phone: ${ENV(phone2)}
title: '竞标悬赏任务标题${get_nowtime()}'
content: '竞标悬赏任务内容${get_nowtime()}'
acceptability: '竞标悬赏任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -20,6 +18,9 @@ teststeps:
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
isReward: True
title: '竞标悬赏任务标题2'
content: '竞标悬赏任务内容2'
acceptability: '竞标悬赏任务验收标准2'
api: api/app_api/task_api/taskPublish_api.yml
- name: 查看悬赏任务列表
... ... @@ -27,7 +28,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题2'
- equals:
- content.data.tasks.0.inBid
- 0
\ No newline at end of file
... ...
config:
name: RED006-竞标悬赏任务参与竞标且未确认-悬赏任务列表有数据,参与竞标状态正确
base_url: ${ENV(base_url)}
variables:
title: '竞标悬赏任务标题${get_nowtime()}'
content: '竞标悬赏任务内容${get_nowtime()}'
acceptability: '竞标悬赏任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -21,6 +18,9 @@ teststeps:
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
isReward: True
title: '竞标悬赏任务标题3'
content: '竞标悬赏任务内容3'
acceptability: '竞标悬赏任务验收标准3'
api: api/app_api/task_api/taskPublish_api.yml
- name: 查看悬赏任务列表
... ... @@ -28,7 +28,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题3'
- equals:
- content.data.tasks.0.inBid
- 0
... ... @@ -48,7 +48,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题3'
- name: 领取竞标任务
variables:
... ... @@ -61,7 +61,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题3'
- equals:
- content.data.tasks.0.inBid
- 1
... ... @@ -76,7 +76,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题3'
- equals:
- content.data.tasks.0.inBid
- 0
\ No newline at end of file
... ...
config:
name: RED007-竞标悬赏任务参与竞标且确认-悬赏任务列表无数据,参与竞标状态正确
base_url: ${ENV(base_url)}
variables:
title: '竞标悬赏任务标题${get_nowtime()}'
content: '竞标悬赏任务内容${get_nowtime()}'
acceptability: '竞标悬赏任务验收标准${get_nowtime()}'
teststeps:
... ... @@ -21,6 +18,9 @@ teststeps:
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
isReward: True
title: '竞标悬赏任务标题4'
content: '竞标悬赏任务内容4'
acceptability: '竞标悬赏任务验收标准4'
api: api/app_api/task_api/taskPublish_api.yml
- name: 查看悬赏任务列表
... ... @@ -28,7 +28,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题4'
- equals:
- content.data.tasks.0.inBid
- 0
... ... @@ -48,7 +48,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题4'
- name: 领取竞标任务
variables:
... ... @@ -61,7 +61,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题4'
- equals:
- content.data.tasks.0.inBid
- 1
... ... @@ -76,7 +76,7 @@ teststeps:
validate:
- equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题4'
- equals:
- content.data.tasks.0.inBid
- 0
... ... @@ -88,7 +88,7 @@ teststeps:
validate:
- eq:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题4'
- eq:
- content.data.tasks.0.id
- $tasks_id
... ... @@ -105,7 +105,7 @@ teststeps:
- 获取详情成功
- eq:
- content.data.task.title
- $title
- '竞标悬赏任务标题4'
- name: 竞标人中标确认
variables:
... ... @@ -123,4 +123,4 @@ teststeps:
validate:
- not_equals:
- content.data.tasks.0.title
- $title
- '竞标悬赏任务标题4'
... ...
config:
name: start_testcases
#清理数据
setup_hooks:
- ${setup_hook_clean_db(214)}
teardown_hooks:
- ${setup_hook_clean_db(214)}
\ No newline at end of file
- ${sleep(5)}
teststeps:
- name: start_testcases
api: api/app_api/login_api/gettimestamp_api.yml
\ No newline at end of file
... ...
... ... @@ -4,8 +4,9 @@ config:
testcases:
#- name: start....初始化数据库
# testcase: testcases/start_testcases.yml
- name: start....初始化数据库
testcase: testcases/start_testcases.yml
##############################################权限测试用例开始###################################
- name: PF001价值系统-主管理员拥有发布任务权限
testcase: testcases/app/userInfo/PF001-admin.yml
... ... @@ -90,6 +91,15 @@ testcases:
- name: ME024-竞标任务被驳回-我领取的、我参与的统计校验
testcase: testcases/app/taskStatistics/ME024-taskStatistics-rejectReceiver-iParticipation-iGet-bid.yml
- name: ME025-抢单任务验收成功-任务领取人和参与人当前素币、贡献值数据正确
testcase: testcases/app/taskStatistics/ME025-taskStatistics-suMoney-winShares-lootCompleted.yml
- name: ME026-竞标任务验收成功-任务领取人和参与人当前素币、贡献值数据正确
testcase: testcases/app/taskStatistics/ME026-taskStatistics-suMoney-winShares-bidCompleted.yml
- name: ME027-指派任务验收成功-任务领取人和参与人当前素币、贡献值数据正确
testcase: testcases/app/taskStatistics/ME027-taskStatistics-suMoney-winShares-appointCompleted.yml
##############################################个人中心数量统计用例结束###################################
##############################################悬赏任务列表用例开始###################################
... ...