Exemplo n.º 1
0
class TC_LOI_FUNC(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        self.dev = Device(TEST_DEVICE)
        self.mGS = GSMonitor(self.dev)
        self.mCfg = ConfigManager(self.dev)

    @classmethod
    def tearDownClass(self):
        self.mCfg.close()
        self.mGS.close()
        self.dev.close()

    def test_loi_generating(self):
        self.assertEqual(self.dev.isFSRunning(), True, "Fusion Sensor is not running.")
        self.mCfg.setLoiMode()
        time.sleep(8*60)
        self.assertTrue(self.dev.isNewDataOnDevice("loi") or self.mGS.isNewLoiUploaded(),
                    "Failed to find new loi data"
                )
        print("Loi generating is approved")
Exemplo n.º 2
0
class TC_ZC_FUNC(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        self.dev = Device(TEST_DEVICE)
        self.mGS = GSMonitor(self.dev)
        self.mCfg = ConfigManager(self.dev)

    @classmethod
    def tearDownClass(self):
        self.mCfg.close()
        self.mGS.close()
        self.dev.close()

    def test_zc_generating(self):
        self.assertEqual(self.dev.isFSRunning(), True, "Fusion Sensor is not running.")
        self.mCfg.setZoneCountMode()
        time.sleep(5*60)
        self.assertTrue(self.dev.isNewDataOnDevice("zone-count") or self.mGS.isNewZoneCountUploaded(),
                    "Failed to find new zone-count data"
                )
        print("ZoneCount generating is approved")
Exemplo n.º 3
0
class TC_AUDIO_FUNC_001(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        self.dev = Device(TEST_DEVICE)
        self.mGS = GSMonitor(self.dev)
        self.mCfg = ConfigManager(self.dev)

    @classmethod
    def tearDownClass(self):
        self.mCfg.close()
        self.mGS.close()
        self.dev.close()

    def test_audio_generating(self):
        self.assertEqual(self.dev.isFSRunning(), True, "Fusion Sensor is not running.")
        self.mCfg.setTrackingMode()
        self.mCfg.setAudio(True)
        time.sleep(6*60)
        self.assertTrue(self.dev.isNewDataOnDevice("audio") or self.mGS.isNewAudioUploaded(),
                    "Failed to find new audio data"
                )
        print("Audio generating is approved")
Exemplo n.º 4
0
 def setUpClass(self):
     self.dev = Device(TEST_DEVICE)
     self.mGS = GSMonitor(self.dev)
     self.mCfg = ConfigManager(self.dev)