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-cmdc
Commits
643cdf6c
Commit
643cdf6c
authored
Dec 18, 2023
by
liguangyu06
Browse files
用例优化
parent
2746f191
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_login/后台管理系统登录.air/后台管理系统登录.py
View file @
643cdf6c
...
...
@@ -27,7 +27,7 @@ class CmdcDoLogin():
uuid_handle
=
uuid
.
uuid4
()
# 获取验证码报文
param
=
{
"uuid"
:
uuid_handle
}
# 获取
多彩商城
登录页面获取验证码地址
# 获取登录页面获取验证码地址
code_url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"getVerifyCode_url"
)
# code_url = "https://service-slb.cmic.com.cn/sso/getVerifyCode"
# 发送请求获取验证码
...
...
@@ -40,7 +40,7 @@ class CmdcDoLogin():
code_path
=
BASE_DIR
+
"/多采商城登录.air/verifycode.png"
# 识别并获取验证码
code
=
VerificationCodeOcr
(
code_path
,
"rainbow123"
,
"rainbow123"
).
base64_api
()
# 获取
多彩商城
登录地址
# 获取登录地址
cmdc_url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"do_login_url"
)
# cmdc_url = "https://service-slb.cmic.com.cn/sso/mallLogin"
# 组装请求报文
...
...
air_case/cmdc_login/后台管理系统登录/后台管理系统登录.py
View file @
643cdf6c
...
...
@@ -30,7 +30,7 @@ class CmdcDoLogin():
uuid_handle
=
uuid
.
uuid4
()
# 获取验证码报文
param
=
{
"uuid"
:
uuid_handle
}
# 获取
多彩商城
登录页面获取验证码地址
# 获取登录页面获取验证码地址
code_url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"getVerifyCode_url"
)
# code_url = "https://service-slb.cmic.com.cn/sso/getVerifyCode"
# 发送请求获取验证码
...
...
@@ -44,7 +44,7 @@ class CmdcDoLogin():
f
.
write
(
result
.
content
)
# 识别并获取验证码
code
=
VerificationCodeOcr
(
code_path
,
"rainbow123"
,
"rainbow123"
).
base64_api
()
# 获取
多彩商城
登录地址
# 获取登录地址
cmdc_url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"do_login_url"
)
# cmdc_url = "https://service-slb.cmic.com.cn/sso/doLogin"
md
=
hashlib
.
md5
(
self
.
password
.
encode
())
# 创建md5对象
...
...
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