public class Testcase
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected int | cntThe number of tests to be performed. | 
| protected long | durationThe time needed to perform the test. | 
| static java.lang.String | PROPERTY_TEST_TIMEOUTThe name of the property for defining a test timeout. | 
| protected TestReport[] | reportsThe test reports. | 
| Constructor and Description | 
|---|
| Testcase()Create a new testcase. | 
| Testcase(int cnt)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. | 
| java.lang.String | getHTMLFragment(int number,
               java.lang.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. | 
| java.lang.String | toString()Returns a string representation of the object. | 
public static final java.lang.String PROPERTY_TEST_TIMEOUT
protected int cnt
protected TestReport[] reports
protected long duration
public Testcase()
public Testcase(int cnt)
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 java.lang.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.toString in class java.lang.Objectpublic java.lang.String getHTMLFragment(int number,
                                        java.lang.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.