Class JenkinsConfiguration
java.lang.Object
com.piketec.jenkins.plugins.tpt.Configuration.JenkinsConfiguration
- All Implemented Interfaces:
Describable<JenkinsConfiguration>
Repeatable subelement for the TPT configuration. Mainly a pair of TPT file and execution
configuration enriched with some additional information.
- Author:
- jkuhnert, Synopsys Inc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInline class for jenkins. -
Constructor Summary
ConstructorsConstructorDescriptionJenkinsConfiguration(String tptFile, String configuration, String id) the execution configuration is used by tpt to determine which file and which arguments is used. -
Method Summary
Modifier and TypeMethodDescriptiongetId()longbooleanprotected ObjectreplaceAndNormalize(EnvVars environment) This method resolves all variables that are used for the definition of the test set and the execution configuration, but not for the directories.voidsetEnableTest(boolean enableTest) voidvoidsetReportDir(String reportDir) voidsetTestdataDir(String testdataDir) voidsetTestSet(String testSet) voidsetTimeout(long timeout)
-
Constructor Details
-
JenkinsConfiguration
the execution configuration is used by tpt to determine which file and which arguments is used. later on, the back 2 back test determine the reference files with this.- Parameters:
tptFile- path to an executable tpt fileconfiguration- arguments and configuration (configuration in double quotes)id- The unique ID of the configuration to create unique paths
-
-
Method Details
-
readResolve
-
isEnableTest
public boolean isEnableTest()- Returns:
- if this
JenkinsConfigurationshould run at all
-
setEnableTest
@DataBoundSetter public void setEnableTest(boolean enableTest) - Parameters:
enableTest- the enableTest to set
-
getTimeout
public long getTimeout()- Returns:
- how long the execution of this test run is allwoed to take at max
-
setTimeout
@DataBoundSetter public void setTimeout(long timeout) - Parameters:
timeout- the timeout to set
-
getTptFile
- Returns:
- The TPT file
-
getTestSet
- Returns:
- the name of test set that should be used,
nullor empty if the test set defined in the file should be used.
-
setTestSet
- Parameters:
testSet- the testSet to set
-
getConfiguration
- Returns:
- the whole configuration string defined in the jenkins conf
-
getReportDir
- Returns:
- the directory where the TPT report shall be written to.
-
setReportDir
- Parameters:
reportDir- the reportDir to set
-
getTestdataDir
- Returns:
- The directory where the execution result data shall be written to
-
setTestdataDir
- Parameters:
testdataDir- the testdataDir to set
-
getId
- Returns:
- the unique id of this configuration
-
setId
- Parameters:
id- set the unique id of this configuration.
-
replaceAndNormalize
This method resolves all variables that are used for the definition of the test set and the execution configuration, but not for the directories. These are resolved on the respective agent machine with the respective environment variables.- Parameters:
environment- The map of environment variables and their values- Returns:
- A
JenkinsConfigurationwhere all "${}"-Variables are replaced by their value if available inenvironment.
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<JenkinsConfiguration>- Returns:
- the actual descriptor of this object
-