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
dd874928
Commit
dd874928
authored
May 14, 2021
by
taoke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.hikcreate.com/TestAuto/InterfaceAutoTest
parents
d15c4c2c
0bbc148f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
__init__.py
+0
-0
test_case/bmc/conftest.py
+10
-10
test_case/bmc/test_accountinfo.py
+1
-1
No files found.
__init__.py
0 → 100644
View file @
dd874928
test_case/bmc/conftest.py
View file @
dd874928
...
@@ -6,14 +6,14 @@ import config
...
@@ -6,14 +6,14 @@ import config
from
config
import
BMCConfig
from
config
import
BMCConfig
from
common.utils.encryption
import
Encryption
from
common.utils.encryption
import
Encryption
import
requests
import
requests
# requests
#
@pytest.fixture(scope='module', autouse=True)
@pytest.fixture
(
scope
=
'module'
,
autouse
=
True
)
#
def bmc_login_fixture():
def
bmc_login_fixture
():
#
"""bmc登录获取token"""
"""bmc登录获取token"""
#
#
indata = {"phone":"17822000000",
indata
=
{
"phone"
:
"17822000000"
,
#
"encodedGesture": "67e6d10010533eed4bbe9659863bf6ee"}
"encodedGesture"
:
"67e6d10010533eed4bbe9659863bf6ee"
}
#
res = BMC().bmc_login(indata)
res
=
BMC
()
.
bmc_login
(
indata
)
#
setattr(BMCConfig, 'bmc_token', res[0])
setattr
(
BMCConfig
,
'bmc_token'
,
res
[
0
])
#
setattr(BMCConfig, 'bmc_pvt_token', res[1])
setattr
(
BMCConfig
,
'bmc_pvt_token'
,
res
[
1
])
test_case/bmc/
login/
test_accountinfo.py
→
test_case/bmc/test_accountinfo.py
View file @
dd874928
...
@@ -21,7 +21,7 @@ class TestLogin():
...
@@ -21,7 +21,7 @@ class TestLogin():
@allure.title
(
"{inData[testPoint]}"
)
@allure.title
(
"{inData[testPoint]}"
)
@allure.testcase
(
"{inData[yapiAddress]}"
)
@allure.testcase
(
"{inData[yapiAddress]}"
)
@allure.description
(
"url:/auth/login 。。。。"
)
@allure.description
(
"url:/auth/login 。。。。"
)
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'账号信息基本功能'
,
'logi
p
n'
))
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'账号信息基本功能'
,
'login'
))
def
test_login
(
self
,
inData
):
def
test_login
(
self
,
inData
):
...
...
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