Commit cce34923 authored by johnny.zhu's avatar johnny.zhu

111

parent ca01bf0d
...@@ -45,9 +45,9 @@ def sendVerificationCode(phone,templateType): ...@@ -45,9 +45,9 @@ def sendVerificationCode(phone,templateType):
smsToken = rd['smsToken'] smsToken = rd['smsToken']
# print(smsToken) # print(smsToken)
return smsToken return smsToken
# (smstoken) = sendVerificationCode("18021047680","REGISTER") # (smstoken) = sendVerificationCode("18021047612","REGISTER")
# print(smstoken) # print(smstoken)
# print(token)
def checkVerificationCode(phone,templateType): def checkVerificationCode(phone,templateType):
ip = gl.get_value('apiip') ip = gl.get_value('apiip')
......
...@@ -17,7 +17,6 @@ import config.config ...@@ -17,7 +17,6 @@ import config.config
import util.logger as ul import util.logger as ul
class TestcheckVerificationCode(unittest.TestCase): class TestcheckVerificationCode(unittest.TestCase):
def setUp(self): def setUp(self):
# 设置测试用例编号 # 设置测试用例编号
...@@ -36,7 +35,6 @@ class TestcheckVerificationCode(unittest.TestCase): ...@@ -36,7 +35,6 @@ class TestcheckVerificationCode(unittest.TestCase):
"smsToken" : self.smstoken "smsToken" : self.smstoken
} }
# 测试API请求头设置 # 测试API请求头设置
self.payloadHeader = { self.payloadHeader = {
'Content-Type': "application/json" 'Content-Type': "application/json"
......
...@@ -181,8 +181,8 @@ ...@@ -181,8 +181,8 @@
<div class='page-header'> <div class='page-header'>
<h1>自动化测试报告,测试结果如下:</h1> <h1>自动化测试报告,测试结果如下:</h1>
<p class='attribute'><strong>开始时间:</strong> 2019-08-29 18:16:11</p> <p class='attribute'><strong>开始时间:</strong> 2019-08-30 12:01:11</p>
<p class='attribute'><strong>运行时长:</strong> 0:00:12.891737</p> <p class='attribute'><strong>运行时长:</strong> 0:00:11.666668</p>
<p class='attribute'><strong>状态:</strong> 通过 30</p> <p class='attribute'><strong>状态:</strong> 通过 30</p>
</div> </div>
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt5.1')" > <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt5.1')" >
通过</a> 通过</a>
<div id='div_pt5.1' class="popup_window"> <div id='div_pt5.1' class="popup_window">
<pre>pt5.1: {'errCode': 0, 'errMsg': 'OK', 'data': {'bankToken': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZDRjZjRhOTM2MDI0YWY3MjlkZGY3ZTBjYzUzNjYyMjE3OTk5MWNhIiwiZXhwIjoxNTY3MDc0MDc2fQ.M6n9iXrzsX7fZTrZEbJSKR-Wglmuawa-xemO23Axr3jdtXP2tKDHoi2xveYmdVBqR5-fOttgjQrTu7CGAkik8Q'}} <pre>pt5.1: {'errCode': 0, 'errMsg': 'OK', 'data': {'bankToken': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZDRjZjRhOTM2MDI0YWY3MjlkZGY3ZTBjYzUzNjYyMjE3OTk5MWNhIiwiZXhwIjoxNTY3MTM3OTc3fQ.G7HuYZWSM03XKvR2tKmRQZRNKCz3SAmIR2AqWkm42B2zQ5U-AjQBlmZamXfK5HVNKV61DjwQ5E28Csp-Mvgp2Q'}}
</pre> </pre>
</div> </div>
<!--css div popup end--> <!--css div popup end-->
......
Markdown is supported
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