Commit 643cdf6c authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent 2746f191
...@@ -27,7 +27,7 @@ class CmdcDoLogin(): ...@@ -27,7 +27,7 @@ class CmdcDoLogin():
uuid_handle = uuid.uuid4() uuid_handle = uuid.uuid4()
# 获取验证码报文 # 获取验证码报文
param = {"uuid": uuid_handle} param = {"uuid": uuid_handle}
# 获取多彩商城登录页面获取验证码地址 # 获取登录页面获取验证码地址
code_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "getVerifyCode_url") code_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "getVerifyCode_url")
# code_url = "https://service-slb.cmic.com.cn/sso/getVerifyCode" # code_url = "https://service-slb.cmic.com.cn/sso/getVerifyCode"
# 发送请求获取验证码 # 发送请求获取验证码
...@@ -40,7 +40,7 @@ class CmdcDoLogin(): ...@@ -40,7 +40,7 @@ class CmdcDoLogin():
code_path = BASE_DIR + "/多采商城登录.air/verifycode.png" code_path = BASE_DIR + "/多采商城登录.air/verifycode.png"
# 识别并获取验证码 # 识别并获取验证码
code = VerificationCodeOcr(code_path, "rainbow123", "rainbow123").base64_api() code = VerificationCodeOcr(code_path, "rainbow123", "rainbow123").base64_api()
# 获取多彩商城登录地址 # 获取登录地址
cmdc_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "do_login_url") cmdc_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "do_login_url")
# cmdc_url = "https://service-slb.cmic.com.cn/sso/mallLogin" # cmdc_url = "https://service-slb.cmic.com.cn/sso/mallLogin"
# 组装请求报文 # 组装请求报文
......
...@@ -30,7 +30,7 @@ class CmdcDoLogin(): ...@@ -30,7 +30,7 @@ class CmdcDoLogin():
uuid_handle = uuid.uuid4() uuid_handle = uuid.uuid4()
# 获取验证码报文 # 获取验证码报文
param = {"uuid": uuid_handle} param = {"uuid": uuid_handle}
# 获取多彩商城登录页面获取验证码地址 # 获取登录页面获取验证码地址
code_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "getVerifyCode_url") code_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "getVerifyCode_url")
# code_url = "https://service-slb.cmic.com.cn/sso/getVerifyCode" # code_url = "https://service-slb.cmic.com.cn/sso/getVerifyCode"
# 发送请求获取验证码 # 发送请求获取验证码
...@@ -44,7 +44,7 @@ class CmdcDoLogin(): ...@@ -44,7 +44,7 @@ class CmdcDoLogin():
f.write(result.content) f.write(result.content)
# 识别并获取验证码 # 识别并获取验证码
code = VerificationCodeOcr(code_path, "rainbow123","rainbow123").base64_api() code = VerificationCodeOcr(code_path, "rainbow123","rainbow123").base64_api()
# 获取多彩商城登录地址 # 获取登录地址
cmdc_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "do_login_url") cmdc_url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "do_login_url")
# cmdc_url = "https://service-slb.cmic.com.cn/sso/doLogin" # cmdc_url = "https://service-slb.cmic.com.cn/sso/doLogin"
md = hashlib.md5(self.password.encode()) # 创建md5对象 md = hashlib.md5(self.password.encode()) # 创建md5对象
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment