Package dev.galasa.framework
Class BaseTestRunner
java.lang.Object
dev.galasa.framework.BaseTestRunner
- Direct Known Subclasses:
GherkinTestRunner
,TestRunner
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContext
protected IBundleManager
protected IConfigurationPropertyStoreService
protected IDynamicStatusStoreService
protected IFileSystem
protected IShuttableFramework
protected TestRunHeartbeat
protected boolean
protected boolean
protected Properties
protected IResultArchiveStore
protected IRun
protected TestStructure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TestRunHeartbeat
createBeatingHeart
(IFramework framework) protected TestStructure
protected void
deleteRunProperties
(@NotNull IFramework framework) 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 -
overrideProperties
-
-
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
-
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
-