def test_add_trailer(self): trailer_num = provide_data.get_info('挂车') url = self.url + 'saas/res/car/add' param = { 'web': trailer_num, 'c': random.randint(1, 5), 'd': 'JA65E76231074EEC048', 'e': 1747670400000, 'f': 'JA65E76231074EEC048', 'g': 'JA65E76231074EEC048', 'h': 'JA65E76231074EEC048', 'i': 'JA65E76231074EEC048', 'j': 'JA65E76231074EEC048', 'k': 'JA65E76231074EEC048', 'l': 1747670400000, 'm': trailer_num[1:-1], 'n': self.fleet_id, 'p': 33330, 'q': '1', 'r': 2 } result = self.web.web_post(*self.fleet_login_result, url=url, param=param) assert result['a'] == '200'
async def add_trailer(fleet_user_id, fleet_id): """新增挂车""" global null trailer_num = provide_data.get_info('挂车') url = fleet_url + 'saas/res/car/add' param = { 's': trailer_num, 'c': random.randint(1, 5), 'd': 'JA65E76231074EEC048', 'e': 1747670400000, 'f': 'JA65E76231074EEC048', 'g': 'JA65E76231074EEC048', 'h': 'JA65E76231074EEC048', 'i': 'JA65E76231074EEC048', 'j': 'JA65E76231074EEC048', 'k': 'JA65E76231074EEC048', 'l': 1747670400000, 'm': trailer_num[1:-1], 'n': fleet_id, 'p': 33330, 'q': '1', 'r': 2 } result = post(fleet_user_id, url=url, param=param) assert result['a'] == '200'
def test_add_driver(self): """ a 车队ID b 司机姓名 c 司机身份证号 d 司机号码 e 驾驶证正本正面 f 驾驶证副本正面 g 驾驶证副本正面 h 从业资格证文件 i 从业资格证有效期截止日期 j 从业资格号码 k 押运员证 l 押运员证时间 m 类型 1司机 2押运员 """ driver_info = provide_data.get_info('司机') url = self.url + 'saas/res/driver/add' param = { 'a': self.fleet_id, 'b': driver_info[0], 'c': driver_info[2], 'd': driver_info[1], 'e': 'JE0B1F519007645B646', 'f': 'JE0B1F519007645B646', 'g': 1747670400000, 'h': 'JE0B1F519007645B646', 'i': 1747670400000, 'j': str(driver_info[1]), 'm': 1 } result = self.web.web_post(*self.fleet_login_result, url=url, param=param) assert result['a'] == '200'
async def add_supercargo(fleet_user_id, fleet_id): """新增押运员""" global null supercargo_info = provide_data.get_info('押运员') url = fleet_url + 'saas/res/driver/add' param = { 'a': fleet_id, 'b': supercargo_info[0], 'd': supercargo_info[1], 'k': 'JE0B1F519007645B646', 'l': 1747670400000, 'm': 2 } result = post(fleet_user_id, url=url, param=param) assert result['a'] == '200'
def test_add_supercargo(self): supercargo_info = provide_data.get_info('押运员') url = self.url + 'saas/res/driver/add' param = { 'a': self.fleet_id, 'b': supercargo_info[0], 'd': supercargo_info[1], 'k': 'JE0B1F519007645B646', 'l': 1747670400000, 'm': 2 } result = self.web.web_post(*self.fleet_login_result, url=url, param=param) assert result['a'] == '200'
def test_add_vehicle(self): """ a 车牌号 b 车辆类型 c 挂车类型 d 车辆道路运输证正面 e 运输证证件有效截止日期 f 代理证正面 g 代理证反面 h 车辆行驶证正本正面 i 车辆行驶证正本反面 j 车辆行驶证副本正面 k 车辆行驶证副本反面 l 车辆行驶证截至时间 m 车辆识别代码 n 车队id o 车队名称 p 荷载吨数 q 装口类型 r 类型 1车辆 2挂车 web 挂车号 t 代理证时间 """ vehicle_num = provide_data.get_info('车辆') url = self.url + 'saas/res/car/add' param = { 'a': vehicle_num, 'b': 1, 'd': 'JA65E76231074EEC048', 'e': 1747670400000, 'f': 'JA65E76231074EEC048', 'g': 'JA65E76231074EEC048', 'h': 'JA65E76231074EEC048', 'i': 'JA65E76231074EEC048', 'j': 'JA65E76231074EEC048', 'k': 'JA65E76231074EEC048', 'l': 1747670400000, 'n': self.fleet_id, 'r': 1 } result = self.web.web_post(*self.fleet_login_result, url=url, param=param) assert result['a'] == '200'
async def add_driver(fleet_user_id, fleet_id): """新增司机""" global null driver_info = provide_data.get_info('司机') url = fleet_url + 'saas/res/driver/add' param = { 'a': fleet_id, 'b': driver_info[0], 'c': driver_info[2], 'd': driver_info[1], 'e': 'JE0B1F519007645B646', 'f': 'JE0B1F519007645B646', 'g': 1747670400000, 'h': 'JE0B1F519007645B646', 'i': 1747670400000, 'j': str(driver_info[1]), 'm': 1 } result = post(fleet_user_id, url=url, param=param) assert result['a'] == '200'
async def add_vehicle(fleet_user_id, fleet_id): """新增车辆""" global null vehicle_num = provide_data.get_info('车辆') url = fleet_url + 'saas/res/car/add' param = { 'a': vehicle_num, 'b': 1, 'd': 'JA65E76231074EEC048', 'e': 1747670400000, 'f': 'JA65E76231074EEC048', 'g': 'JA65E76231074EEC048', 'h': 'JA65E76231074EEC048', 'i': 'JA65E76231074EEC048', 'j': 'JA65E76231074EEC048', 'k': 'JA65E76231074EEC048', 'l': 1747670400000, 'n': fleet_id, 'r': 1 } result = post(fleet_user_id, url=url, param=param) assert result['a'] == '200'