|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cactus.client.WebTestResultParser
Parse a string representing a Test result and transform it into a
WebTestResult object.
WebTestResult| Field Summary | |
protected java.lang.String |
exceptionClassname
Parsed exception class name |
protected java.lang.String |
exceptionMessage
Parsed exception message |
protected java.lang.String |
exceptionStacktrace
Parsed exception stack trace |
| Constructor Summary | |
WebTestResultParser()
|
|
| Method Summary | |
WebTestResult |
parse(java.lang.String theData)
Parse a string and transform it into a WebTestResult object. |
protected java.lang.String |
readExceptionClassname(java.lang.String theData)
Read the WebTestResult.XML_EXCEPTION_CLASSNAME_ATTRIBUTE portion
and extract the exception classname. |
protected java.lang.String |
readExceptionMessage(java.lang.String theData)
Read the WebTestResult.XML_EXCEPTION_MESSAGE_ELEMENT portion
and extract the exception message. |
protected java.lang.String |
readExceptionStacktrace(java.lang.String theData)
Read the WebTestResult.XML_EXCEPTION_STACKTRACE_ELEMENT portion
and extract the exception stacktrace. |
protected java.lang.String |
readRootElement(java.lang.String theData)
Read the WebTestResult.XML_ROOT_ELEMENT portion. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String exceptionClassname
protected java.lang.String exceptionMessage
protected java.lang.String exceptionStacktrace
| Constructor Detail |
public WebTestResultParser()
| Method Detail |
public WebTestResult parse(java.lang.String theData)
throws ParsingException
WebTestResult object.
theData - the string to parse
WebTestResult object corresponding to the data
string
ParsingException - if an error happens during parsing
protected java.lang.String readRootElement(java.lang.String theData)
throws ParsingException
WebTestResult.XML_ROOT_ELEMENT portion.
theData - the string buffer to parse
ParsingException - if an error happens during parsing
protected java.lang.String readExceptionClassname(java.lang.String theData)
throws ParsingException
WebTestResult.XML_EXCEPTION_CLASSNAME_ATTRIBUTE portion
and extract the exception classname.
theData - the string buffer to parse
ParsingException - if an error happens during parsing
protected java.lang.String readExceptionMessage(java.lang.String theData)
throws ParsingException
WebTestResult.XML_EXCEPTION_MESSAGE_ELEMENT portion
and extract the exception message.
theData - the string buffer to parse
ParsingException - if an error happens during parsing
protected java.lang.String readExceptionStacktrace(java.lang.String theData)
throws ParsingException
WebTestResult.XML_EXCEPTION_STACKTRACE_ELEMENT portion
and extract the exception stacktrace.
theData - the string buffer to parse
ParsingException - if an error happens during parsing
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||