Commit e9e6838a authored by xiao-hesheng's avatar xiao-hesheng
Browse files

数据库验证流程十脚本编写

parent cd7438d8
...@@ -218,15 +218,15 @@ def BuyCarSubmit(): ...@@ -218,15 +218,15 @@ def BuyCarSubmit():
# 创建领车交易================================================= # 创建领车交易=================================================
url = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module, url = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module,
"herpService_buy_createBuyBill_url") "herpService_buy_createBuyBill_url")
print('创建领车交易=================', url) print('创建领车交易=================', url)
billExpdtDate = timeUtils().get_time_add(30, 2) billExpdtDate = timeUtils().get_time_add(30, 2)
request_body = commonFuc().get_business_data(module, "payload44", billExpdtDate, get_branch_id(), list_id[0], request_body = commonFuc().get_business_data(module, "payload44", billExpdtDate, get_branch_id(), list_id[0],
list_id[1], list_id[2]) list_id[1], list_id[2])
print('创建领车交易', 'request_body', request_body) print('创建领车交易', 'request_body', request_body)
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('创建领车交易,result', result) print('创建领车交易,result', result)
currentTaskList = commonFuc().analysis_json('currentTaskList', commonFuc().analysis_json('data', result)) currentTaskList = commonFuc().analysis_json('currentTaskList', commonFuc().analysis_json('data', result))
...@@ -440,7 +440,7 @@ def order_dp(type=1): ...@@ -440,7 +440,7 @@ def order_dp(type=1):
# 发送请求 # 发送请求
while True: while True:
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('result', result) print('待确认列表查询result', result)
# 断言 # 断言
code = commonFuc().analysis_json('code', result) code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result) data = commonFuc().analysis_json('data', result)
...@@ -588,7 +588,7 @@ def order_dp(type=1): ...@@ -588,7 +588,7 @@ def order_dp(type=1):
print('request_body', request_body) print('request_body', request_body)
# 发送请求 # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('result', result) print('配送提交result', result)
# 断言 # 断言
code = commonFuc().analysis_json('code', result) code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result) data = commonFuc().analysis_json('data', result)
...@@ -835,7 +835,7 @@ def main(): ...@@ -835,7 +835,7 @@ def main():
# 从下面开始,上面的暂时注释 # 从下面开始,上面的暂时注释
goods_move2() # 设置产品出库渠道为直送 goods_move2() # 设置产品出库渠道为直送
updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库 updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库
for i in range(6): for i in range(1):
# # 低值 # # 低值
second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1) second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1)
# # 高值 # # 高值
...@@ -847,8 +847,11 @@ def main(): ...@@ -847,8 +847,11 @@ def main():
approval_center() approval_center()
# 采购模块处理 # 采购模块处理
purchase_module_process() purchase_module_process()
for i in range(3): # 三个单据共审批3次 # 三个单据共审批3次
approval_center() approval_center(FileUtils().r_info8('b5_spd3_core_business_flow', '采购计划单号试剂', 'message12'))
approval_center(FileUtils().r_info8('b5_spd3_core_business_flow', '采购计划单号', 'message7'))
approval_center(FileUtils().r_info8('b5_spd3_core_business_flow', '采购计划单号高值', 'message11'))
order_dp(1) # 1低值 order_dp(1) # 1低值
order_dp(2) # 2高值 order_dp(2) # 2高值
order_dp(3) # 3试剂 order_dp(3) # 3试剂
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment