Package dev.galasa.framework.spi
Interface IFrameworkRuns
- All Known Implementing Classes:
FrameworkRuns
public interface IFrameworkRuns
-
Nested Class Summary
Nested Classes -
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 IRun
submitRun
(String type, String requestor, String bundleName, 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)
-
Method Details
-
getActiveRuns
- Throws:
FrameworkException
-
getQueuedRuns
- Throws:
FrameworkException
-
getAllRuns
- Throws:
FrameworkException
-
getAllGroupedRuns
@NotNull @NotNull List<IRun> getAllGroupedRuns(@NotNull @NotNull String groupName) throws FrameworkException - Throws:
FrameworkException
-
getActiveRunNames
- Throws:
FrameworkException
-
delete
- Throws:
DynamicStatusStoreException
-
getRun
- Throws:
DynamicStatusStoreException
-
reset
- Throws:
DynamicStatusStoreException
-
markRunInterrupted
boolean markRunInterrupted(String runName, String interruptReason) throws DynamicStatusStoreException - Throws:
DynamicStatusStoreException
-
markRunFinished
- Throws:
DynamicStatusStoreException
-
markRunCancelling
boolean markRunCancelling(String runName, TestRunLifecycleStatus currentStatus) throws DynamicStatusStoreException 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.- Parameters:
runName
-result
-currentState
- The current status of the test run, the status we want to change it from- 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
-
addRunRasAction
- Throws:
DynamicStatusStoreException
-