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
45bed705
Commit
45bed705
authored
Jun 24, 2024
by
xiao-hesheng
Browse files
流程十四脚本编写
parent
86e4596a
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/demo/产品检查.air/产品检查.py
View file @
45bed705
...
@@ -19,11 +19,11 @@ import sys
...
@@ -19,11 +19,11 @@ import sys
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
actual_value
=
delData
().
check_goods_info
(
hos_goods_id
)
actual_value
=
delData
().
check_goods_info
(
hos_goods_id
)
print
(
'actual_value'
,
actual_value
)
print
(
'actual_value'
,
actual_value
)
# expected_value=commonFuc().get_business_data('b5_spd3_core_business_flow','expected_value')
expected_value
=
commonFuc
().
get_business_data
(
'b5_spd3_core_business_flow'
,
'expected_value'
)
# print('expected_value',expected_value)
print
(
'expected_value'
,
expected_value
)
# if actual_value==expected_value:
if
actual_value
==
expected_value
:
# print('ok')
print
(
'ok'
)
# commonFuc().check_text_exist_result_text('succees', 'succees')
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
# else:
else
:
# print('error')
print
(
'error'
)
# commonFuc().check_text_exist_result_text('error', 'succees')
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
\ No newline at end of file
\ No newline at end of file
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