作者 bianxinhua

add README

1 wpftwphone=19990000008 1 wpftwphone=19990000008
2 pfphone=19990000011 2 pfphone=19990000011
3 pfphone1=19990000015 3 pfphone1=19990000015
4 -wtaskphone=19990000012  
5 -pfphone2=18100000005 4 +wtaskphone=19999999999
  5 +appphone1=19990000014
6 appphone=19990000015 6 appphone=19990000015
7 password=123456 7 password=123456
8 base_url=https://ability-test.fjmaimaimai.com 8 base_url=https://ability-test.fjmaimaimai.com
  1 +name: 公司任务(进行中)
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + currtime: ${make_time()}
  6 + uuid: ${make_uuid()}
  7 + access_token: ${get_task_accesstoken()}
  8 + sign: ${make_sign($currtime, $uuid, $access_token)}
  9 +teardown_hooks:
  10 + - ${teardown_hook_get_task_3_1_total($response)}
  11 +request:
  12 + headers:
  13 + Content-Type: application/json;charset=utf-8
  14 + User-Agent: okhttp/3.12.3
  15 + X-MMM-AccessToken: $access_token
  16 + X-MMM-AppName: com.mmm.ability
  17 + X-MMM-AppProject: ability
  18 + X-MMM-DeviceType: '0'
  19 + X-MMM-Sign: $sign
  20 + X-MMM-Timestamp: $currtime
  21 + X-MMM-Uuid: $uuid
  22 + X-MMM-Version: 1.0.0
  23 + json:
  24 + action: 0
  25 + newest: 0
  26 + pageIndex: 0
  27 + pageSize: 20
  28 + method: POST
  29 + url: v1/task/currentTasks
  30 +validate:
  31 + - eq:
  32 + - content.code
  33 + - 0
  34 + - eq:
  35 + - content.msg
  36 + - 获取成功
  37 +# - eq:
  38 +# - $task_total1
  39 +# - $task_total2
  1 +name: 公司任务(进行中)
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + currtime: ${make_time()}
  6 + uuid: ${make_uuid()}
  7 + access_token: ${get_task_accesstoken()}
  8 + sign: ${make_sign($currtime, $uuid, $access_token)}
  9 +teardown_hooks:
  10 + - ${teardown_hook_get_task_3_2_total($response)}
  11 +request:
  12 + headers:
  13 + Content-Type: application/json;charset=utf-8
  14 + User-Agent: okhttp/3.12.3
  15 + X-MMM-AccessToken: $access_token
  16 + X-MMM-AppName: com.mmm.ability
  17 + X-MMM-AppProject: ability
  18 + X-MMM-DeviceType: '0'
  19 + X-MMM-Sign: $sign
  20 + X-MMM-Timestamp: $currtime
  21 + X-MMM-Uuid: $uuid
  22 + X-MMM-Version: 1.0.0
  23 + json:
  24 + action: 0
  25 + newest: 0
  26 + pageIndex: 0
  27 + pageSize: 20
  28 + method: POST
  29 + url: v1/task/currentTasks
  30 +validate:
  31 + - eq:
  32 + - content.code
  33 + - 0
  34 + - eq:
  35 + - content.msg
  36 + - 获取成功
  37 +# - eq:
  38 +# - $task_total1
  39 +# - $task_total2
  1 +name: 公司悬赏任务
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + currtime: ${make_time()}
  6 + uuid: ${make_uuid()}
  7 + access_token: ${get_task_accesstoken()}
  8 + sign: ${make_sign($currtime, $uuid, $access_token)}
  9 +request:
  10 + headers:
  11 + Content-Type: application/json;charset=utf-8
  12 + User-Agent: okhttp/3.12.3
  13 + X-MMM-AccessToken: $access_token
  14 + X-MMM-AppName: com.mmm.ability
  15 + X-MMM-AppProject: ability
  16 + X-MMM-DeviceType: '0'
  17 + X-MMM-Sign: $sign
  18 + X-MMM-Timestamp: $currtime
  19 + X-MMM-Uuid: $uuid
  20 + X-MMM-Version: 1.0.0
  21 + json:
  22 + pageIndex: 0
  23 + pageSize: 20
  24 + method: POST
  25 + url: v1/task/rewards
  26 +validate:
  27 + - eq:
  28 + - content.code
  29 + - 0
  30 + - eq:
  31 + - content.data.tasks.0.id
  32 + - $id
  33 + - eq:
  34 + - content.msg
  35 + - 获取成功
@@ -3,7 +3,7 @@ base_url: ${ENV(base_url)} @@ -3,7 +3,7 @@ base_url: ${ENV(base_url)}
3 variables: 3 variables:
4 currtime: ${make_time()} 4 currtime: ${make_time()}
5 uuid: ${make_uuid()} 5 uuid: ${make_uuid()}
6 - var_access_token: ${get_accesstoken()} 6 + var_access_token: ${get_task_accesstoken()}
7 sign: ${make_sign($currtime, $uuid, $var_access_token)} 7 sign: ${make_sign($currtime, $uuid, $var_access_token)}
8 request: 8 request:
9 headers: 9 headers:
@@ -29,4 +29,4 @@ validate: @@ -29,4 +29,4 @@ validate:
29 - 获取用户信息 29 - 获取用户信息
30 - eq: 30 - eq:
31 - content.data.user.permissionTaskPublish 31 - content.data.user.permissionTaskPublish
32 - - 1  
  32 + - $permissionTaskPublish
@@ -2,7 +2,7 @@ name: 企业平台账号登录 @@ -2,7 +2,7 @@ name: 企业平台账号登录
2 base_url: ${ENV(base_business_url)} 2 base_url: ${ENV(base_business_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
5 - username: ${ENV(wpftwphone)} 5 +# username: ${ENV(wpftwphone)}
6 password: 7c4a8d09ca3762af61e59520943dc26494f8941b 6 password: 7c4a8d09ca3762af61e59520943dc26494f8941b
7 teardown_hooks: 7 teardown_hooks:
8 - ${teardown_hook_get_Authorization($response)} 8 - ${teardown_hook_get_Authorization($response)}
@@ -7,7 +7,7 @@ variables: @@ -7,7 +7,7 @@ variables:
7 description: 测试抢单任务的任务描述${get_nowtime()} 7 description: 测试抢单任务的任务描述${get_nowtime()}
8 msg: ok 8 msg: ok
9 teardown_hooks: 9 teardown_hooks:
10 - - ${teardown_hook_get_task_id($response)} 10 + - ${teardown_hook_get_loot_task_id($response)}
11 request: 11 request:
12 headers: 12 headers:
13 Content-Type: application/json; charset=UTF-8 13 Content-Type: application/json; charset=UTF-8
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OTk0Njc0NDgsImV4cCI6MTU5OTQ3ODI0OCwibmJmIjoxNTk5NDY3NDQ4LCJqdGkiOiJIa2dqNFZ3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473d256dac69edb6b33e1f44ae8fb6c58bddcd28d4ff06df3c6fb79c28bcaaede33bfd
1 -3679205383782400  
  1 +3679205371953152
1 -l/IZP20/bKBXz7raHnr8qrzxrZ51EujRxYtcliJMjktjDihUrsg/9yYanpmKnShHfVTU/Y3Hf2+MmnGK3yTz+jHU9BstE9DVdtl5D6gxlIanNzD9NMvXQfAdKcVT/uHSP3X4OldWrpAa7lhkgx6h5SNqmZvHk56Jjeh+7kSNr2I=  
  1 +SqNBzgfLy7Kav5Tzcw2rhFGptCB9jhmBuVesg1XnJp/YEVvs/+Re5wFIDBPWrH+iWnqn2RZWZSGykpOkL5yRPeHVuDSKnwBBbAdgFITWwaorhijMMxUV+rxNrS7DwMo5bfcEArAAXjYLGJgBe60u5gS4YSk2CSN17XnDR7UY7pA=
1 -3039395831662248960  
  1 +3047073807191245824
1 -3248817613892608  
  1 +3248817613779968
1 -3275709332285696  
  1 +3275893656719616
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5NDY3NDQ5LCJleHAiOjE1OTk0NzgyNDksIm5iZiI6MTU5OTQ2NzQ0OSwianRpIjoiR3ZNcExYaFFtenhXMkhVYSIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.HEtAZ9Yr8r9ky7ZrnUcfZLCtATJdcLzlgL5Ywi_TRP0  
  1 +eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5NTU3NDUxLCJleHAiOjE1OTk1NjgyNTEsIm5iZiI6MTU5OTU1NzQ1MSwianRpIjoiZnBhMnZJS0tuVWlrYndTdyIsInN1YiI6MzI0ODgxNzYxMzg2MzkzNiwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1Njc2OFx1NWZkNzE0IiwicGhvbmUiOiIxOTk5MDAwMDAxNCIsInVpZCI6MzI0ODgxNzYxMzg2MzkzNiwiYWRtaW5UeXBlIjoyfQ.123jUWTcy9syl37gvKZ_a5NdvPUKxg28RogIta_gOUg
1 -Smsdz8c7shbF5rPkMXG5CFzcSfNeSE4z  
  1 +JJcmb7MTBTXMxZDWk3aD5Gh3RJfQNHxi
1 -km8vot90cs9  
  1 +vxvm6pua4xa
@@ -51,5 +51,3 @@ def get_today1(): @@ -51,5 +51,3 @@ def get_today1():
51 td = datetime.timedelta(days=0) 51 td = datetime.timedelta(days=0)
52 tomorrow = (datetime.datetime.utcnow() + td).strftime("%Y-%m-%dT%H:%M:%SZ") 52 tomorrow = (datetime.datetime.utcnow() + td).strftime("%Y-%m-%dT%H:%M:%SZ")
53 return tomorrow 53 return tomorrow
54 -  
55 -# print(get_today1())  
@@ -132,6 +132,53 @@ def teardown_hook_get_appoint_task_id(response): @@ -132,6 +132,53 @@ def teardown_hook_get_appoint_task_id(response):
132 except Exception as e: 132 except Exception as e:
133 print('写入失败', e) 133 print('写入失败', e)
134 return task_id 134 return task_id
  135 +
  136 +#第一次写入进行中的数据
  137 +def teardown_hook_get_task_3_1_total(response):
  138 + if response.status_code == 200:
  139 + jsondata = json.loads(response.text)
  140 + task_total =str(len(jsondata['data']['tasks']))
  141 + try:
  142 + with open(path + 'config/task_3_total.txt','w+') as f:
  143 + f.write(task_total)
  144 + print('写入成功,task_total:{}'.format(task_total))
  145 + f.close()
  146 + except Exception as e:
  147 + print('写入失败', e)
  148 + return task_total
  149 +#第二次写入进行中的数据
  150 +def teardown_hook_get_task_3_2_total(response):
  151 + if response.status_code == 200:
  152 + jsondata = json.loads(response.text)
  153 + task_total =str(len(jsondata['data']['tasks']))
  154 + try:
  155 + with open(path + 'config/task_3_2_total.txt','w+') as f:
  156 + f.write(task_total)
  157 + print('写入成功,task_total:{}'.format(task_total))
  158 + f.close()
  159 + except Exception as e:
  160 + print('写入失败', e)
  161 + return task_total
  162 +#第一次获取进行中的数据
  163 +def get_task_3_total():
  164 + try:
  165 + # 保存token到文件
  166 + with open(path + "config/task_3_total.txt", 'r') as f:
  167 + task_total = f.read()
  168 + print('读取成功,task_total:{}'.format(task_total))
  169 + except Exception as e:
  170 + print('读取失败', e)
  171 + return task_total
  172 +#第二次获取进行中的数据
  173 +def get_task_3_2_total():
  174 + try:
  175 + # 保存token到文件
  176 + with open(path + "config/task_3_2_total.txt", 'r') as f:
  177 + task_total = f.read()
  178 + print('读取成功,task_total:{}'.format(task_total))
  179 + except Exception as e:
  180 + print('读取失败', e)
  181 + return task_total
135 #获取指派任务id 182 #获取指派任务id
136 def get_appoint_task_id(): 183 def get_appoint_task_id():
137 try: 184 try:
@@ -118,6 +118,7 @@ def get_task_status_3_from_database(): @@ -118,6 +118,7 @@ def get_task_status_3_from_database():
118 print(err) 118 print(err)
119 db.rollback() 119 db.rollback()
120 db.close() 120 db.close()
  121 +
121 # #获取抢单任务单的状态:待确认 122 # #获取抢单任务单的状态:待确认
122 def get_task_status_7_from_database(): 123 def get_task_status_7_from_database():
123 db = GetConnect() 124 db = GetConnect()
@@ -5,8 +5,8 @@ config: @@ -5,8 +5,8 @@ config:
5 teststeps: 5 teststeps:
6 - name: 登录企业平台 6 - name: 登录企业平台
7 api: api/m_api/login_api/auth/pwdLogin_api.yml 7 api: api/m_api/login_api/auth/pwdLogin_api.yml
8 - variables:  
9 - phone: ${ENV(wpftwphone)} 8 +# variables:
  9 +# username: ${ENV(wpftwphone)}
10 teardown_hooks: 10 teardown_hooks:
11 - ${teardown_hook_get_Authorization($response)} 11 - ${teardown_hook_get_Authorization($response)}
12 varidate: 12 varidate:
@@ -10,7 +10,7 @@ teststeps: @@ -10,7 +10,7 @@ teststeps:
10 variables: 10 variables:
11 phone: ${ENV(wpftwphone)} 11 phone: ${ENV(wpftwphone)}
12 testcase: testcases/common/COM002_m_login_testcases.yml 12 testcase: testcases/common/COM002_m_login_testcases.yml
13 - 13 +#
14 - name: 引用资源 14 - name: 引用资源
15 api: api/m_api/task_resource_api.yml 15 api: api/m_api/task_resource_api.yml
16 teardown_hooks: 16 teardown_hooks:
@@ -22,7 +22,7 @@ teststeps: @@ -22,7 +22,7 @@ teststeps:
22 - eq: 22 - eq:
23 - content.msg 23 - content.msg
24 - ok 24 - ok
25 - 25 +#
26 - name: 保存任务 26 - name: 保存任务
27 api: api/m_api/loot/loot_update_true_api.yml 27 api: api/m_api/loot/loot_update_true_api.yml
28 teardown_hooks: 28 teardown_hooks:
@@ -7,8 +7,8 @@ teststeps: @@ -7,8 +7,8 @@ teststeps:
7 testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml 7 testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml
8 8
9 - name: 登录系统 9 - name: 登录系统
10 - variables:  
11 - phone: ${ENV(wpftwphone)} 10 +# variables:
  11 +# username: ${ENV(wpftwphone)}
12 testcase: testcases/common/COM002_m_login_testcases.yml 12 testcase: testcases/common/COM002_m_login_testcases.yml
13 13
14 - name: 引用资源 14 - name: 引用资源
  1 +config:
  2 + name: APP端首页-公司悬赏任务
  3 + base_url: ${ENV(base_url)}
  4 +
  5 +teststeps:
  6 +
  7 +- name: 用户新增抢单任务-公司重要悬赏
  8 + testcase: testcases/common/COM004_loot_update_testcase.yml
  9 +
  10 +- name: 登录系统
  11 + testcase: testcases/common/login_testcases.yml
  12 +
  13 +- name: 登录价值系统
  14 + testcase: testcases/common/COM001_task_login_testcases.yml
  15 +
  16 +- name: 查看公司悬赏任务
  17 + api: api/app_api/task_rewards_api.yml
  18 + variables:
  19 + id: ${get_loot_task_id()}
  20 + varidate:
  21 + validate:
  22 + - eq:
  23 + - content.code
  24 + - 0
  25 + - eq:
  26 + - content.data.tasks.0.id
  27 + - $id
  28 + - eq:
  29 + - content.msg
  30 + - 获取成功
  1 +config:
  2 + name: APP端首页-进行中数量统计-待发布状态不统计
  3 + base_url: ${ENV(base_url)}
  4 +
  5 +teststeps:
  6 +
  7 +- name: 第一次登录系统
  8 + testcase: testcases/common/login_testcases.yml
  9 +
  10 +- name: 第一次登录价值系统
  11 + testcase: testcases/common/COM001_task_login_testcases.yml
  12 +
  13 +- name: 第一次查看公司任务(进行中)
  14 + api: api/app_api/task_currentTasks_1_api.yml
  15 + variables:
  16 + task_total1: ${get_task_3_total()}
  17 + teardown_hooks:
  18 + - ${teardown_hook_get_task_3_1_total($response)}
  19 + varidate:
  20 + validate:
  21 + - eq:
  22 + - content.msg
  23 + - 获取成功
  24 +
  25 +- name: B用户登录管理后台,新增一个待发布的任务
  26 + variables:
  27 + username: ${ENV(appphone1)}
  28 + testcase: testcases/common/COM007_loot_update_status_1_testcase.yml
  29 +
  30 +#- name: 第二次登录系统
  31 +# testcase: testcases/common/login_testcases.yml
  32 +#
  33 +#- name: 第二次登录价值系统
  34 +# testcase: testcases/common/COM001_task_login_testcases.yml
  35 +
  36 +- name: 第二次查看公司任务(进行中)
  37 + api: api/app_api/task_currentTasks_2_api.yml
  38 + variables:
  39 + task_total2: ${get_task_3_2_total()}
  40 + teardown_hooks:
  41 + - ${teardown_hook_get_task_3_2_total($response)}
  42 + varidate:
  43 + validate:
  44 + - eq:
  45 + - content.msg
  46 + - 获取成功
  47 + - eq:
  48 +# - $task_total1
  49 +# - $task_total2
@@ -3,18 +3,19 @@ config: @@ -3,18 +3,19 @@ config:
3 base_url: ${ENV(base_url)} 3 base_url: ${ENV(base_url)}
4 4
5 teststeps: 5 teststeps:
  6 +
6 - name: 价值系统-拥有发布任务权限登录价值系统 7 - name: 价值系统-拥有发布任务权限登录价值系统
7 - variables:  
8 - phone: ${ENV(appphone)}  
9 - testcase: testcases/common/login_testcases.yml 8 + testcase: testcases/common/COM001_task_login_testcases.yml
10 9
11 - name: 获取用户信息 10 - name: 获取用户信息
12 api: api/app_api/user_api/userInfo_api.yml 11 api: api/app_api/user_api/userInfo_api.yml
  12 + variables:
  13 + permissionTaskPublish: 1
13 varidate: 14 varidate:
14 validate: 15 validate:
15 - eq: 16 - eq:
16 - content.data.user.permissionTaskPublish 17 - content.data.user.permissionTaskPublish
17 - - 1 18 + - $permissionTaskPublish
18 - eq: 19 - eq:
19 - content.data.msg 20 - content.data.msg
20 - 获取用户信息 21 - 获取用户信息
  1 +config:
  2 + name: PF002价值系统-无任务管理权限的人员登录系统
  3 + base_url: ${ENV(base_url)}
  4 +
  5 +teststeps:
  6 +- name: 价值系统-无任务管理权限的人员登录系统
  7 + variables:
  8 + phone: ${ENV(wtaskphone)}
  9 + testcase: testcases/common/login_testcases.yml
  10 +
  11 +- name: 获取用户信息
  12 + api: api/app_api/user_api/userInfo_api.yml
  13 + variables:
  14 + permissionTaskPublish: 0
  15 + varidate:
  16 + validate:
  17 + - eq:
  18 + - content.data.user.permissionTaskPublish
  19 + - $permissionTaskPublish
  20 + - eq:
  21 + - content.data.msg
  22 + - 获取用户信息
@@ -14,4 +14,4 @@ testcases: @@ -14,4 +14,4 @@ testcases:
14 # testcase: testcases/task/member/member_set_permission_testcases.yml 14 # testcase: testcases/task/member/member_set_permission_testcases.yml
15 15
16 - name: 测试流程 16 - name: 测试流程
17 - testcase: testcases/userInfo/PF001.yml  
  17 + testcase: testcases/firstpage/FS002.yml