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
c772a412
Commit
c772a412
authored
Aug 23, 2021
by
taoke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交委调试
parent
227bd1ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
common/tools.py
+2
-2
config.py
+2
-2
test_case/safe_transportation/jgd/test_riskManagement.py
+5
-5
No files found.
common/tools.py
View file @
c772a412
...
...
@@ -67,10 +67,10 @@ def build_headers(headers, has_token):
if
headers
==
None
or
headers
==
""
:
headers
=
SSOConfig
.
headers
headers
[
'token'
]
=
SSOConfig
.
sso_token
# 交委
# 交委
(监管端的token和企业端的Authorization都装在一起)
elif
name
==
SafeTransportationConfig
.
name
:
if
headers
==
None
or
headers
==
""
:
headers
=
SafeTransportationConfig
.
sso_
headers
headers
=
SafeTransportationConfig
.
headers
headers
[
'token'
]
=
SafeTransportationConfig
.
sso_token
headers
[
'Authorization'
]
=
SafeTransportationConfig
.
bmy_token
return
headers
...
...
config.py
View file @
c772a412
...
...
@@ -160,7 +160,7 @@ class SafeTransportationConfig(BaseConfig):
test_host
=
"http://testyun.banmago.com/api"
test_name_password
=
{
"username"
:
"15150000000"
,
"password"
:
"A123456"
,
"Register-Origin"
:
"yun"
}
bmy_token
=
''
bmy_
headers
=
{
"Content-Type"
:
"application/json"
,
headers
=
{
"Content-Type"
:
"application/json"
,
"Authorization"
:
bmy_token
}
# sso
sso_username
=
'robot_fanxun'
# SSO登录名
...
...
@@ -168,5 +168,5 @@ class SafeTransportationConfig(BaseConfig):
sso_url
=
r'http://testtbdzj.hikcreate.com/web/auth/users/login'
# sso登录地址
sso_salt
=
'hikcreate_xj'
# SSO盐值
sso_token
=
''
sso_
headers
=
{
'Content-Type'
:
'application/json'
,
headers
=
{
'Content-Type'
:
'application/json'
,
"appCode"
:
"1422744796822036481"
}
# 应用code
test_case/safe_transportation/jgd/test_riskManagement.py
View file @
c772a412
...
...
@@ -18,11 +18,11 @@ class TestRiskManagement():
# print(res.json())
"""使用公共方法"""
#
res=request_main("http://testyun.banmago.com/api/tbd/web/baseData/intoVehicle/list",
#
"",
#
"POST",
#
{"appCode":"1422744796822036481","pageNum":1,"pageSize":10,"useNaturePropertyIds":[]})
#
print(res)
res
=
request_main
(
"http://testyun.banmago.com/api/tbd/web/baseData/intoVehicle/list"
,
""
,
"POST"
,
{
"appCode"
:
"1422744796822036481"
,
"pageNum"
:
1
,
"pageSize"
:
10
,
"useNaturePropertyIds"
:[]})
print
(
res
)
def
test_jgd
(
self
):
print
(
"测试"
)
...
...
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