Package dev.galasa.framework
Class BaseTestRunner
java.lang.Object
dev.galasa.framework.BaseTestRunner
- Direct Known Subclasses:
GherkinTestRunner,TestRunner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContextprotected IBundleManagerprotected IConfigurationPropertyStoreServiceprotected IDynamicStatusStoreServiceprotected IFileSystemprotected IShuttableFrameworkprotected static final GalasaGsonprotected TestRunHeartbeatprotected booleanprotected booleanprotected Propertiesprotected IResultArchiveStoreprotected RunRasActionProcessorprotected IRunprotected TestStructure -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TestRunHeartbeatcreateBeatingHeart(IFramework framework) protected TestStructureCreate a new test structure, and populate it with as much information as we can from the DSS.protected voiddeleteRunProperties(@NotNull IFramework framework) protected booleangetCPS()protected StringgetDSSKeyString(String keySuffix) protected IFrameworkprotected dev.galasa.framework.internal.runner.InterruptedMonitorprotected voidincrimentMetric(IDynamicStatusStoreService dss, IRun run) protected voidinit(ITestRunnerDataProvider dataProvider) protected voidmarkWaiting(@NotNull IFramework framework) protected voidsaveAllOverridesPassedToArtifact(Properties overrides, IFileSystem fileSystem, IResultArchiveStore ras) protected voidsaveUsedCPSPropertiesToArtifact(Properties props, IFileSystem fileSystem, IResultArchiveStore ras) protected voidshutdownFramework(IShuttableFramework framework) protected voidprotected voidstoreRasRunIdInDss(IDynamicStatusStoreService dss, String rasRunId) protected voidprotected voidupdateStatus(TestRunLifecycleStatus status, String dssTimePropSuffix) protected void
-
Field Details
-
bundleContext
protected org.osgi.framework.BundleContext bundleContext -
framework
-
bundleManager
-
fileSystem
-
cps
-
dss
-
ras
-
run
-
testStructure
-
heartbeat
-
isRunOK
protected boolean isRunOK -
isResourcesAvailable
protected boolean isResourcesAvailable -
rasActionProcessor
-
overrideProperties
-
gson
-
-
Constructor Details
-
BaseTestRunner
public BaseTestRunner()
-
-
Method Details
-
init
- Throws:
TestRunException
-
getInterruptedMonitor
protected dev.galasa.framework.internal.runner.InterruptedMonitor getInterruptedMonitor() -
shutdownFramework
-
saveUsedCPSPropertiesToArtifact
protected void saveUsedCPSPropertiesToArtifact(Properties props, IFileSystem fileSystem, IResultArchiveStore ras) -
saveAllOverridesPassedToArtifact
protected void saveAllOverridesPassedToArtifact(Properties overrides, IFileSystem fileSystem, IResultArchiveStore ras) -
createNewTestStructure
Create a new test structure, and populate it with as much information as we can from the DSS.- Parameters:
run- The run structure. It has data loaded already from the DSS- Returns:
- A TestStructure which is written into the RAS eventually.
-
writeTestStructure
protected void writeTestStructure() -
deleteRunProperties
-
getDSSKeyString
-
stopHeartbeat
protected void stopHeartbeat() -
markWaiting
- Throws:
TestRunException
-
updateResult
- Throws:
TestRunException
-
getFramework
-
getCPS
-
updateStatus
protected void updateStatus(TestRunLifecycleStatus status, String dssTimePropSuffix) throws TestRunException - Throws:
TestRunException
-
incrimentMetric
-
storeRasRunIdInDss
protected void storeRasRunIdInDss(IDynamicStatusStoreService dss, String rasRunId) throws TestRunException - Throws:
TestRunException
-
createBeatingHeart
- Throws:
TestRunException
-
getContinueOnTestFailureFromCPS
protected boolean getContinueOnTestFailureFromCPS()
-