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

流程十脚本编写

parent 53bfe0c3
...@@ -59,4 +59,4 @@ def test1(orgName='d69a68df361a4289b2262e4ef75b55a5',mgrRangeId='feb0cc16618c437 ...@@ -59,4 +59,4 @@ def test1(orgName='d69a68df361a4289b2262e4ef75b55a5',mgrRangeId='feb0cc16618c437
commonFuc().check_text_exist('error', result) commonFuc().check_text_exist('error', result)
test1() test1()
#删除用户 #删除用户
# delData().Delete_user() delData().Delete_user()
\ No newline at end of file \ No newline at end of file
...@@ -7,7 +7,7 @@ from common.run_cmd_script import execute_command ...@@ -7,7 +7,7 @@ from common.run_cmd_script import execute_command
__author__ = "xiaohesheng" __author__ = "xiaohesheng"
""" """
case_tag:api,spd_core1,a_a4_流程四_基础模块设置,id2302,id2302-4,sit,on case_tag:api,spd_core,a_a4_流程四_基础模块设置,id2302,id2302-4,sit,on
主数据平台:a_a4_流程四_基础模块设置 主数据平台:a_a4_流程四_基础模块设置
python runner_test.py tag id2302-4 debug mdm3 python runner_test.py tag id2302-4 debug mdm3
...@@ -22,13 +22,9 @@ import time ...@@ -22,13 +22,9 @@ import time
module = "b5_spd3_core_business_flow" module = "b5_spd3_core_business_flow"
def test1(type=1): def test1():
delData().Delete_user()#删除用户
# 院区新增 # 院区新增
if type==1: execute_command("python runner_test.py tag id2263-4 debug sit")
execute_command("python runner_test.py tag id2263-4 debug sit")
elif type==2:
branch_add()
# 新增科室 # 新增科室
execute_command( execute_command(
"python runner_test.py tag id2263-19,id2263-20,id2263-21,id2263-22,id2263-23,id2263-24,id2263-25,id2263-26 debug sit") "python runner_test.py tag id2263-19,id2263-20,id2263-21,id2263-22,id2263-23,id2263-24,id2263-25,id2263-26 debug sit")
...@@ -265,58 +261,17 @@ def grants_user(orgName='d69a68df361a4289b2262e4ef75b55a5', mgrRangeId='feb0cc16 ...@@ -265,58 +261,17 @@ def grants_user(orgName='d69a68df361a4289b2262e4ef75b55a5', mgrRangeId='feb0cc16
commonFuc().check_text_exist(0, result) commonFuc().check_text_exist(0, result)
else: else:
commonFuc().check_text_exist('error', result) commonFuc().check_text_exist('error', result)
def test3():
# delData().Delete_probeInfo()
# 院区新增
# branch_add()
# 新增科室
# execute_command(
# "python runner_test.py tag id2263-19,id2263-20,id2263-21,id2263-22,id2263-23,id2263-24,id2263-25,id2263-26 debug sit")
execute_command(
"python runner_test.py tag d2263-24 debug sit")
# 一键导入所有产品
execute_command("python runner_test.py tag id2263-48 debug sit")
# 导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来
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库房管理_库区设置_同步库房信息
execute_command("python runner_test.py tag id2263-221 debug sit")
# # 新增用户
# execute_command("python runner_test.py tag id2263-253 debug sit")
# # 根据院区名称查询中心库房id
execute_command("python runner_test.py tag id2263-222 debug sit")
# # 新增库区
execute_command("python runner_test.py tag id2263-226 debug sit")
# # 查询库区
execute_command("python runner_test.py tag id2263-228 debug sit")
# # r_d0库房管理_库区设置_人员管理_添加人员_查询人员
execute_command("python runner_test.py tag id2263-233 debug sit")
# # r_d2库房管理_库区设置_人员管理_添加人员
# execute_command("python runner_test.py tag id2263-235 debug sit")
# # r_d4库房管理_库区设置_货位管理_添加货位
execute_command("python runner_test.py tag id2263-237 debug sit")
# # 科室管理-科室人员查询 设置科室负责人
execute_command("python runner_test.py tag id2263-219 debug sit")
try: try:
# ==============删除业务数据和报表数据 # ==============删除业务数据和报表数据
# delData().Delete_business_Data()#删除业务数据 # delData().Delete_business_Data()#删除业务数据
# delData().Del_reporter_data() # 删除报表数据 # delData().Del_reporter_data() # 删除报表数据
#==============删除业务数据和报表数据 #==============删除业务数据和报表数据
test1(2) test1()
# test3()
test2()# 科室添加产品信息(产品是从外网同步过来的) test2()# 科室添加产品信息(产品是从外网同步过来的)
dept_query_all()# 科室查询,将科室id写入文件中 dept_query_all()# 科室查询,将科室id写入文件中
grants_user()#给用户授权 grants_user()#给用户授权
# delData().Delete_branch_by_id()#删除院区数据 # delData().Delete_branch_by_id()#删除院区数据
# flag=commonFuc().get_business_data(module,'flag')
# if flag=="True":
# test3()
# test2() # 科室添加产品信息(产品是从外网同步过来的)
# dept_query_all() # 科室查询,将科室id写入文件中
# grants_user() # 给用户授权
commonFuc().check_text_exist_result_text('succees', 'succees') commonFuc().check_text_exist_result_text('succees', 'succees')
except Exception as e: except Exception as e:
commonFuc().check_text_exist_result_text('succees','error') commonFuc().check_text_exist_result_text('succees','error')
......
...@@ -447,5 +447,6 @@ class delData(object): ...@@ -447,5 +447,6 @@ class delData(object):
# delData().Delete_user() # delData().Delete_user()
# delData().Del_goods_info(i) # delData().Del_goods_info(i)
# delData().Del_supply_relation() # delData().Del_supply_relation()
# delData().Del_reporter_data()
# delData().Delete_business_Data() # delData().Delete_business_Data()
# delData().Del_reporter_data()
\ No newline at end of file
...@@ -96,6 +96,8 @@ if __name__ == '__main__': ...@@ -96,6 +96,8 @@ if __name__ == '__main__':
#删除自动化脚本产生的数据 #删除自动化脚本产生的数据
delData().Delete_branch_by_id() delData().Delete_branch_by_id()
delData().Delete_goods_change_info() delData().Delete_goods_change_info()
# delData().Delete_probeInfo_other() delData().Delete_probeInfo_other()
delData().Del_supply_relation() delData().Del_supply_relation()
delData().Delete_business_Data()
delData().Del_reporter_data()
print('结束了') print('结束了')
\ No newline at end of file
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