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
90461e6d
Commit
90461e6d
authored
Nov 13, 2024
by
xiao-hesheng
Browse files
流程一脚本提交
parent
5e52921e
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
View file @
90461e6d
...
@@ -119,6 +119,7 @@ def import_goods(hosGoodsId):
...
@@ -119,6 +119,7 @@ def import_goods(hosGoodsId):
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# 获取院区id
# 获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
hosGoodsId
=
hosGoodsId
.
replace
(
'h0347'
,
''
)
while
True
:
while
True
:
# #请求体
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload33_1"
,
branch_id
,
hosGoodsId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload33_1"
,
branch_id
,
hosGoodsId
)
...
@@ -126,7 +127,8 @@ def import_goods(hosGoodsId):
...
@@ -126,7 +127,8 @@ def import_goods(hosGoodsId):
# # # 发送请求
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
print
(
'result'
,
result
)
total
=
commonFuc
().
analysis_json
(
'total'
,
result
)
data
=
commonFuc
().
analysis_json
(
'total'
,
result
)
total
=
commonFuc
().
analysis_json
(
'total'
,
data
)
if
total
==
0
:
if
total
==
0
:
continue
continue
else
:
else
:
...
...
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