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()
LarvaWriter
for debug messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildScenariosAutoSavedMessage
(long executionTime) buildScenariosFailedMessage
(long executionTime) buildScenariosPassedMessage
(long executionTime) buildScenariosTotalMessage
(long executionTime) int
int
int
int
getScenariosToRun
(String execute) Initialize the list of scenario-directories from the properties inAppConstants
.void
readScenarioFiles
(ScenarioLoader scenarioLoader) void
scenarioAutosaved
(Scenario scenario) void
scenarioFailed
(Scenario scenario) void
scenarioPassed
(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.description
andscenariosrootN.m2e.pom.properties
startingscenariosroot1.directory
.If
scenariosrootN.m2e.pom.properties
exists 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
-