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
55e9bd53
Commit
55e9bd53
authored
Mar 05, 2024
by
xiao-hesheng
Browse files
调整产品导入脚本
parent
182b5b4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/a4_mdm3_cm/a1供货关系申请_客户类型_医院_登录_医院登录获取医院id.air/a1供货关系申请_客户类型_医院_登录_医院登录获取医院id.py
View file @
55e9bd53
...
@@ -38,12 +38,12 @@ def h_login():
...
@@ -38,12 +38,12 @@ def h_login():
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
print
(
username
,
password
,
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
print
(
username
,
password
,
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
# 获取token和projectCode
# 获取token和projectCode
import
time
while
True
:
while
True
:
import
time
time
.
sleep
(
6
)
try
:
try
:
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
except
:
except
:
time
.
sleep
(
6
)
continue
continue
else
:
else
:
return
token
,
projectCode
,
uxid
,
corpId
,
h_name
return
token
,
projectCode
,
uxid
,
corpId
,
h_name
...
...
air_case/a4_mdm3_cm/a2供货关系申请_客户类型_医院_登录_企业登录.air/a2供货关系申请_客户类型_医院_登录_企业登录.py
View file @
55e9bd53
...
@@ -34,12 +34,12 @@ def e_login():
...
@@ -34,12 +34,12 @@ def e_login():
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
print
(
username
,
password
)
print
(
username
,
password
)
# 获取token和projectCode
# 获取token和projectCode
import
time
while
True
:
while
True
:
import
time
time
.
sleep
(
6
)
try
:
try
:
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
except
:
except
:
time
.
sleep
(
6
)
continue
continue
else
:
else
:
return
token
,
projectCode
,
uxid
,
corpId
,
username
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