Пример #1
0
 def test_028_install_remove(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))
     rs1 = cla.test_install_remove(id=gps_finance_id)
     ass.verity(json.loads(rs1)['message'], '请求成功')
Пример #2
0
 def test_030_del_gps(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))
     cls.del_gps_finance(gps_finance_id)
     cls.del_gps(new_device_code)
     fis.del_finance(car_owner)
Пример #3
0
 def test_013_warnhb(self):
     # 未回家/公司阀值设置
     f.test_warnhb_saveThreshold(c.TRAVEL_OUT)
     # 未回家/公司阀值获取
     r = json.loads(f.test_warnhb_getThreshold())
     a.verity(r['data'], c.TRAVEL_OUT)
     # 查询停车记录
     finance_id = fs.get_car_id(c.car_owner)
     warnid = fs.get_warn_id(warn_type='wh', financeid=finance_id)
     f.test_warnhb_getStations(warnid)
     # 查询用户住址信息
     r1 = json.loads(f.test_warnhb_getFinanceInfo(finance_id))
     a.verity(r1['data']['companyAddress'], fs.get_car_info(c.car_owner, 'company_address'))
     a.verity(r1['data']['companyCoord'], fs.get_car_info(c.car_owner, 'company_coord'))
     a.verity(r1['data']['ownerAddress'], fs.get_car_info(c.car_owner, 'owner_address'))
     a.verity(r1['data']['ownerCoord'], fs.get_car_info(c.car_owner, 'owner_coord'))
     # 查询未回家/公司报警
     f.test_warnhb_getWarns('', 1, 10, 0)
     f.test_warnhb_getWarns('', 1, 10, 1)
Пример #4
0
 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'], '请求成功')