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
29de8abd
Commit
29de8abd
authored
Sep 13, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
24dccb45
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_a5流程五_中心库入库结算_正结算1_提交采购计划_数据库验证.air/a_a5流程五_中心库入库结算_正结算1_提交采购计划_数据库验证.py
View file @
29de8abd
This diff is collapsed.
Click to expand it.
air_case/b6_spd3_core_business_flow_database_check/a_b1流程八_高值跟台业务流程_数据库验证.air/a_b1流程八_高值跟台业务流程_数据库验证.py
View file @
29de8abd
...
@@ -616,8 +616,8 @@ def check_hdi_distr_detail(distr_main_key, type):
...
@@ -616,8 +616,8 @@ def check_hdi_distr_detail(distr_main_key, type):
operationNoticeBillId
=
source_id
operationNoticeBillId
=
source_id
operationNoticeBillDetailId
=
source_detail_id
operationNoticeBillDetailId
=
source_detail_id
operationApplyBillDetailId
=
get_id
(
operationApplyBillDetailId
=
get_id
(
"select id from spd3_herp_test2.mcms_operation_apply where
branch
_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
branch
_id
)
"select id from spd3_herp_test2.mcms_operation_apply
_list
where
hos_goods
_id='%s' order by CREATE_TIME desc LIMIT 1;"
%
hos_goods
_id
)
operationApplyBillDetailId
=
operationApplyBillDetailId
.
replace
(
"O"
,
""
)
#
operationApplyBillDetailId = operationApplyBillDetailId.replace("O", "")
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'hdi_distr_detail_0911'
,
distr_detail_main_key
,
distr_main_key
,
source_id
,
'hdi_distr_detail_0911'
,
distr_detail_main_key
,
distr_main_key
,
source_id
,
source_detail_id
,
pur_detail_id
source_detail_id
,
pur_detail_id
...
@@ -2244,49 +2244,49 @@ using(pro_path + r'//air_case/b5_spd3_core_business_flow/a_b1流程八_高值跟
...
@@ -2244,49 +2244,49 @@ using(pro_path + r'//air_case/b5_spd3_core_business_flow/a_b1流程八_高值跟
from
a_b1流程八_高值跟台业务流程
import
dept2_set
,
operationApply
,
second_dept_in_warehouse
,
out_return_gt
from
a_b1流程八_高值跟台业务流程
import
dept2_set
,
operationApply
,
second_dept_in_warehouse
,
out_return_gt
try
:
try
:
#
dept2_set()
dept2_set
()
# # # #
#
设置默认科室,切换到二级科室,使用科室管理功能
# # # # 设置默认科室,切换到二级科室,使用科室管理功能
#
updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# 设置登录账号默认权限是二级库
#
herpService_mcmsDeptGoodsInfo_getByProvIdPage()
herpService_mcmsDeptGoodsInfo_getByProvIdPage
()
#
time.sleep(6)
time
.
sleep
(
6
)
#
operationApply() # 手术跟台申请单提交
operationApply
()
# 手术跟台申请单提交
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_mcms_operation_apply()# 手术跟台申请单数据库检查
check_mcms_operation_apply
()
# 手术跟台申请单数据库检查
#
approval_center() # 二级科室审批审批手术跟台申请单
approval_center
()
# 二级科室审批审批手术跟台申请单
#
updateUserLoginDefaultRange(get_listUserMgrRangePage(1)) # 设置登录账号默认权限是中心库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
1
))
# 设置登录账号默认权限是中心库
#
approval_center1() # 中心库再次审批手术跟台申请单
approval_center1
()
# 中心库再次审批手术跟台申请单
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_mcms_operation_apply_approval_after() # 手术跟台申请单审批后的数据库检查
check_mcms_operation_apply_approval_after
()
# 手术跟台申请单审批后的数据库检查
#
#
#内网查询手术通知单号
# #内网查询手术通知单号
#
updateUserLoginDefaultRange(get_listUserMgrRangePage(1)) # 设置登录账号默认权限是中心库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
1
))
# 设置登录账号默认权限是中心库
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_mcms_operation_notice()# 手术通知单数据库检查
check_mcms_operation_notice
()
# 手术通知单数据库检查
#
time.sleep(6)
time
.
sleep
(
6
)
#
orderno = Search_OrderNO() # 手术通知单接口查询单号
orderno
=
Search_OrderNO
()
# 手术通知单接口查询单号
#
height_value_order_dp(orderno) # 高值跟台外网配送
height_value_order_dp
(
orderno
)
# 高值跟台外网配送
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_hdi_distr() # 外网配送单数据库检查
check_hdi_distr
()
# 外网配送单数据库检查
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_accept_order() # 内网验收
check_accept_order
()
# 内网验收
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_mcms_check(2)#高值跟台验收检查验收表数据
check_mcms_check
(
2
)
#高值跟台验收检查验收表数据
#
#这里验收后会自动生成出入库单,批次信息,需要同步验证入库单和批次信息
#这里验收后会自动生成出入库单,批次信息,需要同步验证入库单和批次信息
#
check_mcms_psi(2) # 调用函数检查中心库入库单和出库单数据库写值
check_mcms_psi
(
2
)
# 调用函数检查中心库入库单和出库单数据库写值
#
#
检查批次信息
# 检查批次信息
#
check_mcms_hos_batch(2)
check_mcms_hos_batch
(
2
)
#
updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# 设置登录账号默认权限是二级库
#
second_dept_in_warehouse() # 二级科室入库
second_dept_in_warehouse
()
# 二级科室入库
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_mcms_psi_dept_in() # 检查二级库入库单数据库表数据
check_mcms_psi_dept_in
()
# 检查二级库入库单数据库表数据
#
updateUserLoginDefaultRange(get_listUserMgrRangePage(1)) # 设置登录账号默认权限是中心库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
1
))
# 设置登录账号默认权限是中心库
#
out_return_gt() # 跟台退货出库_中心库处理
out_return_gt
()
# 跟台退货出库_中心库处理
#
time.sleep(6)
time
.
sleep
(
6
)
#
#这里的业务会产生二级库消耗出库和消耗退货入库单据,和二级库出库数据
#这里的业务会产生二级库消耗出库和消耗退货入库单据,和二级库出库数据
#
check_mcms_psi_dept_XH_CK()
check_mcms_psi_dept_XH_CK
()
#
time.sleep(6)
time
.
sleep
(
6
)
#
check_mcms_psi_dept_out()# 检查二级库退库出库单数据库表数据
check_mcms_psi_dept_out
()
# 检查二级库退库出库单数据库表数据
#
#
检查中心库出库单
# 检查中心库出库单
#
time.sleep(2)
time
.
sleep
(
2
)
check_mcms_psi_out
()
check_mcms_psi_out
()
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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