Commit 83c3fb73 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程七脚本编写

parent be01b5c1
...@@ -30,7 +30,11 @@ def test1(): ...@@ -30,7 +30,11 @@ def test1():
# 一键导入所有产品 # 一键导入所有产品
execute_command("python runner_test.py tag id2263-48 debug sit") execute_command("python runner_test.py tag id2263-48 debug sit")
#导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来 #导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来
import_goods() for i in range(1, 6):
info = FileUtils().r_info8('b5_spd3_core_business_flow', "产品审核信息", 'message%s' % i)
hosGoodsId = info['hosGoodsId']
import_goods(hosGoodsId)
# r_b8库房管理_库区设置_同步库房信息 # r_b8库房管理_库区设置_同步库房信息
execute_command("python runner_test.py tag id2263-221 debug sit") execute_command("python runner_test.py tag id2263-221 debug sit")
# 新增用户 # 新增用户
...@@ -50,7 +54,7 @@ def test1(): ...@@ -50,7 +54,7 @@ def test1():
# 科室管理-科室人员查询 设置科室负责人 # 科室管理-科室人员查询 设置科室负责人
execute_command("python runner_test.py tag id2263-219 debug sit") execute_command("python runner_test.py tag id2263-219 debug sit")
def import_goods(): def import_goods(hosGoodsId):
module = "b2_herp3_bs" module = "b2_herp3_bs"
# 内网登录 # 内网登录
username = commonFuc().get_business_data(module, "username") username = commonFuc().get_business_data(module, "username")
...@@ -68,7 +72,7 @@ def import_goods(): ...@@ -68,7 +72,7 @@ def import_goods():
commonFuc().get_business_data(module, "X-APP-CODE")) commonFuc().get_business_data(module, "X-APP-CODE"))
# 获取院区id # 获取院区id
branch_id = FileUtils().r_info(module, '院区新增')["branch_id"] branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
hosGoodsId = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"] # hosGoodsId = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"]
goodsId=hosGoodsId.replace("h0347", "") goodsId=hosGoodsId.replace("h0347", "")
# #请求体 # #请求体
request_body = commonFuc().get_business_data(module, "payload32_1",get_hosid(), goodsId,branch_id) request_body = commonFuc().get_business_data(module, "payload32_1",get_hosid(), goodsId,branch_id)
......
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