Package com.piketec.tpt.api
Interface ExecutionConfigurationItem
-
- All Superinterfaces:
IdentifiableRemote
,PlatformOrExecutionItemEnabler
,java.rmi.Remote
,TptRemote
public interface ExecutionConfigurationItem extends PlatformOrExecutionItemEnabler
Configuration of the test execution for a particular platform, test set and parameter set. Part of aExecutionConfiguration
- Author:
- Copyright (c) 2014-2020 Piketec GmbH - MIT License (MIT) - All rights reserved
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Back2BackSettings
getBack2BackSettings(boolean createIfUnavailable)
Get the current back to back settings.ExecutionConfiguration
getExecutionConfiguration()
int
getIndex()
java.io.File
getParameterFile()
Deprecated.No support for $-variables and relative paths - usegetParameterFilePath()
instead.java.lang.String
getParameterFilePath()
PlatformConfiguration
getPlatformConfiguration()
TestSet
getTestSet()
java.util.Map<java.lang.String,java.lang.String>
getVariables()
Returns the variables defined for thisExecutionConfigurationItem
.boolean
isActive()
boolean
isRunAssessments()
void
removeBack2BackSettings()
Removes the back to back settings of this item (set reference to "No Reference Platform").void
setActive(boolean active)
Enable or disable the execution of thisExecutionConfigItem
in the parentExecutionConfiguration
.void
setParameterFile(java.io.File f)
Deprecated.No support for $-variables and relative paths - usesetParameterFilePath(String)
instead.void
setParameterFilePath(java.lang.String path)
Set the parameter file asString
or delete the entry ifpath==null
void
setPlatformConfiguration(PlatformConfiguration pc)
Set a particularPlatformConfiguration
for this ExecutionConfigurationItem.void
setRunAssessments(boolean run)
Enable or disable whether assessments should be executed for thisExecutionConfigItem
.void
setTestSet(TestSet ts)
Set aTestSet
for thisExecutionConfigurationItem
.void
setVariable(java.lang.String name, java.lang.String value)
Set the variablesname
to the givenvalue
or delete it, if value==null
-
Methods inherited from interface com.piketec.tpt.api.IdentifiableRemote
getIdentifier
-
-
-
-
Method Detail
-
getBack2BackSettings
Back2BackSettings getBack2BackSettings(boolean createIfUnavailable) throws java.rmi.RemoteException
Get the current back to back settings. IfcreateIfUnavailable
istrue
the return value is nevernull
and new back to back settings are created with reference directory as reference if no settings are available yet.- Parameters:
createIfUnavailable
- iftrue
the result is nevernull
and new setting are created if none are set.- Returns:
- Returns the Back2BackSettings if already configured, creates and returns fresh settings
if set to "No Reference Platform" and
createIfUnavailable
istrue
,null
otherwise. - Throws:
java.rmi.RemoteException
- remote communication problem
-
removeBack2BackSettings
void removeBack2BackSettings() throws java.rmi.RemoteException
Removes the back to back settings of this item (set reference to "No Reference Platform").- Throws:
java.rmi.RemoteException
- remote communication problem
-
getExecutionConfiguration
ExecutionConfiguration getExecutionConfiguration() throws ApiException, java.rmi.RemoteException
- Returns:
- The
ExecutionConfiguration
this instance belongs to. - Throws:
java.rmi.RemoteException
- remote communication problemApiException
- If the instance does not belong to anExecutionConfiguration
and therefore is not part of a TPT model.
-
getIndex
int getIndex() throws ApiException, java.rmi.RemoteException
- Returns:
- The index of this instance in its
ExecutionConfiguration
. - Throws:
java.rmi.RemoteException
- remote communication problemApiException
- If the instance does not belong to aExecutionConfiguration
and therefore is not part of a TPT model.
-
setActive
void setActive(boolean active) throws java.rmi.RemoteException
Enable or disable the execution of thisExecutionConfigItem
in the parentExecutionConfiguration
.- Parameters:
active
-true
to enable,false
otherwise- Throws:
java.rmi.RemoteException
- remote communication problem
-
isActive
boolean isActive() throws java.rmi.RemoteException
- Returns:
- Returns whether this
ExecutionConfigItem
is enabled for execution or not. - Throws:
java.rmi.RemoteException
- remote communication problem
-
getTestSet
TestSet getTestSet() throws java.rmi.RemoteException
- Returns:
- Returns the selected test set or
null
if it set to "Selected test cases". - Throws:
java.rmi.RemoteException
- remote communication problem
-
getPlatformConfiguration
PlatformConfiguration getPlatformConfiguration() throws java.rmi.RemoteException
- Returns:
- Returns the currently selected
PlatformConfiguration
ornull
if none has been selected so far. - Throws:
java.rmi.RemoteException
- remote communication problem
-
getParameterFile
@Deprecated java.io.File getParameterFile() throws java.rmi.RemoteException
Deprecated.No support for $-variables and relative paths - usegetParameterFilePath()
instead. Will be removed in TPT-18.- Returns:
- Returns the parameter file or
null
if none has been selected so far. - Throws:
java.rmi.RemoteException
- remote communication problem
-
getParameterFilePath
java.lang.String getParameterFilePath() throws java.rmi.RemoteException
- Returns:
- The parameter file as
String
ornull
if none has yet been selected. - Throws:
java.rmi.RemoteException
- remote communication problem
-
getVariables
java.util.Map<java.lang.String,java.lang.String> getVariables() throws java.rmi.RemoteException
Returns the variables defined for thisExecutionConfigurationItem
.These variable could potentially overwrite variables defined in a parent scope. However, other variables defined in a parent scope are not returned by this function.
- Returns:
- A map containing the names of the "locally" defined variables and there "local" values.
- Throws:
java.rmi.RemoteException
- remote communication problem
-
setTestSet
void setTestSet(TestSet ts) throws java.rmi.RemoteException
Set aTestSet
for thisExecutionConfigurationItem
.- Parameters:
ts
- the test set to be set.- Throws:
java.rmi.RemoteException
- remote communication problem
-
setPlatformConfiguration
void setPlatformConfiguration(PlatformConfiguration pc) throws java.rmi.RemoteException
Set a particularPlatformConfiguration
for this ExecutionConfigurationItem.- Parameters:
pc
- The Platform Configuration- Throws:
java.rmi.RemoteException
- remote communication problem
-
setParameterFile
@Deprecated void setParameterFile(java.io.File f) throws java.rmi.RemoteException
Deprecated.No support for $-variables and relative paths - usesetParameterFilePath(String)
instead. Will be removed in TPT-18.Set the parameter file asFile
or deletes the entry iff==null
- Parameters:
f
- The file containing the parameter set.- Throws:
java.rmi.RemoteException
- remote communication problem
-
setParameterFilePath
void setParameterFilePath(java.lang.String path) throws java.rmi.RemoteException
Set the parameter file asString
or delete the entry ifpath==null
- Parameters:
path
- A string containing the path to the parameter file.- Throws:
java.rmi.RemoteException
- remote communication problem
-
setRunAssessments
void setRunAssessments(boolean run) throws java.rmi.RemoteException
Enable or disable whether assessments should be executed for thisExecutionConfigItem
.This option enables the user to omit the assessments for a particular Platform Configuration although the execution of assessments is enabled for the Execution Configuration.
However, in the opposite case, disabling the assessment in the Execution Configuration and enabling it for the Platform will have no effect.
- Parameters:
run
- A Boolean indicating whether the assessments shall be run or not.- Throws:
java.rmi.RemoteException
- remote communication problem
-
isRunAssessments
boolean isRunAssessments() throws java.rmi.RemoteException
- Returns:
- Returns
true
if assessments should be executed for thisExecutionConfigItem
. - Throws:
java.rmi.RemoteException
- remote communication problem
-
setVariable
void setVariable(java.lang.String name, java.lang.String value) throws ApiException, java.rmi.RemoteException
Set the variablesname
to the givenvalue
or delete it, if value==null
- Parameters:
name
- The name of the variablevalue
- Either the value forname
ornull
to deletename
- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- ifname==null
-
-