def test_005_device_tracklist(self): """ Time :2019-04-03 author : 罗林 desc :获取设备轨迹 """ deviceid = cls.get_device_id() rs1 = cla.test_device_tracklist(starttime=tf.string_toTimestamp_10(tf.get_day_around(-7) + " 00:00:00"), endtime=tf.get_now_time(), positiontype=-1, deviceid=deviceid) ass.verity(json.loads(rs1)['message'], '请求成功')
def test_025_install_update(self): """ Time :2019-04-08 author : 罗林 desc :修改安装 """ gps_finance_id = fis.get_gps_finance_id(fis.get_device_id(new_device_code), fis.get_car_info(car_owner)) imageid = cls.get_file_id(gps_finance_id) rs1 = cla.test_install_update(date=tf.get_now_time(), position='电瓶', imageid=imageid, username=installer, id=gps_finance_id) ass.verity(json.loads(rs1)['message'], '请求成功')
def test_018_equipment_update(self): """ Time :2019-04-08 author : 罗林 desc :新增设备/编辑设备 """ device_id = fis.get_device_id(new_device_code) model = json.loads(cla.test_equipment_model(type=1))["data"][-1]["code"] rs1 = cla.test_equipment_update(sim=sim, model=model, organizationid=org_id, type=1, no=new_device_code, id=device_id, instoragedate=tf.get_now_time()) ass.verity(json.loads(rs1)['message'], '请求成功')