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.BundleContext
protected IBundleManager
protected IConfigurationPropertyStoreService
protected IDynamicStatusStoreService
protected IFileSystem
protected IShuttableFramework
protected static final GalasaGson
protected TestRunHeartbeat
protected boolean
protected boolean
protected Properties
protected IResultArchiveStore
protected RunRasActionProcessor
protected IRun
protected TestStructure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TestRunHeartbeat
createBeatingHeart
(IFramework framework) protected TestStructure
Create a new test structure, and populate it with as much information as we can from the DSS.protected void
deleteRunProperties
(@NotNull IFramework framework) protected boolean
getCPS()
protected String
getDSSKeyString
(String keySuffix) protected IFramework
protected void
incrimentMetric
(IDynamicStatusStoreService dss, IRun run) protected void
init
(ITestRunnerDataProvider dataProvider) protected void
markWaiting
(@NotNull IFramework framework) protected void
saveAllOverridesPassedToArtifact
(Properties overrides, IFileSystem fileSystem, IResultArchiveStore ras) protected void
saveUsedCPSPropertiesToArtifact
(Properties props, IFileSystem fileSystem, IResultArchiveStore ras) protected void
shutdownFramework
(IShuttableFramework framework) protected void
protected void
storeRasRunIdInDss
(IDynamicStatusStoreService dss, String rasRunId) protected void
protected void
updateStatus
(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
-
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()
-