|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jameleon.result.JameleonTestResult net.sf.jameleon.result.TestResultWithChildren net.sf.jameleon.result.TestCaseResult
public class TestCaseResult
An implementation of @see TestResult that keeps track of all of the function point results as well as the the sessio results
Field Summary | |
---|---|
protected boolean |
countableResultFailed
|
protected Calendar |
dateTimeExecuted
|
protected String |
testCaseDocsFile
The name of the test case docs file |
protected String |
testName
The name of the test case |
Fields inherited from class net.sf.jameleon.result.TestResultWithChildren |
---|
childrenResults, failedResults |
Fields inherited from class net.sf.jameleon.result.JameleonTestResult |
---|
columnNumber, E_CDATA, elementTagName, error, errorFile, executionTime, failed, lineNumber, parentResults, S_CDATA, scriptFileName, tag |
Constructor Summary | |
---|---|
TestCaseResult()
|
|
TestCaseResult(FunctionalPoint tag)
|
|
TestCaseResult(String testName,
FunctionalPoint tag)
|
Method Summary | |
---|---|
void |
countFailure()
Mark this result a failed |
void |
destroy()
|
List |
getCountableResults()
Gets all the countable ancestor children results that can be counted as test case results |
Calendar |
getDateTimeExecuted()
Gets the date and time this result was executed |
List |
getFailedCountableResults()
Gets all the failed ancestor children results that can be counted as test case results |
List |
getFailedResults()
Gets a list of failed child results |
String |
getPercentagePassed()
Gets the percentage total tests passed. |
static String |
getPercentagePassed(int testsRun,
int testsFailed)
Gets the percentage total tests passed. |
String |
getTestCaseDocsFile()
|
String |
getTestName()
|
boolean |
isCountableResultFailed()
Get whether this result failed or not |
boolean |
isDataDriven()
Tells whether this result is data driven or not. |
void |
recordFailureToCountableResult()
|
void |
setDateTimeExecuted(Calendar dateTimeExecuted)
Sets the date and time this result was executed |
void |
setTestCaseDocsFile(String testCaseDocsFile)
|
void |
setTestName(String name)
|
String |
toXML()
Implement this method the same way the toString method would be implemented, except
the object's information should be in a valid XML format. |
Methods inherited from class net.sf.jameleon.result.TestResultWithChildren |
---|
addChildResult, addFailedResult, getAllChildrenResults, getAllFailedLeafChildrenResults, getChildrenResults, getCountableChildResults, hasChildren, isParent |
Methods inherited from class net.sf.jameleon.result.JameleonTestResult |
---|
copyLocationAwareProperties, equals, escapeXML, failed, findAncestorByClass, getColumnNumber, getElementName, getError, getErrorFile, getErrorMsg, getExecutionTime, getExecutionTimeToDisplay, getFailedRowNum, getFileName, getHtmlFormattedErrorMsg, getHtmlFormattedStackTrace, getIdentifier, getLineNumber, getOutcome, getParentResults, getTag, hashCode, isA, passed, setColumnNumber, setElementName, setError, setErrorFile, setExecutionTime, setFailed, setFileName, setLineNumber, setParentResults, setTag, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.jameleon.result.HasChildResults |
---|
setFailed |
Field Detail |
---|
protected String testName
protected String testCaseDocsFile
protected boolean countableResultFailed
protected Calendar dateTimeExecuted
Constructor Detail |
---|
public TestCaseResult()
public TestCaseResult(FunctionalPoint tag)
public TestCaseResult(String testName, FunctionalPoint tag)
Method Detail |
---|
public void setTestName(String name)
public String getTestName()
public String getTestCaseDocsFile()
public void setTestCaseDocsFile(String testCaseDocsFile)
public Calendar getDateTimeExecuted()
JameleonTestResult
getDateTimeExecuted
in class JameleonTestResult
public void setDateTimeExecuted(Calendar dateTimeExecuted)
JameleonTestResult
setDateTimeExecuted
in class JameleonTestResult
dateTimeExecuted
- The date and time this result was executedpublic List getFailedResults()
getFailedResults
in interface HasChildResults
getFailedResults
in class TestResultWithChildren
public void destroy()
destroy
in class TestResultWithChildren
public String toXML()
XMLable
toString
method would be implemented, except
the object's information should be in a valid XML format.
toXML
in interface XMLable
toXML
in class TestResultWithChildren
public List getCountableResults()
TestResultWithChildren
getCountableResults
in interface HasChildResults
getCountableResults
in class TestResultWithChildren
public List getFailedCountableResults()
getFailedCountableResults
in interface HasChildResults
getFailedCountableResults
in class TestResultWithChildren
public String getPercentagePassed()
public static String getPercentagePassed(int testsRun, int testsFailed)
testsRun
- The number of tests runtestsFailed
- The number of tests failed
public void recordFailureToCountableResult()
recordFailureToCountableResult
in class JameleonTestResult
public boolean isDataDriven()
JameleonTestResult
isDataDriven
in class JameleonTestResult
true
if this result is a data driven result or false
if it is not.public void countFailure()
CountableResult
countFailure
in interface CountableResult
public boolean isCountableResultFailed()
CountableResult
isCountableResultFailed
in interface CountableResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |