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
d9d157f5
Commit
d9d157f5
authored
May 12, 2021
by
jiaqiying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.hikcreate.com/TestAuto/InterfaceAutoTest
parents
6cae57f4
cf7f5f40
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
10 deletions
+3
-10
config.py
+2
-0
service/login.py
+1
-1
test_case/bmc/conftest.py
+0
-0
test_case/bmy/test1.py
+0
-7
test_case/bmy/test_login.py
+0
-2
No files found.
config.py
View file @
d9d157f5
...
@@ -26,6 +26,8 @@ class BMCConfig(BaseConfig):
...
@@ -26,6 +26,8 @@ class BMCConfig(BaseConfig):
name
=
"bmc"
name
=
"bmc"
test_case_dir
=
"test_case/bmc/"
test_case_dir
=
"test_case/bmc/"
test_case_data_dir
=
"test_case_data/bmc/"
test_case_data_dir
=
"test_case_data/bmc/"
bmcphone
=
"17822000000"
encodedGesture
=
"67e6d10010533eed4bbe9659863bf6ee"
bmc_login_url
=
"http://testbmcapp.hikcreate.com/v1/user/login/gesture"
bmc_login_url
=
"http://testbmcapp.hikcreate.com/v1/user/login/gesture"
bmc_token
=
""
#公网加密token
bmc_token
=
""
#公网加密token
bmc_pvt_token
=
""
#专网token
bmc_pvt_token
=
""
#专网token
...
...
service/login.py
View file @
d9d157f5
...
@@ -109,7 +109,7 @@ class BMC():
...
@@ -109,7 +109,7 @@ class BMC():
print
(
resp
.
json
())
print
(
resp
.
json
())
pvt_token
=
resp
.
json
()[
"data"
][
"token"
]
pvt_token
=
resp
.
json
()[
"data"
][
"token"
]
print
(
pvt_token
)
print
(
pvt_token
)
return
encrypted_token
,
pvt_token
return
encrypted_token
,
pvt_token
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
test_case/bmc/conf
ig
test.py
→
test_case/bmc/conftest.py
View file @
d9d157f5
File moved
test_case/bmy/test1.py
deleted
100644 → 0
View file @
6cae57f4
#作者: taoke
#时间: 2021/5/10 17:44
#编码: -- coding: utf-8 --
#版本: !python3.7
# 测试Jenkins拉取代码
\ No newline at end of file
test_case/bmy/test_login.py
View file @
d9d157f5
...
@@ -61,4 +61,3 @@ if __name__ == '__main__':
...
@@ -61,4 +61,3 @@ if __name__ == '__main__':
pytest
.
main
([
'test_login.py'
,
'-s'
,
'--alluredir'
,
'../../report/tmp'
])
pytest
.
main
([
'test_login.py'
,
'-s'
,
'--alluredir'
,
'../../report/tmp'
])
# # 启动默认浏览器打开报告
# # 启动默认浏览器打开报告
os
.
system
(
'allure serve ../../report/tmp'
)
os
.
system
(
'allure serve ../../report/tmp'
)
# requests.post("http://testyun.banmago.com/api/auth/login",data=)
\ No newline at end of file
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