public class TestSuite extends AbstractScheduleElement implements PropertyChangeListener
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Class and Description |
---|---|
static class |
TestSuite.ReportLocType
Report location type.
|
static class |
TestSuite.StartType
Schedule start type.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String name,
String value) |
void |
addTask(Task t) |
static Node |
exportParams(Element parent,
String name,
List<ScheduleParameter> params) |
Map<String,String> |
getAttributes() |
Map<Task,Dependency> |
getChildren(Task t,
Map<Task,Dependency> map) |
String |
getDisplayName()
Get the schedule display name.
|
int |
getExecutionCount() |
List<ScheduleParameter> |
getInParams() |
File |
getLastReport()
Get location of the last report.
|
String |
getName()
Get the schedule name.
|
List<ScheduleParameter> |
getOutParams() |
String |
getReportFile()
Get the custom report file.
|
TestSuite.ReportLocType |
getReportLocationType()
Get the report location type.
|
TestSuite.StartType |
getStartType()
Get the schedule start type.
|
String |
getSubtype()
Get the test suite subtype.
|
List<Task> |
getTasks()
Get the list of tasks (scripts).
|
String |
getXslFile()
Get the report XSL file which was previously set through the
setXslFile(java.lang.String) . |
boolean |
isCopyXsl()
Find out whether copying of the XSL file to the schedule report folder is
enabled or disabled.
|
boolean |
isReportEnabled()
Get the report enable flag.
|
boolean |
isXslEnabled()
Find out if the test suite is configured to link the XSL file to the
schedule XML report.
|
void |
propertyChange(PropertyChangeEvent evt)
Implementation of the
PropertyChangeListener interface. |
void |
setCopyXsl(boolean copyXsl)
Enable or disable copying of the XSL file to the schedule report folder.
|
void |
setExecutionCount(int executionCount) |
void |
setName(String name) |
void |
setReportEnabled(boolean reportEnabled)
Enable or disable the report.
|
void |
setReportLocationType(TestSuite.ReportLocType reportLocationType,
String reportFile)
Set the report location type.
|
void |
setSubtype(String subtype)
Get the test suite subtype.
|
void |
setXslEnabled(boolean xslEnabled)
Enable of disable linking of XSL to the schedule XML report.
|
void |
setXslFile(String xslFile)
Set a custom XSL to be linked from the schedule XML data.
|
genericEvent, setChanged
public static Node exportParams(Element parent, String name, List<ScheduleParameter> params)
public String getName()
public String getDisplayName()
getName()
or the schedule file name if the name is
not available (is null or empty string).public void setName(String name)
public int getExecutionCount()
public void setExecutionCount(int executionCount)
executionCount
- the executionCount to setpublic void addTask(Task t)
public Map<Task,Dependency> getChildren(Task t, Map<Task,Dependency> map)
public TestSuite.StartType getStartType()
public boolean isReportEnabled()
public void setReportEnabled(boolean reportEnabled)
reportEnabled
- true will enable report, false will disable.public TestSuite.ReportLocType getReportLocationType()
public void setReportLocationType(TestSuite.ReportLocType reportLocationType, String reportFile)
reportLocationType
- the report location type.reportFile
- the custom report file applicable when the type is
being set to TestSuite.ReportLocType.CUSTOM
.public String getReportFile()
TestSuite.ReportLocType.CUSTOM
report location type where the file was
previously set through the
setReportLocationType(com.tplan.robot.scheduler.TestSuite.ReportLocType, java.lang.String)
method. If the report location type is set to
TestSuite.ReportLocType.DEFAULT
the method may return null.public String getXslFile()
setXslFile(java.lang.String)
.public void setXslFile(String xslFile)
xslFile
- a custom XSL file.public boolean isXslEnabled()
true
(enabled).public void setXslEnabled(boolean xslEnabled)
xslEnabled
- true enables linking, false disables. The default value
is true
(enabled).public boolean isCopyXsl()
true
(enabled).public void setCopyXsl(boolean copyXsl)
copyXsl
- true enables copying, false disables.public File getLastReport()
public void propertyChange(PropertyChangeEvent evt)
PropertyChangeListener
interface. Not to be
used externally.propertyChange
in interface PropertyChangeListener
evt
- a property change event.public List<ScheduleParameter> getInParams()
public List<ScheduleParameter> getOutParams()
public String getSubtype()
public void setSubtype(String subtype)
subtype
- the workitem subtype.