Run conventional scenarios (e.g. implemented using the Python API of ScenarioRunner)
(self)
| 413 | return result |
| 414 | |
| 415 | def _run_scenarios(self): |
| 416 | """ |
| 417 | Run conventional scenarios (e.g. implemented using the Python API of ScenarioRunner) |
| 418 | """ |
| 419 | result = False |
| 420 | |
| 421 | # Load the scenario configurations provided in the config file |
| 422 | scenario_configurations = ScenarioConfigurationParser.parse_scenario_configuration( |
| 423 | self._args.scenario, |
| 424 | self._args.configFile) |
| 425 | if not scenario_configurations: |
| 426 | print("Configuration for scenario {} cannot be found!".format(self._args.scenario)) |
| 427 | return result |
| 428 | |
| 429 | # Execute each configuration |
| 430 | for config in scenario_configurations: |
| 431 | for _ in range(self._args.repetitions): |
| 432 | result = self._load_and_run_scenario(config) |
| 433 | |
| 434 | self._cleanup() |
| 435 | return result |
| 436 | |
| 437 | def _run_route(self): |
| 438 | """ |
no test coverage detected