public class TestSuiteResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TestSuiteResult(java.lang.String suiteid) |
Modifier and Type | Method and Description |
---|---|
void |
addResult(UnitTestResult result)
Api to add UnitTestResult for each test case.
|
UnitTestResult |
createResult(java.lang.String id,
java.lang.String desc,
java.lang.Throwable thr,
int stateVal)
Factory method for creating a UnitTestResult object.
|
java.util.List<UnitTestResult> |
getResults() |
java.lang.String |
getSuiteId() |
java.util.Date |
getTestDate() |
int |
getTotalFailed() |
int |
getTotalPassed() |
int |
getTotalRun() |
int |
getTotalSkipped() |
long |
getTotalTime() |
public TestSuiteResult(java.lang.String suiteid)
suiteid
- the test script idpublic java.util.Date getTestDate()
public java.lang.String getSuiteId()
public void addResult(UnitTestResult result)
result
- the UnitTestResult for the test casepublic java.util.List<UnitTestResult> getResults()
public UnitTestResult createResult(java.lang.String id, java.lang.String desc, java.lang.Throwable thr, int stateVal)
id
- the test case iddesc
- the test case descriptionthr
- the error for the test casestateVal
- the test case state [FAIL,PASS,SKIP,BADSETUP]public long getTotalTime()
public int getTotalRun()
public int getTotalFailed()
public int getTotalPassed()
public int getTotalSkipped()