作者 bianxinhua

add README

... ... @@ -34,6 +34,3 @@ validate:
- eq:
- content.msg
- 获取成功
# - eq:
# - $task_total1
# - $task_total2
\ No newline at end of file
... ...
name: 公司任务(进行中)
base_url: ${ENV(base_url)}
verify: False
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
access_token: ${get_task_accesstoken()}
sign: ${make_sign($currtime, $uuid, $access_token)}
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
X-MMM-AccessToken: $access_token
X-MMM-AppName: com.mmm.ability
X-MMM-AppProject: ability
X-MMM-DeviceType: '0'
X-MMM-Sign: $sign
X-MMM-Timestamp: $currtime
X-MMM-Uuid: $uuid
X-MMM-Version: 1.0.0
json:
action: 0
newest: 0
pageIndex: 0
pageSize: 20
method: POST
url: v1/task/currentTasks
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- eq:
- $task_total1
- $task_total2
\ No newline at end of file
... ...
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OTk1NTc0NTEsImV4cCI6MTU5OTU2ODI1MSwibmJmIjoxNTk5NTU3NDUxLCJqdGkiOiI3QU8zdGpRVXpsZFdtcEwyIiwic3ViIjozMjQ4ODE3NjEzODYzOTM2LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU2NzY4XHU1ZmQ3MTQiLCJwaG9uZSI6IjE5OTkwMDAwMDE0IiwiaWQiOjMyNDg4MTc2MTM4NjM5MzYsImFkbWluVHlwZSI6MX0.16N9F_fzdpMlDLQtDvSjJpnAGPAcMqP9a-sD0SCXVjA
\ No newline at end of file
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OTk2MzY1NjgsImV4cCI6MTU5OTY0NzM2OCwibmJmIjoxNTk5NjM2NTY4LCJqdGkiOiI5bzNUS2NlQld5ckN6aTdrIiwic3ViIjozMjQ4ODE3NjEzODYzOTM2LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU2NzY4XHU1ZmQ3MTQiLCJwaG9uZSI6IjE5OTkwMDAwMDE0IiwiaWQiOjMyNDg4MTc2MTM4NjM5MzYsImFkbWluVHlwZSI6MX0.PKHErYTez_tyujyVQt16CqIcvO5zQDiDbRuStTogLCw
\ No newline at end of file
... ...
SPHGW6N4b8DHEQSky8pk3b7xFnRFnyJQ
\ No newline at end of file
kJ3XN6ZWMb62jDGYE5chDQ3ChQwAjffw
\ No newline at end of file
... ...
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvYW5vbnltb3VzTG9naW4iLCJpYXQiOjE1OTk1NTc0NTEsImV4cCI6MTU5OTU2ODI1MSwibmJmIjoxNTk5NTU3NDUxLCJqdGkiOiJiSFhEUk1xdWdndUJ5bDB5Iiwic3ViIjozMjQ4ODE3NjEzODYzOTM2LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU2NzY4XHU1ZmQ3MTQiLCJwaG9uZSI6IjE5OTkwMDAwMDE0IiwiaWQiOjMyNDg4MTc2MTM4NjM5MzYsImFkbWluVHlwZSI6MX0.dMfIW1wXs4FT26bEnmQQ5XrCkc_R-SGXSr8Se8u7rUs
\ No newline at end of file
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvYW5vbnltb3VzTG9naW4iLCJpYXQiOjE1OTk2MzY1NjgsImV4cCI6MTU5OTY0NzM2OCwibmJmIjoxNTk5NjM2NTY4LCJqdGkiOiJwN0gyZDdJbXFoSmRSSVFZIiwic3ViIjozMjQ4ODE3NjEzODYzOTM2LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU2NzY4XHU1ZmQ3MTQiLCJwaG9uZSI6IjE5OTkwMDAwMDE0IiwiaWQiOjMyNDg4MTc2MTM4NjM5MzYsImFkbWluVHlwZSI6MX0.1KuVx9zZ5lrtcINMd-DZfvq6XO3v86YEPwBd4CzTAl4
\ No newline at end of file
... ...
0gy2cs6cda6v
\ No newline at end of file
vix0qbuznyj
\ No newline at end of file
... ...
39473d256dac69edb6b33e1f44ae8fb6c58bddcd28d4ff06df3c6fb79c28bcaaede33bfd
\ No newline at end of file
5ed9dcf3d3d3dd8712866e81ddeaa03db27321bc0aa1d1345e07fe6cc60850447889694b
\ No newline at end of file
... ...
3679205371953152
\ No newline at end of file
3679205383782400
\ No newline at end of file
... ...
SqNBzgfLy7Kav5Tzcw2rhFGptCB9jhmBuVesg1XnJp/YEVvs/+Re5wFIDBPWrH+iWnqn2RZWZSGykpOkL5yRPeHVuDSKnwBBbAdgFITWwaorhijMMxUV+rxNrS7DwMo5bfcEArAAXjYLGJgBe60u5gS4YSk2CSN17XnDR7UY7pA=
\ No newline at end of file
oLomjQURsdLc5GLZ65cY3GzBiKpPaDPBzc9cXQrhF/NWjMEP+t5AwqFuQMh7MopRpV7dL88+eLH9pO4UkgsDiUBbk4rIRXkZOHXelDUj0NqfHBcvB9tQDjwJHTsca90JXg7owrE69AlJzmNHpOQiBC4llbqqfj3c9S0Q4LulyxE=
\ No newline at end of file
... ...
3047073807191245824
\ No newline at end of file
3048401168629236736
\ No newline at end of file
... ...
3248817613779968
\ No newline at end of file
3248817613892608
\ No newline at end of file
... ...
мֵ46
\ No newline at end of file
мֵ26
\ No newline at end of file
... ...
3275893656719616
\ No newline at end of file
3276055687934208
\ No newline at end of file
... ...
мֵ46
\ No newline at end of file
мֵ26
\ No newline at end of file
... ...
11083
\ No newline at end of file
11118
\ No newline at end of file
... ...
18
\ No newline at end of file
... ...
0
\ No newline at end of file
18
\ No newline at end of file
... ...
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5NTU3NDUxLCJleHAiOjE1OTk1NjgyNTEsIm5iZiI6MTU5OTU1NzQ1MSwianRpIjoiZnBhMnZJS0tuVWlrYndTdyIsInN1YiI6MzI0ODgxNzYxMzg2MzkzNiwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1Njc2OFx1NWZkNzE0IiwicGhvbmUiOiIxOTk5MDAwMDAxNCIsInVpZCI6MzI0ODgxNzYxMzg2MzkzNiwiYWRtaW5UeXBlIjoyfQ.123jUWTcy9syl37gvKZ_a5NdvPUKxg28RogIta_gOUg
\ No newline at end of file
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5NjM2NTY4LCJleHAiOjE1OTk2NDczNjgsIm5iZiI6MTU5OTYzNjU2OCwianRpIjoiMVVrWnJLeXlmdmV1Y0twRyIsInN1YiI6MzI0ODgxNzYxMzg2MzkzNiwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1Njc2OFx1NWZkNzE0IiwicGhvbmUiOiIxOTk5MDAwMDAxNCIsInVpZCI6MzI0ODgxNzYxMzg2MzkzNiwiYWRtaW5UeXBlIjoyfQ.uFsD_IpmZkYZ7g-t5A18l4SgR-M7YnP81toDMqdbemM
\ No newline at end of file
... ...
JJcmb7MTBTXMxZDWk3aD5Gh3RJfQNHxi
\ No newline at end of file
t2YH6FmzZPZQQnCniiSFndfRQxA77Fic
\ No newline at end of file
... ...
vxvm6pua4xa
\ No newline at end of file
7dugs1atnus
\ No newline at end of file
... ...
... ... @@ -47,7 +47,12 @@ def get_tomorrow():
td = datetime.timedelta(days=1)
tomorrow = (datetime.datetime.utcnow() + td).strftime("%Y-%m-%dT%H:%M:%SZ")
return tomorrow
def get_today1():
td = datetime.timedelta(days=0)
tomorrow = (datetime.datetime.utcnow() + td).strftime("%Y-%m-%dT%H:%M:%SZ")
return tomorrow
def add(x, y):
return str(int(x)+y)
... ...
# @Time :2019/11/26 11:25
# @Author :dengyuting
# @File :db_func.py
import pymysql
import psycopg2
db_config ={"host": "115.29.205.99",
"port": 3306,
"user": "shiqiurong",
"password": "QGaBlwXT123dfvc7ip",
"db": "ability_display",
"charset": 'utf8'}
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 setup_hook_clean_db():
"""
初始化时清理数据库中的历史数据
:return:
"""
db = pymysql.connect(**db_config)
db = GetConnect()
cursor = db.cursor()
try:
#删除评论
cursor.execute("delete d from comment d LEFT JOIN comment a on d.id=a.cid LEFT JOIN question b on a.id = b.id LEFT JOIN departments c on b.relevantDepartmentId =c.id where c.company_id =42 and c.enabled = 1")
cursor.execute("delete d from comment d LEFT JOIN solution a on d.id=a.id LEFT JOIN question b on a.qid = b.id LEFT JOIN departments c on b.relevantDepartmentId =c.id where c.company_id =42 and c.enabled = 1")
cursor.execute("delete d from comment d LEFT JOIN question a on d.id =a.id LEFT JOIN departments b on a.relevantDepartmentId =b.id where b.company_id =42 and b.enabled = 1")
#删除解决方案
cursor.execute("delete a from solution a LEFT JOIN question b on a.qid=b.id LEFT JOIN departments c on b.relevantDepartmentId=c.id where c.company_id =42 and c.enabled = 1")
#删除问题
cursor.execute("delete a from question a LEFT JOIN departments b on a.relevantDepartmentId=b.id where b.company_id =42 and b.enabled = 1")
#删除用户消息表
cursor.execute("delete a from user_msg a LEFT JOIN user_info b on a.uid=b.uid where b.company_id=42")
# 删除用户星数变动表
cursor.execute("delete a from user_score_change a LEFT JOIN user_info b on a.uid=b.uid where b.company_id=42")
# 删除用户解决申请表
cursor.execute("delete from user_question_solve where uid in (select uid from user_info where company_id=42)")
# 删除质疑表
cursor.execute("delete from doubt where company_id=42")
# 删除额外加分表
cursor.execute("delete from bonus_point where company_id=42")
# 删除公告表
cursor.execute("delete from bulletin where company_id=42")
# 删除表彰管理表
cursor.execute("delete from commend where company_id=42")
# 删除用户消息表
cursor.execute("delete from user_msg where uid in (select uid from user_info where company_id=42)")
# 删除用户同感表
cursor.execute("delete from user_sympathy where uid in (select uid from user_info where company_id=42)")
# 删除问题标记表
cursor.execute("delete from question_marks where uid in (select uid from user_info where company_id=42)")
# 删除问题标记结果表
cursor.execute("delete from question_marks_result where uid in (select uid from user_info where company_id=42)")
# 删除用户提交表
cursor.execute("delete from user_commit where uid in (select uid from user_info where company_id=42)")
# 删除问题提交表
cursor.execute("delete a from question_commit a LEFT JOIN user_commit b on a.commitId =b.id LEFT JOIN user_info c on b.uid =c.uid where c.company_id =42")
'''
--任务列表
DELETE from tasks t where t.company_id =366;
-- 获得素币
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 }');
--发送推送
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 }' );
--任务接收者
DELETE FROM rob_infos ri WHERE ri.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = 366 );
--驳回任务
DELETE FROM reject_task_records rtr WHERE rtr.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = 366 );
-- --关闭任务
DELETE FROM off_task_records otr WHERE otr.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = 366 );
--通知
DELETE FROM notifications n WHERE n.external_resource IN ( SELECT ID FROM tasks T WHERE T.company_id = 366 );
--参与竞标
DELETE FROM bid_infos bi WHERE bi.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = 366 );
--中标
DELETE FROM bidder_infos bin WHERE bin.task_id IN ( SELECT ID FROM tasks T WHERE T.company_id = 366 );
'''
db.commit()
print("delete OK")
except:
# 发生错误时回滚
db.rollback()
db.close()
def get_solveid(qid):
#根据问题id,查询相应的解决申请表id
db = pymysql.connect(**db_config)
cursor = db.cursor()
try:
cursor.execute('select id from user_question_solve where qid = %s',qid)
result = cursor.fetchone()
id = result[0]
return id
except:
# 发生错误时回滚
db.rollback()
db.close()
\ No newline at end of file
... ...
... ... @@ -9,11 +9,9 @@ teststeps:
- name: 第一次登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
#
- name: 第一次查看公司任务(进行中)
api: api/app_api/task_currentTasks_1_api.yml
variables:
task_total1: ${get_task_3_total()}
teardown_hooks:
- ${teardown_hook_get_task_3_1_total($response)}
varidate:
... ... @@ -21,22 +19,15 @@ teststeps:
- eq:
- content.msg
- 获取成功
#
- name: B用户登录管理后台,新增一个待发布的任务
variables:
username: ${ENV(appphone1)}
testcase: testcases/common/COM007_loot_update_status_1_testcase.yml
#- name: 第二次登录系统
# testcase: testcases/common/login_testcases.yml
#
#- name: 第二次登录价值系统
# testcase: testcases/common/COM001_task_login_testcases.yml
- name: 第二次查看公司任务(进行中)
api: api/app_api/task_currentTasks_2_api.yml
variables:
task_total2: ${get_task_3_2_total()}
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
varidate:
... ... @@ -44,6 +35,18 @@ teststeps:
- eq:
- content.msg
- 获取成功
- name: 第三次查看公司任务(进行中)
api: api/app_api/task_currentTasks_3_api.yml
variables:
task_total1: ${get_task_3_total()}
task_total2: ${get_task_3_2_total()}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- eq:
# - $task_total1
# - $task_total2
\ No newline at end of file
- $task_total1
- $task_total2
\ No newline at end of file
... ...
config:
name: APP端首页-进行中数量统计-已发布,待领取状态不统计
base_url: ${ENV(base_url)}
teststeps:
- name: 第一次登录系统
testcase: testcases/common/login_testcases.yml
- name: 第一次登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
#
- name: 第一次查看公司任务(进行中)
api: api/app_api/task_currentTasks_1_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_1_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
#
- name: B用户登录管理后台,新增一个已发布,待领取的任务
variables:
username: ${ENV(appphone1)}
testcase: testcases/common/COM008_loot_open_status_2_testcase.yml
- name: 第二次查看公司任务(进行中)
api: api/app_api/task_currentTasks_2_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- name: 第三次查看公司任务(进行中)
api: api/app_api/task_currentTasks_3_api.yml
variables:
task_total1: ${get_task_3_total()}
task_total2: ${get_task_3_2_total()}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- eq:
- $task_total1
- $task_total2
\ No newline at end of file
... ...
config:
name: APP端首页-进行中数量统计-进行中状态统计
base_url: ${ENV(base_url)}
teststeps:
- name: 第一次登录系统
testcase: testcases/common/login_testcases.yml
- name: 第一次登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
##
- name: 第一次查看公司任务(进行中)
api: api/app_api/task_currentTasks_1_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_1_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
#
- name: B用户登录管理后台,新增一个进行中的任务
variables:
username: ${ENV(appphone1)}
testcase: testcases/common/COM010_loot_open_status_3_testcase.yml
##
- name: 第二次查看公司任务(进行中)
api: api/app_api/task_currentTasks_2_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- name: 第三次查看公司任务(进行中)
api: api/app_api/task_currentTasks_3_api.yml
variables:
task_total: ${get_task_3_total()}
task_total1: ${add($task_total,1)}
task_total2: ${get_task_3_2_total()}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- eq:
- $task_total1
- $task_total2
\ No newline at end of file
... ...
config:
name: APP端首页-进行中数量统计-已完成,待验收状态统计
base_url: ${ENV(base_url)}
teststeps:
- name: 第一次登录系统
testcase: testcases/common/login_testcases.yml
- name: 第一次登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
##
- name: 第一次查看公司任务(进行中)
api: api/app_api/task_currentTasks_1_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_1_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
#
- name: B用户登录管理后台,新增一个已完成,待验收的任务
variables:
username: ${ENV(appphone1)}
testcase: testcases/common/COM011_loot_open_status_4_testcase.yml
##
- name: 第二次查看公司任务(进行中)
api: api/app_api/task_currentTasks_2_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- name: 第三次查看公司任务(进行中)
api: api/app_api/task_currentTasks_3_api.yml
variables:
task_total1: ${get_task_3_total()}
task_total2: ${get_task_3_2_total()}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- eq:
- $task_total1
- $task_total2
\ No newline at end of file
... ...
config:
name: APP端首页-进行中数量统计-已完成状态统计
base_url: ${ENV(base_url)}
teststeps:
- name: 第一次登录系统
testcase: testcases/common/login_testcases.yml
- name: 第一次登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
##
- name: 第一次查看公司任务(进行中)
api: api/app_api/task_currentTasks_1_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_1_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
#
- name: B用户登录管理后台,新增一个已完成的任务
variables:
username: ${ENV(appphone1)}
testcase: testcases/common/COM012_loot_open_status_5_testcase.yml
##
- name: 第二次查看公司任务(进行中)
api: api/app_api/task_currentTasks_2_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- name: 第三次查看公司任务(进行中)
api: api/app_api/task_currentTasks_3_api.yml
variables:
task_total1: ${get_task_3_total()}
task_total2: ${get_task_3_2_total()}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- eq:
- $task_total1
- $task_total2
\ No newline at end of file
... ...
config:
name: APP端首页-进行中数量统计-已关闭状态统计
base_url: ${ENV(base_url)}
teststeps:
- name: 第一次登录系统
testcase: testcases/common/login_testcases.yml
- name: 第一次登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
##
- name: 第一次查看公司任务(进行中)
api: api/app_api/task_currentTasks_1_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_1_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
#
- name: B用户登录管理后台,新增一个已关闭的任务
variables:
username: ${ENV(appphone1)}
testcase: testcases/common/COM013_loot_open_status_6_testcase.yml
##
- name: 第二次查看公司任务(进行中)
api: api/app_api/task_currentTasks_2_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- name: 第三次查看公司任务(进行中)
api: api/app_api/task_currentTasks_3_api.yml
variables:
task_total1: ${get_task_3_total()}
task_total2: ${get_task_3_2_total()}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- eq:
- $task_total1
- $task_total2
\ No newline at end of file
... ...
config:
name: APP端首页-进行中数量统计-已领取,待确认状态统计
base_url: ${ENV(base_url)}
teststeps:
- name: 第一次登录系统
testcase: testcases/common/login_testcases.yml
- name: 第一次登录价值系统
testcase: testcases/common/COM001_task_login_testcases.yml
##
- name: 第一次查看公司任务(进行中)
api: api/app_api/task_currentTasks_1_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_1_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
#
- name: B用户登录管理后台,新增一个已领取,待确认的任务
variables:
username: ${ENV(appphone1)}
testcase: testcases/common/COM009_loot_open_status_7_testcase.yml
##
- name: 第二次查看公司任务(进行中)
api: api/app_api/task_currentTasks_2_api.yml
teardown_hooks:
- ${teardown_hook_get_task_3_2_total($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- name: 第三次查看公司任务(进行中)
api: api/app_api/task_currentTasks_3_api.yml
variables:
task_total1: ${get_task_3_total()}
task_total2: ${get_task_3_2_total()}
varidate:
validate:
- eq:
- content.msg
- 获取成功
- eq:
- $task_total1
- $task_total2
\ No newline at end of file
... ...
... ... @@ -2,10 +2,6 @@ config:
name: start_testcases
#清理数据
setup_hooks:
- ${setup_hook_clean_db()}
#teststeps:
#- name: start_testcases
# api: api/app_api/login_api/auth/8_gettimestamp_api.yml
E:\mmm_auto\ability_api\testcases
\ No newline at end of file
- ${setup_hook_clean_db(214)}
teardown_hooks:
- ${sleep(2)}
... ...
... ... @@ -4,14 +4,14 @@ config:
testcases:
#- name: start....初始化数据库
# testcase: testcases/start_testcases.yml
- name: start....初始化数据库
testcase: testcases/start_testcases.yml
#- name: member_list 成员管理搜索
# testcase: testcases/task/member/member_list_testcases.yml
- name: member_list 成员管理搜索
testcase: testcases/task/member/member_list_testcases.yml
#- name: member_set_permission 成员管理设置权限
# testcase: testcases/task/member/member_set_permission_testcases.yml
- name: member_set_permission 成员管理设置权限
testcase: testcases/task/member/member_set_permission_testcases.yml
- name: 测试流程
testcase: testcases/firstpage/FS002.yml
\ No newline at end of file
testcase: testcases/firstpage/FS008.yml
\ No newline at end of file
... ...