def test_009_realtime_getWarnsByDevice(self): """ Time :2019-06-14 author : 闫红 desc : 查看设备报警 """ gpsid = fs.get_gpsid('668614460410119') rs = f.test_realtime_getWarnsByDevice(gpsid=gpsid) a.verity(json.loads(rs)['code'],'F2000') a.verityContain(json.loads(rs)['message'],'成功')
def test_011_device_detail(self): """ Time :2019-06-14 author : 闫红 desc : 获取设备详情 """ gpsid = fs.get_gpsid('668614460410119') rs = f.test_device_detail(id=gpsid) a.verity(json.loads(rs)['code'],'F2000') a.verityContain(json.loads(rs)['message'],'成功') a.verity(json.loads(rs)['data']['deviceCode'],'668614460410119') a.verity(json.loads(rs)['data']['orgCode'],orgCode)