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
cd58c334
Commit
cd58c334
authored
May 08, 2021
by
taoke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改token名字
parent
79155ed6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
config.py
+1
-1
test_case/bmy/conftest.py
+1
-1
test_case/bmy/test_riskMonitor2.py
+1
-1
No files found.
config.py
View file @
cd58c334
...
@@ -43,6 +43,6 @@ class BmyConfig(BaseConfig):
...
@@ -43,6 +43,6 @@ class BmyConfig(BaseConfig):
# 测试环境
# 测试环境
test_host
=
"http://testyun.banmago.com/api"
test_host
=
"http://testyun.banmago.com/api"
test_name_password
=
{
"username"
:
"15151500000"
,
"password"
:
"bmy123456"
}
test_name_password
=
{
"username"
:
"15151500000"
,
"password"
:
"bmy123456"
}
Authorizatio
n
=
''
bmy_toke
n
=
''
test_case/bmy/conftest.py
View file @
cd58c334
...
@@ -10,5 +10,5 @@ import pytest
...
@@ -10,5 +10,5 @@ import pytest
def
bmy_login
():
def
bmy_login
():
"""BMY登录获取token"""
"""BMY登录获取token"""
res
=
BMY
()
.
bmy_login
(
BmyConfig
.
test_name_password
)
res
=
BMY
()
.
bmy_login
(
BmyConfig
.
test_name_password
)
setattr
(
BmyConfig
,
'
Authorizatio
n'
,
res
)
setattr
(
BmyConfig
,
'
bmy_toke
n'
,
res
)
test_case/bmy/test_riskMonitor2.py
View file @
cd58c334
...
@@ -27,7 +27,7 @@ class TestLogin():
...
@@ -27,7 +27,7 @@ class TestLogin():
headers
=
inData
[
'headers'
]
headers
=
inData
[
'headers'
]
"""处理"""
"""处理"""
headers
[
'Authorization'
]
=
BmyConfig
.
Authorizatio
n
headers
[
'Authorization'
]
=
BmyConfig
.
bmy_toke
n
"""请求"""
"""请求"""
res
=
request_main
(
url
,
headers
,
method
,
req_data
)
res
=
request_main
(
url
,
headers
,
method
,
req_data
)
...
...
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