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
a7926a09
Commit
a7926a09
authored
Apr 19, 2024
by
xiao-hesheng
Browse files
优化脚本
parent
1a312b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a2_流程二供货关系申请提交审批.air/a_a2_流程二供货关系申请提交审批.py
View file @
a7926a09
...
...
@@ -75,11 +75,17 @@ def e_login(type=1):
print
(
username
,
password
)
# 获取token和projectCode
import
time
i
=
1
while
True
:
if
i
==
1000
:
print
(
'6000秒过去了,新注册的企业还未登录,检查同步是否正常'
)
break
try
:
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
except
:
print
(
'新注册的企业登录失败,等待6秒'
)
time
.
sleep
(
6
)
i
=
i
+
1
continue
else
:
return
token
,
projectCode
,
uxid
,
corpId
,
username
...
...
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