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
aa3d0a55
Commit
aa3d0a55
authored
Jul 28, 2021
by
taoke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改未feature范围
parent
a53f42e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
test_case/bmc/test_ ElectronicLicense.py
+6
-3
No files found.
test_case/bmc/test_ ElectronicLicense.py
View file @
aa3d0a55
...
...
@@ -18,14 +18,17 @@ headers = BMCConfig.headers
headers
[
'Pvt-Token'
]
=
BMCConfig
.
bmc_pvt_token
headers
[
'Token'
]
=
BMCConfig
.
bmc_token
@pytest.fixture
(
scope
=
'function'
)
# 绑定车辆 初始化
@allure.step
(
"第一步:绑定车辆发送短信获取验证码"
)
def
get_code
()
:
# 绑定车辆时获取验证码(手机号是绑定车辆固定参数的手机号)
payload
=
{
"plateType"
:
"02"
,
"plateNum"
:
"贵AJX001"
,
"vehicleIdentifyNum"
:
"AJX001"
,
"ownerName"
:
"廖辉"
}
payload
=
{
"plateType"
:
"02"
,
"plateNum"
:
"贵AJX001"
,
"vehicleIdentifyNum"
:
"AJX001"
,
"ownerName"
:
"廖辉"
}
requests
.
get
(
f
"{BMCConfig().host}/vehicle/vCode/detail"
,
params
=
payload
,
headers
=
headers
)
num
=
RedisString
(
0
)
.
get
(
f
"edl:sms_value:15377000000:BIND_VEHICLE"
)
num
=
str
(
num
)[
-
7
:
-
1
]
return
num
@pytest.fixture
(
scope
=
'function'
)
# 解绑车辆初始化
def
get_vehickleId_Tounbind
():
res
=
requests
.
get
(
f
"{BMCConfig().pvthost}/vehicle/license/list"
,
headers
=
headers
)
...
...
@@ -53,8 +56,8 @@ def imaAuditStatus(): # 查看照片审核状态
@allure.epic
(
"电子证照"
)
# @allure.feature("电子驾驶证
")
#
@allure.epic("电子证照")
@allure.feature
(
"电子证照
"
)
class
TestDrivingLicense
():
workBook
=
xlrd
.
open_workbook
(
f
'{BaseConfig.root_path}/test_case_data/bmc/bmc_ele_License_2021513.xlsx'
)
def
setup_class
(
self
):
...
...
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