Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InterfaceAutoTest
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TestAuto
InterfaceAutoTest
Commits
3f6f44c9
Commit
3f6f44c9
authored
May 28, 2021
by
fanxun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
39577b17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
test_case/bmc/test_accountinfo.py
+2
-3
No files found.
test_case/bmc/test_accountinfo.py
View file @
3f6f44c9
...
...
@@ -136,9 +136,8 @@ class TestRegister():
# pass
if
not
phone
:
res
=
request_main
(
url
=
url
,
headers
=
headers
,
method
=
method
,
data
=
req_data
,
has_token
=
False
)
print
(
res
)
# 发送次数过多
if
res
[
'msg'
]
==
'验证码发送次数过多,请24小时后再试'
or
res
[
'msg'
]
==
'发送的间隔时间必须大于1分钟!'
:
if
res
[
'msg'
]
==
'验证码发送次数过多,请24小时后再试'
or
'发送的间隔时间'
in
res
[
'msg'
]
:
expectData
[
'code'
]
=
1006
assert
res
[
'code'
]
==
expectData
[
'code'
]
else
:
...
...
@@ -150,7 +149,7 @@ class TestRegister():
res
=
request_main
(
url
=
url
,
headers
=
headers
,
method
=
method
,
data
=
req_data
,
has_token
=
False
)
allure
.
attach
(
"{0}"
.
format
(
res
),
"用例结果"
)
# 发送次数过多
if
res
[
'msg'
]
==
'验证码发送次数过多,请24小时后再试'
or
'发送的间隔时间'
in
res
[
'msg'
]
:
if
res
[
'msg'
]
==
'验证码发送次数过多,请24小时后再试'
or
'发送的间隔时间'
in
res
[
'msg'
]:
expectData
[
'code'
]
=
1006
assert
res
[
'code'
]
==
expectData
[
'code'
]
...
...
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