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
a2ad38f6
Commit
a2ad38f6
authored
Aug 07, 2024
by
xiao-hesheng
Browse files
流程十四脚本编写
parent
64b6212a
Changes
5
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b8流程十五退库业务_三级库向二级库退库_数据库验证.air/a_b8流程十五退库业务_三级库向二级库退库_数据库验证.py
View file @
a2ad38f6
...
...
@@ -432,5 +432,7 @@ try:
second_dept_one_key_in
(
2
)
second_dept_one_key_in
(
2
)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
except
Exception
as
e
:
# 打印错误信息
print
(
f
"发生错误:
{
e
}
"
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'SUCCESS'
)
air_case/b6_spd3_core_business_flow_database_check/a_b9流程十六退库业务_二级库向一级库退库_数据库验证.air/a_b9流程十六退库业务_二级库向一级库退库_数据库验证.py
View file @
a2ad38f6
...
...
@@ -569,5 +569,7 @@ try:
putaway
()
#中心库上架
# ===============上面调通了================================
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
except
Exception
as
e
:
# 打印错误信息
print
(
f
"发生错误:
{
e
}
"
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'SUCCESS'
)
\ No newline at end of file
air_case/b6_spd3_core_business_flow_database_check/a_c0流程十七退货业务 中心库退供应商_数据库验证.air/a_c0流程十七退货业务 中心库退供应商_数据库验证.py
View file @
a2ad38f6
...
...
@@ -633,5 +633,7 @@ try:
second_center_Stock_return_Out
(
1
)
#低值耗材退货出库
second_center_Stock_return_Out
(
3
)
#试剂耗材退货出库
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
except
Exception
as
e
:
# 打印错误信息
print
(
f
"发生错误:
{
e
}
"
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'SUCCESS'
)
\ No newline at end of file
air_case/b6_spd3_core_business_flow_database_check/a_c1流程十八中心库业务_拆包功能_数据库验证.air/a_c1流程十八中心库业务_拆包功能_数据库验证.py
View file @
a2ad38f6
...
...
@@ -369,5 +369,7 @@ try:
center_Stock_unpack
(
1
)
# 低值耗材扫码发放
center_Stock_unpack
(
3
)
# 试剂耗材扫码发放
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
except
Exception
as
e
:
# 打印错误信息
print
(
f
"发生错误:
{
e
}
"
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'SUCCESS'
)
main1/main_text.py
View file @
a2ad38f6
...
...
@@ -84,19 +84,19 @@ def main_text():
# sys.exit(0)
def
flow4
():
# execute_command("python runner_test.py tag id2302-4 debug mdm3")
#
from execute import flow4
#
flow4()
sys
.
path
.
append
(
pro_path
+
r
'/air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air'
)
using
(
pro_path
+
r
'//air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air'
)
from
a_a4_流程四_基础模块设置
import
test1
,
test2
,
dept_query_all
,
grants_user
,
set_dept_lead1
,
add_StockArea
,
recover_dataFile
test1
(
2
)
# 参数2是新增院区后缀为6位数的参数1是老模式
test2
()
# 科室添加产品信息(产品是从外网同步过来的)
dept_query_all
()
# 科室查询,将科室id写入文件中
grants_user
()
# 给用户授权
set_dept_lead1
()
# 设置一级科室负责人
add_StockArea
()
# 添加库区
recover_dataFile
()
#恢复备份的data目录
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
from
execute
import
flow4
flow4
()
#
sys.path.append(pro_path + r'/air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air')
#
using(pro_path + r'//air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air')
#
from a_a4_流程四_基础模块设置 import test1,test2,dept_query_all,grants_user,set_dept_lead1,add_StockArea,recover_dataFile
#
test1(2) # 参数2是新增院区后缀为6位数的参数1是老模式
#
test2() # 科室添加产品信息(产品是从外网同步过来的)
#
dept_query_all() # 科室查询,将科室id写入文件中
#
grants_user() # 给用户授权
#
set_dept_lead1() # 设置一级科室负责人
#
add_StockArea() # 添加库区
#
recover_dataFile()#恢复备份的data目录
#
commonFuc().check_text_exist_result_text('succees', 'succees')
print
(
'流程4执行完毕'
)
# sys.exit(0)
def
flow5
():
...
...
@@ -272,7 +272,7 @@ def main_text():
Button
(
root
,
text
=
'流程一
\n
外网企业注册审批'
,
width
=
16
,
height
=
8
,
command
=
flow1
).
grid
(
row
=
2
,
column
=
0
)
Button
(
root
,
text
=
'流程二
\n
供货关系申请审批'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow2
).
grid
(
row
=
2
,
column
=
2
)
Button
(
root
,
text
=
'流程三
\n
流程三_产品导
\n
入和审批'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow3
).
grid
(
row
=
2
,
column
=
4
)
Button
(
root
,
text
=
'流程
\n
内网基础模块设置'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow4
).
grid
(
row
=
2
,
column
=
6
)
Button
(
root
,
text
=
'流程
四
\n
内网基础模块设置'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow4
).
grid
(
row
=
2
,
column
=
6
)
Button
(
root
,
text
=
'流程五
\n
中心库入库正结算
\n
开票'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow5
).
grid
(
row
=
2
,
column
=
8
)
Button
(
root
,
text
=
'流程六
\n
中心库入库负结算'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow6
).
grid
(
row
=
2
,
column
=
10
)
Button
(
root
,
text
=
'流程七
\n
中心库入库正负结算'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow7
).
grid
(
row
=
3
,
column
=
0
)
...
...
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