Exemplo n.º 1
0
        print(flush=True)


if __name__ == '__main__':
    if len(sys.argv) != 3:
        print("Usage : python avc_analyser.py DEVICE_ID SCENARIO")
        exit(2)
    device = sys.argv[1]
    scenario_file = sys.argv[2]

    scenario = get_scenario(scenario_file)
    if scenario is None or check_scenario_keys(scenario) is False:
        print('Something goes wrong with scenario file')
        exit(2)

    bearer = get_bearer('bearer.txt')
    if bearer is None:
        print('Something goes wrong with bearer file')
        exit(2)

    log = get_log(device, bearer)
    if log is None:
        print('Something goes wrong with app to get log')
        exit(2)

    start_point = get_start(log)
    if start_point is None:
        print('Unable to get starting point in log')
        exit(2)

    config = get_config(device, bearer)
Exemplo n.º 2
0
 def test_get_bearer(self):
     bearer = get_bearer('../bearer.txt')
     self.assertIsNotNone(bearer)
Exemplo n.º 3
0
 def test_get_config(self):
     bearer = get_bearer('../bearer.txt')
     conf = get_config('2004E2', bearer)
     self.assertIsNotNone(conf)
Exemplo n.º 4
0
 def test_get_measure(self):
     bearer = get_bearer('../bearer.txt')
     mes = get_measure('2004E2', bearer)
     self.assertIsNotNone(mes)
Exemplo n.º 5
0
 def test_get_start(self):
     bearer = get_bearer('../bearer.txt')
     log = get_log('2004E2', bearer)
     self.assertIsNotNone(get_start(log))