Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
9e578658
Commit
9e578658
authored
May 22, 2024
by
xiao-hesheng
Browse files
流程九脚本编写
parent
adf96a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
View file @
9e578658
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment