Package dev.galasa.framework
Class FrameworkRuns
java.lang.Object
dev.galasa.framework.FrameworkRuns
- All Implemented Interfaces:
IFrameworkRuns
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.galasa.framework.spi.IFrameworkRuns
IFrameworkRuns.SharedEnvironmentPhase
-
Constructor Summary
ConstructorsConstructorDescriptionFrameworkRuns
(IFramework framework) FrameworkRuns
(IFramework framework, ITimeService timeService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRunRasAction
(IRun run, RunRasAction rasActionToAdd) boolean
getAllGroupedRuns
(@NotNull String groupName) boolean
markRunCancelling
(String runName, TestRunLifecycleStatus currentStatus) Marks the specified run as finished in the DSS.void
markRunFinished
(String runName, String result) boolean
markRunInterrupted
(String runName, String interruptReason) boolean
@NotNull @NotNull IRun
submitRun
(String runType, String requestor, String bundleName, @NotNull String testName, String groupName, String mavenRepository, String obr, String stream, boolean local, boolean trace, Set<String> tags, Properties overrides, IFrameworkRuns.SharedEnvironmentPhase sharedEnvironmentPhase, String sharedEnvironmentRunName, String language, String submissionId)
-
Constructor Details
-
FrameworkRuns
- Throws:
FrameworkException
-
FrameworkRuns
- Throws:
FrameworkException
-
-
Method Details
-
getActiveRuns
- Specified by:
getActiveRuns
in interfaceIFrameworkRuns
- Throws:
FrameworkException
-
getQueuedRuns
- Specified by:
getQueuedRuns
in interfaceIFrameworkRuns
- Throws:
FrameworkException
-
getAllRuns
- Specified by:
getAllRuns
in interfaceIFrameworkRuns
- Throws:
FrameworkException
-
getAllGroupedRuns
@Override public List<IRun> getAllGroupedRuns(@NotNull @NotNull String groupName) throws FrameworkException - Specified by:
getAllGroupedRuns
in interfaceIFrameworkRuns
- Throws:
FrameworkException
-
getActiveRunNames
- Specified by:
getActiveRunNames
in interfaceIFrameworkRuns
- Throws:
FrameworkException
-
delete
- Specified by:
delete
in interfaceIFrameworkRuns
- Throws:
DynamicStatusStoreException
-
reset
- Specified by:
reset
in interfaceIFrameworkRuns
- Throws:
DynamicStatusStoreException
-
addRunRasAction
@Override public void addRunRasAction(IRun run, RunRasAction rasActionToAdd) throws DynamicStatusStoreException - Specified by:
addRunRasAction
in interfaceIFrameworkRuns
- Throws:
DynamicStatusStoreException
-
markRunInterrupted
@Override public boolean markRunInterrupted(String runName, String interruptReason) throws DynamicStatusStoreException - Specified by:
markRunInterrupted
in interfaceIFrameworkRuns
- Throws:
DynamicStatusStoreException
-
markRunFinished
@Override public void markRunFinished(String runName, String result) throws DynamicStatusStoreException - Specified by:
markRunFinished
in interfaceIFrameworkRuns
- Throws:
DynamicStatusStoreException
-
markRunCancelling
@Override public boolean markRunCancelling(String runName, TestRunLifecycleStatus currentStatus) throws DynamicStatusStoreException Description copied from interface:IFrameworkRuns
Marks the specified run as finished in the DSS. Only if the state of the test run is as we expect. Other processes may have moved the status of the test run without us knowing.- Specified by:
markRunCancelling
in interfaceIFrameworkRuns
- Returns:
- True if the test was marked as finished, false if not. For example, someother process marked it as starting or building ahead of us marking it as finished here.
- Throws:
DynamicStatusStoreException
-
getRun
- Specified by:
getRun
in interfaceIFrameworkRuns
- Throws:
DynamicStatusStoreException
-