|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectavignon.AvignonTestState
Maintains state information through the life of a test script file.
| Constructor Summary | |
AvignonTestState()
Constructs an instance with no tags on the stack. |
|
AvignonTestState(AvignonTagHandler[] handlers)
Constructs an instance with an initial tag stack. |
|
| Method Summary | |
boolean |
anyErrors()
Checks if there are any errors for any tests in the current error log. |
boolean |
anyErrorsForTest(java.lang.String testName)
Determines if any errors have been appended to the error log for the given test. |
void |
appendErrorMessage(java.lang.String message)
Appends the current test name and the given message to the error log. |
void |
appendErrorMessage(java.lang.Throwable exception)
Appends the current test name and the stack trace of the given exception to the error log. |
void |
closeApplication()
Deprecated. Deprecated in favor of keeping the application in a handler. |
java.awt.Frame |
getApplication()
Deprecated. Deprecated in favor of keeping the application in a handler. |
protected java.lang.String |
getAppStart()
Deprecated. Deprecated in favor of having individual tags to start the different kinds of applications. |
com.meterware.httpunit.WebRequest |
getCurrentFormRequest()
Deprecated. Deprecated in favor of the avignon.handlers.browser classes. |
org.w3c.dom.Document |
getCurrentResponse()
Deprecated. Deprecated in favor of the avignon.handlers.browser classes. |
java.lang.String |
getErrorMessages()
Returns the text of the current error log. |
com.meterware.httpunit.WebRequest |
getFormRequest(java.lang.String frameName,
java.lang.String button,
java.lang.String value)
Deprecated. Deprecated in favor of the avignon.handlers.browser classes. |
org.w3c.dom.Document |
getFrameContents(java.lang.String frame)
Deprecated. Deprecated in favor of the avignon.handlers.browser classes. |
java.lang.String |
getPageDescriptionDirectory()
Returns the directory in which to look for page descriptions. |
AvignonTagHandler |
getStackTop()
|
java.lang.String |
getTestName()
Returns the current test name. |
void |
initializeApplication()
Deprecated. Deprecated in favor of keeping the application in a handler. |
java.lang.String |
loadPageFromItemClick(java.lang.String frame,
java.lang.String linkText)
Deprecated. Deprecated in favor of the avignon.handlers.browser classes. |
java.lang.String |
loadPageFromPageClick(java.lang.String itemText)
Deprecated. Deprecated in favor of the avignon.handlers.browser classes. |
AvignonTagHandler |
peek(java.lang.Class target)
Searches the element stack for a handler to which the target is assignable. |
AvignonTagHandler[] |
peekAll(java.lang.Class target)
Finds all the handlers on the stack that are instances of the given class. |
protected void |
pop()
|
protected void |
push(AvignonTagHandler handler,
org.xml.sax.Attributes attributes)
Pushes an AvignonTagHandler onto the element stack. |
void |
setTestName(java.lang.String value)
Sets the current test name. |
java.lang.String |
submitRequest(com.meterware.httpunit.WebRequest request)
Deprecated. Deprecated in favor of the avignon.handlers.browser classes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AvignonTestState()
public AvignonTestState(AvignonTagHandler[] handlers)
handlers - The handlers that will be on the stack at construction. The first element is at the bottom of the stack.| Method Detail |
public AvignonTagHandler[] peekAll(java.lang.Class target)
target - The class of handler for which to search.
public boolean anyErrorsForTest(java.lang.String testName)
testName - Name of the test to search for.
public void initializeApplication()
protected java.lang.String getAppStart()
public void closeApplication()
public java.awt.Frame getApplication()
public void appendErrorMessage(java.lang.String message)
message - Text of the message to be appended.public void appendErrorMessage(java.lang.Throwable exception)
exception - Exception to append to the error output.public boolean anyErrors()
public java.lang.String getErrorMessages()
public java.lang.String getTestName()
public void setTestName(java.lang.String value)
value - The name to use for the current test.
protected void push(AvignonTagHandler handler,
org.xml.sax.Attributes attributes)
attributes - The attributes to pass to the handler's start method.handler - The handler to push onto the stack.public AvignonTagHandler getStackTop()
protected void pop()
public AvignonTagHandler peek(java.lang.Class target)
target -
public java.lang.String loadPageFromPageClick(java.lang.String itemText)
itemText - Text of the link to click.
public java.lang.String loadPageFromItemClick(java.lang.String frame,
java.lang.String linkText)
frame - Frame in which to search for the link.linkText - Text of the link to click.
public com.meterware.httpunit.WebRequest getCurrentFormRequest()
public com.meterware.httpunit.WebRequest getFormRequest(java.lang.String frameName,
java.lang.String button,
java.lang.String value)
frameName - Name of the frame in which to search for the form.button - Name of the submit button used on the form.value - Value to use for the submit button.
public java.lang.String submitRequest(com.meterware.httpunit.WebRequest request)
request - Request to submit.
public java.lang.String getPageDescriptionDirectory()
public org.w3c.dom.Document getCurrentResponse()
public org.w3c.dom.Document getFrameContents(java.lang.String frame)
frame - Name of the frame whose Document is desired.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||