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
8c00112f
Commit
8c00112f
authored
Jul 15, 2024
by
xiao-hesheng
Browse files
数据库验证流程十一脚本编写
parent
f57d58c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_b4流程十一请领业务流_二级库向直送_数据库验证.air/a_b4流程十一请领业务流_二级库向直送_数据库验证.py
View file @
8c00112f
...
@@ -519,22 +519,39 @@ def check_mcms_mcms_pur_plan(type=16):
...
@@ -519,22 +519,39 @@ def check_mcms_mcms_pur_plan(type=16):
last_modified_user
=
create_user
last_modified_user
=
create_user
if
type
==
16
:
if
type
==
16
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_
dept_buy_detail_approval_after
'
,
id2
,
PLAN_order_no
,
hos_id
,
'mcms_
pur_plan
'
,
id2
,
PLAN_order_no
,
hos_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
source_id
,
rec_user
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
source_id
,
rec_user
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
buyOrderNo
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
buyOrderNo
,
create_time
,
last_modified
,
last_modified_user
)
create_time
,
last_modified
,
last_modified_user
)
elif
type
==
20
:
elif
type
==
20
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_
dept_buy_detail_approval_after1'
,
detail_
id
,
id1
,
order_no
1
,
'mcms_
pur_plan'
,
id
2
,
PLAN_
order_no
,
hos_id
,
hos_goods_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
source_id
,
rec_user
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
pkg_def_name
,
create_user
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
buyOrderNo
,
create_time
,
last_modified
,
last_modified_user
)
create_time
,
last_modified
,
last_modified_user
)
else
:
else
:
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
expected
=
commonFuc
().
get_business_data
(
'b6_spd3_core_business_flow_database_check'
,
'mcms_
dept_buy_detail_approval_after2'
,
detail_
id
,
id1
,
order_no
1
,
'mcms_
pur_plan'
,
id
2
,
PLAN_
order_no
,
hos_id
,
hos_goods_id
,
get_branch_id
(),
dept_id1
,
dept_name1
,
rec_org_id
,
rec_org_name
,
area_code
,
area_name
,
source_id
,
rec_user
,
mdm_goods_code
,
goods_code
,
pkg_def_id
,
pkg_def_name
,
create_user
,
rec_addr
,
bill_expdt_date
,
buyBillId
,
planBillId
,
buyOrderNo
,
create_time
,
last_modified
,
last_modified_user
)
create_time
,
last_modified
,
last_modified_user
)
actual_value1
=
get_process_list2
(
actual
)
expected_value1
=
get_process_list2
(
expected
)
actual_value2
=
actual_value1
.
replace
(
" "
,
""
)
expected_value2
=
expected_value1
.
replace
(
" "
,
""
)
# print('actual_value2',actual_value2)
print
(
'expected_value2'
)
print
(
expected_value2
)
print
(
'actual_value2'
)
print
(
actual_value2
)
result
=
(
compare_text_index
(
actual_value2
,
expected_value2
))
print
(
'result'
,
result
)
if
actual_value2
==
expected_value2
:
print
(
'ok'
)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
else
:
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
try
:
try
:
# add_dept2() # 新增一个二级科室
# add_dept2() # 新增一个二级科室
# add_new_deptinfo() # 写入科室信息到文件中
# add_new_deptinfo() # 写入科室信息到文件中
...
...
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