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
0f20f91e
Commit
0f20f91e
authored
Mar 13, 2024
by
xiao-hesheng
Browse files
新增采购计划模块脚本
parent
c8a60207
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/e7_一键导入产品_无中心库.air/e7_一键导入产品_无中心库.py
View file @
0f20f91e
...
...
@@ -49,7 +49,15 @@ def branch_goods_add():
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
# #断言
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
checkDict
=
commonFuc
().
get_business_data
(
module
,
'checkDict14'
)
commonFuc
().
check_result
(
checkDict
,
result
)
# # total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
# checkDict=commonFuc().get_business_data(module,'checkDict14')
# commonFuc().check_result(checkDict,result)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
if
code
==
1100000
and
data
==
None
:
# checkDict=commonFuc().get_business_data(module,'checkDict7')
# commonFuc().check_result(checkDict,result)
commonFuc
().
check_text_exist
(
0
,
result
)
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
branch_goods_add
()
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