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
1846ead7
Commit
1846ead7
authored
Jul 18, 2024
by
xiao-hesheng
Browse files
数据库验证流程十一脚本编写
parent
1b41fa58
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 @
1846ead7
...
...
@@ -1433,6 +1433,14 @@ def check_hdi_distr_detail(distr_main_key, type, purchase_id):
print
(
'error'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
def
check_mcms_check
(
type
=
1
):
print
(
'检查验收单数据库写值'
)
check_no
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'验收单号'
,
'message15'
)
sql
=
"select * from mcms_check where id = '%s';"
%
check_no
# 获取实际值
actual
=
check_mcms_pur_plan_sql
(
sql
)
print
(
'actual'
,
actual
)
try
:
pro_path
=
commonFuc
().
get_pro_path2
()
...
...
@@ -1494,11 +1502,15 @@ try:
# order_dp(1) # 1低值
# order_dp(2) # 2高值
# order_dp(3) # 3试剂
# list_data = ['16', '20', '66']
# for i in list_data:
# check_hdi_distr(int(i))
# 上面暂时注释=========================================
list_data
=
[
'16'
,
'20'
,
'66'
]
for
i
in
list_data
:
check_hdi_distr
(
int
(
i
))
check_accept_order
(
1
)
# 低值
check_mcms_check
(
1
)
#调用函数检查验收单写值
check_accept_order
(
2
)
# 高值
check_accept_order
(
3
)
# 试剂
second_dept_one_key_in
()
...
...
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