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
ec762ac7
Commit
ec762ac7
authored
May 13, 2021
by
jiaqiying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.hikcreate.com/TestAuto/InterfaceAutoTest
parents
a4a7e4f7
73135f0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
test_case/bmc/login/test_accountinfo.py
+27
-0
test_case_data/bmy/bmy_case.xlsx
+0
-0
No files found.
test_case/bmc/login/test_accountinfo.py
0 → 100644
View file @
ec762ac7
# 作者: dengmaosheng
# 时间: 2021/5/13 15:10
# 编码: #coding:utf-8
# 版本: python3.7
import
pytest
,
allure
,
xlrd
,
requests
,
os
from
common.utils.getExcelData
import
get_excelData
from
service.login
import
BMY
from
common.tools
import
request_main
from
config
import
BMCConfig
@allure.epic
(
"斑马信用"
)
@allure.feature
(
"账号信息基本功能"
)
class
TestLogin
():
workBook
=
xlrd
.
open_workbook
(
f
'{BMCConfig.root_path}/test_case_data/bmc/bmc_testcase01_20210513.xlsx'
)
@allure.story
(
"账号信息基本功能"
)
@allure.severity
(
""
)
@allure.title
(
"登录认证"
)
@allure.testcase
(
"http://yapi.hikcreate.com/"
)
@allure.description
(
"url:/auth/login 。。。。"
)
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'登录模块'
,
'Login'
))
def
test_login
(
self
,
inData
):
url
=
f
"{BMCConfig().host}{inData['url']}"
method
=
inData
[
'method'
]
\ No newline at end of file
test_case_data/bmy/bmy_case.xlsx
View file @
ec762ac7
No preview for this file type
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