Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
JFAAPPAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
johnny.zhu
JFAAPPAPI
Commits
cce34923
Commit
cce34923
authored
Aug 30, 2019
by
johnny.zhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
ca01bf0d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
sendVerificationCode.py
case/sendVerificationCode.py
+2
-2
test_jfa_tc02.py
case/test_jfa_tc02.py
+0
-2
result.html
report/result.html
+3
-3
No files found.
case/sendVerificationCode.py
View file @
cce34923
...
...
@@ -45,9 +45,9 @@ def sendVerificationCode(phone,templateType):
smsToken
=
rd
[
'smsToken'
]
# print(smsToken)
return
smsToken
# (smstoken) = sendVerificationCode("180210476
80
","REGISTER")
# (smstoken) = sendVerificationCode("180210476
12
","REGISTER")
# print(smstoken)
# print(token)
def
checkVerificationCode
(
phone
,
templateType
):
ip
=
gl
.
get_value
(
'apiip'
)
...
...
case/test_jfa_tc02.py
View file @
cce34923
...
...
@@ -17,7 +17,6 @@ import config.config
import
util.logger
as
ul
class
TestcheckVerificationCode
(
unittest
.
TestCase
):
def
setUp
(
self
):
# 设置测试用例编号
...
...
@@ -36,7 +35,6 @@ class TestcheckVerificationCode(unittest.TestCase):
"smsToken"
:
self
.
smstoken
}
# 测试API请求头设置
self
.
payloadHeader
=
{
'Content-Type'
:
"application/json"
...
...
report/result.html
View file @
cce34923
...
...
@@ -181,8 +181,8 @@
<div
class=
'page-header'
>
<h1>
自动化测试报告,测试结果如下:
</h1>
<p
class=
'attribute'
><strong>
开始时间:
</strong>
2019-08-
29 18:16
:11
</p>
<p
class=
'attribute'
><strong>
运行时长:
</strong>
0:00:1
2.891737
</p>
<p
class=
'attribute'
><strong>
开始时间:
</strong>
2019-08-
30 12:01
:11
</p>
<p
class=
'attribute'
><strong>
运行时长:
</strong>
0:00:1
1.666668
</p>
<p
class=
'attribute'
><strong>
状态:
</strong>
通过 30
</p>
</div>
...
...
@@ -286,7 +286,7 @@
<a
class=
"popup_link"
onfocus=
'this.blur();'
href=
"javascript:showTestDetail('div_pt5.1')"
>
通过
</a>
<div
id=
'div_pt5.1'
class=
"popup_window"
>
<pre>
pt5.1: {'errCode': 0, 'errMsg': 'OK', 'data': {'bankToken': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZDRjZjRhOTM2MDI0YWY3MjlkZGY3ZTBjYzUzNjYyMjE3OTk5MWNhIiwiZXhwIjoxNTY3M
Dc0MDc2fQ.M6n9iXrzsX7fZTrZEbJSKR-Wglmuawa-xemO23Axr3jdtXP2tKDHoi2xveYmdVBqR5-fOttgjQrTu7CGAkik8
Q'}}
<pre>
pt5.1: {'errCode': 0, 'errMsg': 'OK', 'data': {'bankToken': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZDRjZjRhOTM2MDI0YWY3MjlkZGY3ZTBjYzUzNjYyMjE3OTk5MWNhIiwiZXhwIjoxNTY3M
TM3OTc3fQ.G7HuYZWSM03XKvR2tKmRQZRNKCz3SAmIR2AqWkm42B2zQ5U-AjQBlmZamXfK5HVNKV61DjwQ5E28Csp-Mvgp2
Q'}}
</pre>
</div>
<!--css div popup end-->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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