Daniele Moro | b8404e8 | 2022-02-25 00:17:28 +0100 | [diff] [blame^] | 1 | class Policing: |
| 2 | |
| 3 | def __init__(self): |
| 4 | self.default = '' |
| 5 | |
| 6 | def CASE1(self, main): |
| 7 | main.case("Session level QER") |
| 8 | try: |
| 9 | from tests.USECASE.SegmentRouting.Policing.dependencies.PolicingTest import \ |
| 10 | PolicingTest |
| 11 | except ImportError as e: |
| 12 | main.log.error("Import not found. Exiting the test") |
| 13 | main.log.error(e) |
| 14 | main.cleanAndExit() |
| 15 | test = PolicingTest() |
| 16 | test.runTest( |
| 17 | main, |
| 18 | test_idx=1 |
| 19 | ) |
| 20 | |
| 21 | def CASE2(self, main): |
| 22 | main.case("Application level QER") |
| 23 | try: |
| 24 | from tests.USECASE.SegmentRouting.Policing.dependencies.PolicingTest import \ |
| 25 | PolicingTest |
| 26 | except ImportError as e: |
| 27 | main.log.error("Import not found. Exiting the test") |
| 28 | main.log.error(e) |
| 29 | main.cleanAndExit() |
| 30 | test = PolicingTest() |
| 31 | test.runTest( |
| 32 | main, |
| 33 | test_idx=2 |
| 34 | ) |