Class TestRunStatus

java.lang.Object
org.frankframework.larva.TestRunStatus

public class TestRunStatus extends Object
Keep track of the status of a test-run.

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()
and the LarvaWriter for debug messages.

  • Constructor Details

  • Method Details

    • initScenarioDirectories

      public String initScenarioDirectories()
      Initialize the list of scenario-directories from the properties in AppConstants.

      The code looks at numbered properties scenariosrootN.directory, scenariosrootN.description and scenariosrootN.m2e.pom.properties starting scenariosroot1.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

      public void readScenarioFiles(ScenarioLoader scenarioLoader)
    • getScenariosToRun

      public List<Scenario> getScenariosToRun(@Nonnull String execute)
    • scenarioFailed

      public void scenarioFailed(Scenario scenario)
    • scenarioPassed

      public void scenarioPassed(Scenario scenario)
    • scenarioAutosaved

      public void scenarioAutosaved(Scenario scenario)
    • getScenariosFailedCount

      public int getScenariosFailedCount()
    • getScenariosPassedCount

      public int getScenariosPassedCount()
    • getScenariosAutosavedCount

      public int getScenariosAutosavedCount()
    • getScenarioExecuteCount

      public int getScenarioExecuteCount()
    • buildScenariosPassedMessage

      @Nullable public String buildScenariosPassedMessage(long executionTime)
    • buildScenariosFailedMessage

      @Nullable public String buildScenariosFailedMessage(long executionTime)
    • buildScenariosAutoSavedMessage

      @Nullable public String buildScenariosAutoSavedMessage(long executionTime)
    • buildScenariosTotalMessage

      @Nullable public String buildScenariosTotalMessage(long executionTime)