Пример #1
0
 def test_006_realtime_deleteGroup(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 删除分组
     """
     groupid = fs.get_gps_group(groupname=groupname,orgcod=orgCode)
     rs = f.test_realtime_deleteGroup(groupid=groupid)
     a.verity(json.loads(rs)['code'],'F2000')
Пример #2
0
 def test_003_realtime_getCarByGroup(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 查询分组下的车辆
     """
     groupid = fs.get_gps_group(groupname=groupname,orgcod=orgCode)
     rs = f.test_realtime_getCarByGroup(groupid=groupid, type=0, orgcode=orgCode, pagenum=1, pagesize=10, keyword='')
     a.verity(json.loads(rs)['code'],'F2000')
Пример #3
0
 def test_002_monitor_updateGroup(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 修改分组
     """
     groupid = fs.get_gps_group(groupname=groupname,orgcod=orgCode)
     rs = f.test_monitor_updateGroup(groupid=groupid, groupname=groupname)
     a.verity(json.loads(rs)['code'],'F2000')
Пример #4
0
 def test_005_realtime_carRelationChange(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 车辆转移
     """
     carid = fs.get_carid_by_id_desc()
     groupid = fs.get_gps_group(groupname=groupname,orgcod=orgCode)
     rs = f.test_realtime_carRelationChange(financelist=carid, groupid=groupid)
     a.verity(json.loads(rs)['code'],'F2000')
Пример #5
0
 def test_014_realtime_getCarList(self):
     """
       Time       :2019-06-14
       author     : 闫红
       desc       : 查询分组,按车辆查询
     """
     groupid = fs.get_gps_group(groupname=groupname,orgcod=orgCode)
     rs = f.test_realtime_getCarList(devicecondition='', deviceorder='CAR'
                                     , linestatus=99, orgcode=orgCode, type=0, groupid=groupid)
     a.verity(json.loads(rs)['code'],'F2000')
     a.verityContain(json.loads(rs)['message'],'成功')
Пример #6
0
 def test_015_monitor(self):
     # 新增分组
     f.test_monitor_addGroup(c.groupname, orgCode)
     groupid = fs.get_gps_group(c.groupname, orgCode)
     # 修改分组
     f.test_monitor_updateGroup(groupid, c.groupname)
     # 获取当前用户能操作的分组
     # 离线
     f.test_monitor_getGroups('', 0, orgCode)
     # 在线
     f.test_monitor_getGroups('', 1, orgCode)
     # 无线
     f.test_monitor_getGroups('', 2, orgCode)
     # 获取当前登录用户的组织机构树形信息
     f.test_monitor_getCurrentOrgs()
     # 获取组织机构统计(刷新机构统计总数)
     f.test_monitor_getOrgsStatistic('', '', orgCode, 1, 10)
     gpsid = fs.get_gps(1)
     # 移动GPS到某个分组
     f.test_monitor_moveGpsToGroup(gpsid, groupid)
     gpscode = fs.get_gpscode(gpsid)
     # 查询实时消息(刷新地图上的GPS信号)
     f.test_monitor_getGpsLocationByGps(gpscode)
     # 查询某个机构的GPS统计数据(带关键字)
     f.test_monitor_getOrgCountByCode('', '', orgCode, 1, 10)
     # 获取gps信息列表(刷新机构内部的gps列表)
     f.test_monitor_getGpsByOrg(groupid, '', 0, orgCode, 1, 10)
     # 获取gps详细(用于地图展开)
     r = json.loads(f.test_monitor_gpsRealTime(gpscode))
     a.verity(r['data']['code'], gpscode)
     # 查询报警列表
     f.test_monitor_getWarns(gpsid, 1, 10)
     # 移动GPS到某个分组
     f.test_monitor_moveGpsToGroup(gpsid, 1)
     # 删除分组
     f.test_monitor_deleteGroup(groupid)