Class TestRunStatus
This class also tracks the scenario directories and all scenarios found, and the scenarios to run.
The actual loading of scenario data is delegated to the ScenarioLoader.
The TestRunStatus uses the LarvaConfig to find the configured
invalid reference
LarvaConfig#getActiveScenariosDirectory()LarvaTool for debug messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildScenariosAutoSavedMessage(long executionTime) buildScenariosFailedMessage(long executionTime) buildScenariosPassedMessage(long executionTime) buildScenariosTotalMessage(long executionTime) intintintintgetScenariosToRun(String execute) Initialize the list of scenario-directories from the properties inAppConstants.voidreadScenarioFiles(ScenarioLoader scenarioLoader) voidscenarioAutosaved(Scenario scenario) voidscenarioFailed(Scenario scenario) voidscenarioPassed(Scenario scenario)
-
Constructor Details
-
TestRunStatus
-
-
Method Details
-
initScenarioDirectories
Initialize the list of scenario-directories from the properties inAppConstants.The code looks at numbered properties
scenariosrootN.directory,scenariosrootN.descriptionandscenariosrootN.m2e.pom.propertiesstartingscenariosroot1.directory.If
scenariosrootN.m2e.pom.propertiesexists then it is used to determine to root path for that scenario directory. Otherwise, the scenario directory specified is expected to be relative to the web app root path.The map with scenario roots has the description as key and full path to the directory as value.
- Returns:
- Returns the path to the active / selected scenario root directory.
-
readScenarioFiles
-
getScenariosToRun
-
scenarioFailed
-
scenarioPassed
-
scenarioAutosaved
-
getScenariosFailedCount
public int getScenariosFailedCount() -
getScenariosPassedCount
public int getScenariosPassedCount() -
getScenariosAutosavedCount
public int getScenariosAutosavedCount() -
getScenarioExecuteCount
public int getScenarioExecuteCount() -
buildScenariosPassedMessage
-
buildScenariosFailedMessage
-
buildScenariosAutoSavedMessage
-
buildScenariosTotalMessage
-