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

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

parent 90f54f9e
......@@ -421,7 +421,7 @@ def goods_move3(): # 设置请领出库渠道为中心库
def SERACH_goods_id(GoodsId):
# 在请领出库渠道边仓中搜索产品
# 在请领出库渠道直送中搜索产品
module = 'b5_spd3_core_business_flow'
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info = FileUtils().r_info8('b2_herp3_bs', "用户名信息", 'message3')
......@@ -440,7 +440,7 @@ def SERACH_goods_id(GoodsId):
dept1 = FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid1']
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId']
# GoodsId = hosGoodsId.replace(get_hosid(), '')
request_body = commonFuc().get_business_data(module, "payload53_2", GoodsId, get_hosid(), get_branch_id(), dept1)
request_body = commonFuc().get_business_data(module, "payload53_3", GoodsId, get_hosid(), get_branch_id(), dept1)
result = commonFuc().http_post(url, request_body, headers)
branchGoodsId = commonFuc().analysis_json('id', commonFuc().analysis_json('data', commonFuc().analysis_json('data',
result)))
......
......@@ -299,6 +299,7 @@ json_headers2: {
"payload53": {"queryObject":{"goodsName":"%s","goodsMfrsName":"","purModes":[],"hosId":"%s","branchId":"%s","goodsSpec":"","importGrantRule":2,"deptId":"%s"},"pageNum":1,"pageSize":50}
"payload53_2": {"queryObject":{"goodsName":"%s","goodsMfrsName":"","purModes":[],"hosId":"%s","branchId":"%s","grantRule":2,"goodsSpec":"","deptId":"%s"},"pageNum":1,"pageSize":50}
"payload53_3": {"queryObject":{"goodsName":"%s","goodsMfrsName":"","purModes":[],"hosId":"%s","branchId":"%s","grantRule":3,"goodsSpec":"","deptId":"%s"},"pageNum":1,"pageSize":50}
"payload54": {"logicInfo":{"logicName":"自动化测试12345","simpleName":"自动","stockId":"ST2023122800001","hosId":"%s","mgrMode":"0","purBranchId":"%s","leader":"自动化测试","phone":"自动化测试","tbStatus":1,"delFlag":0,"branchIds":["%s"],"createUser":"%s","lastModifiedUser":"%s"},"mgrRange":{"userId":"%s","corpId":"%s","mgrRangeName":"自动化测试12345","mgrRangeKind":2,"defaultFlag":1,"projectCode":"warehouse","createUser":"%s","lastModifiedUser":"%s","extStr1":"3.0实体仓"}}
"payload55": {"orderBy":"mdb.order_no asc","pageNum":1,"pageSize":50,"queryObject":{"permission":true,"deptId":"","orderNo":"","branchId":"%s","goodsName":"","startDate":"","endDate":"","queryFlag":true}}
......
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