Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
974cb76f
Commit
974cb76f
authored
1 year ago
by
xiao-hesheng
Browse files
Options
Download
Email Patches
Plain Diff
流程九脚本编写
parent
89fe9065
master
core_flow
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
+5
-5
...core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
with
5 additions
and
5 deletions
+5
-5
air_case/b5_spd3_core_business_flow/a_a4_流程四_基础模块设置.air/a_a4_流程四_基础模块设置.py
+
5
-
5
View file @
974cb76f
...
...
@@ -79,17 +79,17 @@ def import_goods(hosGoodsId):
print
(
'import_goods'
,
request_body
)
# # # 发送请求
result
=
'result'
j
=
1
#
j=1
while
True
:
if
j
==
600
:
print
(
'600秒过去了,导入产品需要停止'
)
break
#
if j==600:
#
print('600秒过去了,导入产品需要停止')
#
break
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
total
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
print
(
'import_goods'
,
total
)
if
total
==
0
:
print
(
'产品暂时没有同步到内网,等待6秒'
)
j
=
j
+
6
#
j=j+6
time
.
sleep
(
6
)
# 再次调用一键导入产品
execute_command
(
"python runner_test.py tag id2263-48 debug sit"
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets