fSessionNameMap = new HashMap<>();
-
- /**
- * Parse a scenario file with the format:
- *
- * <SCENARIO>
- * ScenarioName
- *
- * <COMMAND_INPUT>
- * Command
- * </COMAND_INPUT>
- *
- * <COMMAND_RESULT>
- * CommandResult
- * </COMMAND_RESULT>
- *
- * <COMMAND_OUTPUT>
- * CommandOutput
- * <COMMAND_ERROR_OUTPUT>
- * CommandErrorOutput
- * </COMMAND_ERROR_OUTPUT>
- * </COMMAND_OUTPUT>
- *
- * </SCENARIO>
- *
- * Where: ScenarioName - is the scenario name
- * Command - the command line string
- * CommandResult - the result integer of the command (0 for success, 1 for failure)
- * ComandOutput - the command output string (multi-line possible)
- * ComandErrorOutput - the command error output string (multi-line possible)
- *
- * Note: 1) There can be many scenarios per file
- * 2) There can be many (Command-CommandResult-CommandOutput) triples per scenario
- * 3) Lines starting with # will be ignored (comments)
- *
- * @param scenariofile - path to scenario file
- * @throws Exception
- */
- public synchronized void loadScenarioFile(String scenariofile) throws Exception {
- fScenariofile = scenariofile;
-
- // clean up map
- Collection