Commit aa3d0a55 by taoke

修改未feature范围

parent a53f42e1
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment