public class WebTestResult
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML_EXCEPTION_CLASSNAME_ATTRIBUTE
Name of Exception XML attribute that contains the exception classname
(see
toXml() ). |
static java.lang.String |
XML_EXCEPTION_ELEMENT
Name of Exception XML tag (see
toXml() ). |
static java.lang.String |
XML_EXCEPTION_MESSAGE_ELEMENT
Name of Exception Message XML tag (see
toXml() ). |
static java.lang.String |
XML_EXCEPTION_STACKTRACE_ELEMENT
Name of Exception Stacktrace XML tag (see
toXml() ). |
static java.lang.String |
XML_ROOT_ELEMENT
Name of Root XML tag (see
toXml() ). |
Constructor and Description |
---|
WebTestResult()
Constructor to call when the test was ok and no error was raised.
|
WebTestResult(java.lang.String theClassName,
java.lang.String theMessage,
java.lang.String theStackTrace)
Constructor used to reconstruct a WebTestResult object from its String
representation.
|
WebTestResult(java.lang.Throwable theException)
Constructor to call when an exception was raised during the test.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExceptionClassName() |
java.lang.String |
getExceptionMessage() |
java.lang.String |
getExceptionStackTrace() |
boolean |
hasException() |
java.lang.String |
toString() |
java.lang.String |
toXml() |
public static final java.lang.String XML_ROOT_ELEMENT
toXml()
).public static final java.lang.String XML_EXCEPTION_ELEMENT
toXml()
).public static final java.lang.String XML_EXCEPTION_CLASSNAME_ATTRIBUTE
toXml()
).public static final java.lang.String XML_EXCEPTION_MESSAGE_ELEMENT
toXml()
).public static final java.lang.String XML_EXCEPTION_STACKTRACE_ELEMENT
toXml()
).public WebTestResult()
public WebTestResult(java.lang.Throwable theException)
theException
- the raised exception.public WebTestResult(java.lang.String theClassName, java.lang.String theMessage, java.lang.String theStackTrace)
theClassName
- the class name of the exception thrown on the server
sidetheMessage
- the message of the exception thrown on the server sidetheStackTrace
- the stack trace of the exception thrown on the
server sidepublic java.lang.String getExceptionClassName()
null
otherwise.public java.lang.String getExceptionMessage()
null
otherwise.public boolean hasException()
public java.lang.String getExceptionStackTrace()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toXml()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.