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
ae0ca2b9
Commit
ae0ca2b9
authored
Jun 21, 2021
by
taoke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电动车添加用例
parent
7bbb2cb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
test_case/bmc/test_ElectricBicycle.py
+36
-2
test_case_data/bmc/bmc_ElectricBicycle_20210531.xlsx
+0
-0
No files found.
test_case/bmc/test_ElectricBicycle.py
View file @
ae0ca2b9
...
@@ -428,7 +428,7 @@ class TestDrivingLicense( ) :
...
@@ -428,7 +428,7 @@ class TestDrivingLicense( ) :
allure
.
attach
(
f
"{res}"
,
"响应结果"
,
allure
.
attachment_type
.
TEXT
)
allure
.
attach
(
f
"{res}"
,
"响应结果"
,
allure
.
attachment_type
.
TEXT
)
assert
res
[
'code'
]
==
expectData
[
'code'
]
assert
res
[
'code'
]
==
expectData
[
'code'
]
@pytest.mark.scoreDetail
#
@pytest.mark.scoreDetail
@allure.story
(
"发送短信"
)
@allure.story
(
"发送短信"
)
@allure.link
(
"http://yapi.hikcreate.com/project/32/interface/api/45640"
)
@allure.link
(
"http://yapi.hikcreate.com/project/32/interface/api/45640"
)
@allure.description
(
"接口:/pvtapi/electricBicycle/smsSend,creator:胥键雪,autoCreator:taoke"
)
@allure.description
(
"接口:/pvtapi/electricBicycle/smsSend,creator:胥键雪,autoCreator:taoke"
)
...
@@ -451,7 +451,41 @@ class TestDrivingLicense( ) :
...
@@ -451,7 +451,41 @@ class TestDrivingLicense( ) :
@allure.description
(
"接口:/pvtapi/elecBicyChange/apply/elecBicyChangeNotice,creator:胥键雪,autoCreator:taoke"
)
@allure.description
(
"接口:/pvtapi/elecBicyChange/apply/elecBicyChangeNotice,creator:胥键雪,autoCreator:taoke"
)
@allure.title
(
"{inData[testPoint]}"
)
@allure.title
(
"{inData[testPoint]}"
)
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'电动车'
,
'elecBicyChangeNotice'
))
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'电动车'
,
'elecBicyChangeNotice'
))
def
test_elecBicyChangeNotice
(
self
,
inData
,
):
def
test_elecBicyChangeNotice
(
self
,
inData
):
url
=
f
"{BMCConfig().host}{inData['url']}"
method
=
inData
[
'method'
]
req_data
=
inData
[
'reqData'
]
expectData
=
inData
[
'expectData'
]
headers
=
inData
[
'headers'
]
# 请求
res
=
request_main
(
url
,
headers
,
method
,
req_data
)
allure
.
attach
(
f
"{res}"
,
"响应结果"
,
allure
.
attachment_type
.
TEXT
)
assert
res
[
'code'
]
==
expectData
[
'code'
]
@allure.story
(
"获取行驶证列表"
)
@allure.link
(
"http://yapi.hikcreate.com/project/32/interface/api/78486"
)
@allure.description
(
"接口:/pvtapi/elecBicyChange/apply/elecBicyLicenseList,creator:胥键雪,autoCreator:taoke"
)
@allure.title
(
"{inData[testPoint]}"
)
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'电动车'
,
'elecBicyLicenseList'
))
def
test_elecBicyLicenseList
(
self
,
inData
):
url
=
f
"{BMCConfig().host}{inData['url']}"
method
=
inData
[
'method'
]
req_data
=
inData
[
'reqData'
]
expectData
=
inData
[
'expectData'
]
headers
=
inData
[
'headers'
]
# 请求
res
=
request_main
(
url
,
headers
,
method
,
req_data
)
allure
.
attach
(
f
"{res}"
,
"响应结果"
,
allure
.
attachment_type
.
TEXT
)
assert
res
[
'code'
]
==
expectData
[
'code'
]
@pytest.mark.scoreDetail
@allure.story
(
"预约记录查询"
)
@allure.link
(
"http://yapi.hikcreate.com/project/32/interface/api/78666"
)
@allure.description
(
"接口:/pvtapi/elecBicyChange/apply/elecBicyApplyPage,creator:胥键雪,autoCreator:taoke"
)
@allure.title
(
"{inData[testPoint]}"
)
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'电动车'
,
'elecBicyApplyPage'
))
def
test_elecBicyApplyPage
(
self
,
inData
):
url
=
f
"{BMCConfig().host}{inData['url']}"
url
=
f
"{BMCConfig().host}{inData['url']}"
method
=
inData
[
'method'
]
method
=
inData
[
'method'
]
req_data
=
inData
[
'reqData'
]
req_data
=
inData
[
'reqData'
]
...
...
test_case_data/bmc/bmc_ElectricBicycle_20210531.xlsx
View file @
ae0ca2b9
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