public class Task extends AbstractScheduleElement implements Serializable
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
List<String> |
getArguments()
Get the list of CLI arguments to be passed to the script prior to its
execution.
|
String |
getDisplayName()
Get the task display name.
|
com.tplan.robot.scheduler.Task.ExecutionType |
getExecutionType() |
String |
getFullScriptPath()
Get the full script path.
|
AbstractScriptResult |
getLastResult() |
String |
getName()
Get the task name.
|
TestSuite |
getOwner()
Get the task owner.
|
String |
getScript()
Get the test script this task is associated with.
|
int |
getUID()
Get the task UID.
|
void |
setExecutionType(com.tplan.robot.scheduler.Task.ExecutionType type) |
void |
setLastResult(AbstractScriptResult lastResult) |
void |
setName(String name) |
void |
setScript(String script) |
String |
toString()
Overridden method returning the task display name as it is returned by
getDisplayName() . |
genericEvent, setChanged
public Task(TestSuite owner)
public TestSuite getOwner()
public String getName()
public String getDisplayName()
getName()
or the task file name if the name is not available (is
null or empty string).public void setName(String name)
public com.tplan.robot.scheduler.Task.ExecutionType getExecutionType()
public void setExecutionType(com.tplan.robot.scheduler.Task.ExecutionType type)
public String getScript()
getFullScriptPath()
.public void setScript(String script)
public List<String> getArguments()
public int getUID()
public String toString()
getDisplayName()
.public String getFullScriptPath()
getScript()
is
internally stored in form of a relative path to the schedule XML file.
This applies only to scripts which are part of the same project as the
schedule. This method converts the relative path to a full one.public AbstractScriptResult getLastResult()
public void setLastResult(AbstractScriptResult lastResult)
lastResult
- the lastResult to set