Commit 9e578658 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程九脚本编写

parent adf96a75
...@@ -263,10 +263,10 @@ def grants_user(orgName='d69a68df361a4289b2262e4ef75b55a5', mgrRangeId='feb0cc16 ...@@ -263,10 +263,10 @@ def grants_user(orgName='d69a68df361a4289b2262e4ef75b55a5', mgrRangeId='feb0cc16
commonFuc().check_text_exist('error', result) commonFuc().check_text_exist('error', result)
def test3(): def test3():
# 院区新增 # 院区新增
branch_add() # 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")
# 一键导入所有产品 # 一键导入所有产品
execute_command("python runner_test.py tag id2263-48 debug sit") execute_command("python runner_test.py tag id2263-48 debug sit")
# 导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来 # 导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来
...@@ -299,19 +299,12 @@ try: ...@@ -299,19 +299,12 @@ try:
# delData().Del_reporter_data() # 删除报表数据 # delData().Del_reporter_data() # 删除报表数据
#==============删除业务数据和报表数据 #==============删除业务数据和报表数据
# test1() # 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')
# print(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')
......
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