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
b7e71e92
Commit
b7e71e92
authored
Nov 13, 2024
by
xiao-hesheng
Browse files
流程一脚本提交
parent
341aca50
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
View file @
b7e71e92
...
...
@@ -68,10 +68,13 @@ def test1(type=1):
#导入同步过来的新产品,防止因同步时间差导致新建的产品没有导入过来
for
i
in
range
(
1
,
6
):
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"产品审核信息"
,
'message%s'
%
i
)
hosGoodsId
=
info
[
'hosGoodsId'
]
import_goods
(
hosGoodsId
)
break
for
i
in
range
(
1
,
6
):
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"产品审核信息"
,
'message%s'
%
i
)
hosGoodsId
=
info
[
'hosGoodsId'
]
...
...
@@ -116,12 +119,19 @@ def import_goods(hosGoodsId):
# 获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload35"
,
hosGoodsId
,
branch_id
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'导入新增的产品result'
,
result
)
while
True
:
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload35"
,
hosGoodsId
,
branch_id
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'导入新增的产品result'
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
if
code
==
1004
:
continue
elif
code
==
0
:
break
def
check_import_goods
(
hosGoodsId
):
module
=
"b2_herp3_bs"
...
...
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