|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jameleon.result.JameleonTestResult
public abstract class JameleonTestResult
An abstract Test Result.
Generic toXML
and
Field Summary | |
---|---|
protected int |
columnNumber
|
static String |
E_CDATA
Syntax for closing cdata value |
protected String |
elementTagName
|
protected Throwable |
error
The stack trace from the failure if one occured |
protected File |
errorFile
The file that contains the display of the error |
protected long |
executionTime
The time it took to execute the entire test step |
protected boolean |
failed
Whether this result failed or not |
protected int |
lineNumber
|
protected HasChildResults |
parentResults
The parent results |
static String |
S_CDATA
Syntax for opening cdata value |
protected String |
scriptFileName
|
protected FunctionalPoint |
tag
The tag that this result represents |
Constructor Summary | |
---|---|
JameleonTestResult()
Default Constructor - Does nothing |
|
JameleonTestResult(FunctionalPoint tag)
Constructor |
|
JameleonTestResult(FunctionalPoint tag,
HasChildResults parentResults)
Constructor |
Method Summary | |
---|---|
void |
copyLocationAwareProperties(LocationAware la)
|
void |
destroy()
|
boolean |
equals(Object obj)
|
protected String |
escapeXML(String text)
|
boolean |
failed()
|
JameleonTestResult |
findAncestorByClass(Class clzz)
|
int |
getColumnNumber()
|
Calendar |
getDateTimeExecuted()
Gets the date and time this result was executed |
String |
getElementName()
|
Throwable |
getError()
|
File |
getErrorFile()
|
String |
getErrorMsg()
|
long |
getExecutionTime()
|
String |
getExecutionTimeToDisplay()
|
int |
getFailedRowNum()
|
String |
getFileName()
|
String |
getHtmlFormattedErrorMsg()
|
String |
getHtmlFormattedStackTrace()
Gets the stack trace of the error formatted HTML-friendly |
String |
getIdentifier()
|
int |
getLineNumber()
|
String |
getOutcome()
|
HasChildResults |
getParentResults()
Gets the parent results |
FunctionalPoint |
getTag()
Gets the tag that is tied to the results |
abstract boolean |
hasChildren()
Tells whether this result has children or not. |
int |
hashCode()
|
boolean |
isA(String clss)
|
abstract boolean |
isDataDriven()
Tells whether this result is data driven or not. |
abstract boolean |
isParent()
Tells whether this result is a parent result or not. |
boolean |
passed()
|
void |
recordFailureToCountableResult()
|
void |
setColumnNumber(int columnNumber)
Sets the column number of the tag |
void |
setDateTimeExecuted(Calendar dateTimeExecuted)
Sets the date and time this result was executed |
void |
setElementName(String elementName)
Sets the element name which caused the problem |
void |
setError(Throwable error)
Sets the error of the function point if one occured |
void |
setErrorFile(File errorFile)
Sets the file that contains the display of the error |
void |
setExecutionTime(long executionTime)
Set the execution time |
void |
setFailed()
|
void |
setFileName(String fileName)
Sets the Jelly file which caused the problem |
void |
setLineNumber(int lineNumber)
Sets the line number of the tag |
void |
setParentResults(HasChildResults parentResults)
Sets the parent results |
void |
setTag(FunctionalPoint tag)
Sets the tag that is tied to the results |
String |
toString()
|
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long executionTime
protected boolean failed
protected FunctionalPoint tag
protected Throwable error
protected File errorFile
protected HasChildResults parentResults
public static final String S_CDATA
public static final String E_CDATA
protected int lineNumber
protected int columnNumber
protected String scriptFileName
protected String elementTagName
Constructor Detail |
---|
public JameleonTestResult()
public JameleonTestResult(FunctionalPoint tag)
tag
- - the tag of the restultspublic JameleonTestResult(FunctionalPoint tag, HasChildResults parentResults)
tag
- - the tag of the restultsparentResults
- - the results which are parents to this resultMethod Detail |
---|
public void destroy()
public Throwable getError()
public void setError(Throwable error)
error
- - The error of the function point if one occuredpublic JameleonTestResult findAncestorByClass(Class clzz)
public int getFailedRowNum()
public void recordFailureToCountableResult()
public String getErrorMsg()
public String getHtmlFormattedErrorMsg()
public String getHtmlFormattedStackTrace()
public long getExecutionTime()
public String getExecutionTimeToDisplay()
public void setExecutionTime(long executionTime)
executionTime
- - The time it took to run this steppublic File getErrorFile()
public void setErrorFile(File errorFile)
errorFile
- - The file that contains the display of the errorpublic String getIdentifier()
public void setFailed()
public String getOutcome()
public abstract boolean isParent()
true
if this result is a parent result or false
if it is a leaf node resultpublic abstract boolean isDataDriven()
true
if this result is a data driven result or false
if it is not.public abstract boolean hasChildren()
true
if this result has childrenpublic HasChildResults getParentResults()
public void setParentResults(HasChildResults parentResults)
parentResults
- - the parent results of this resultpublic FunctionalPoint getTag()
public void setTag(FunctionalPoint tag)
tag
- - The tag that the result is tried topublic boolean passed()
public boolean failed()
protected String escapeXML(String text)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
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
public void copyLocationAwareProperties(LocationAware la)
public int getLineNumber()
getLineNumber
in interface LocationAware
public void setLineNumber(int lineNumber)
setLineNumber
in interface LocationAware
public int getColumnNumber()
getColumnNumber
in interface LocationAware
public void setColumnNumber(int columnNumber)
setColumnNumber
in interface LocationAware
public String getFileName()
getFileName
in interface LocationAware
public void setFileName(String fileName)
setFileName
in interface LocationAware
public String getElementName()
getElementName
in interface LocationAware
public Calendar getDateTimeExecuted()
public void setDateTimeExecuted(Calendar dateTimeExecuted)
dateTimeExecuted
- The date and time this result was executedpublic void setElementName(String elementName)
setElementName
in interface LocationAware
public boolean isA(String clss)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |