public class Testcase extends Object
Constructor and Description |
---|
Testcase()
Create a new testcase.
|
Testcase(int cnt,
TestReport[] reports)
Create a testcase which is already performed.
|
Modifier and Type | Method and Description |
---|---|
void |
addReport(TestReport report)
Add a report.
|
long |
getDuration()
Get the test duration.
|
String |
getHTMLFragment(int number,
String name)
Create an HTML representation of this element that can be
included in an HTML document.
|
TestReport[] |
getReports()
Get the reports.
|
int |
getTestCount()
Get the test count.
|
boolean |
isPerformed()
Check if this test case has been performed and is finished.
|
boolean |
isSucceeded()
Have all component tests succeeded.
|
void |
setDuration(long duration)
Get the test duration.
|
void |
setReports(TestReport[] reports)
Set the reports.
|
void |
setTestCount(int cnt)
Set the test count.
|
String |
toString()
Returns a string representation of the object.
|
public Testcase()
public Testcase(int cnt, TestReport[] reports)
public int getTestCount()
public void setTestCount(int cnt)
cnt
- The test count.public long getDuration()
public void setDuration(long duration)
public TestReport[] getReports()
public void addReport(TestReport report)
report
- The report.public void setReports(TestReport[] reports)
reports
- The reports.public boolean isSucceeded()
public boolean isPerformed()
public String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.public String getHTMLFragment(int number, String name)
number
- The number of the testcase (when displayed in a longer list), -1 for no number.name
- The name of the testcase (when displayed in a longer list), null for no name.Copyright © 2013. All Rights Reserved.