org.tynamo.test.functional
Class FunctionalTest

java.lang.Object
  extended by org.tynamo.test.functional.FunctionalTest

public class FunctionalTest
extends Object


Field Summary
protected  com.gargoylesoftware.htmlunit.html.HtmlPage startPage
           
 
Constructor Summary
FunctionalTest()
           
 
Method Summary
protected  void assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page, String xpath)
           
protected  com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlForm form, String buttonValue)
           
protected  com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlPage page, String buttonValue)
           
protected  com.gargoylesoftware.htmlunit.html.HtmlPage clickLinkOnPage(com.gargoylesoftware.htmlunit.html.HtmlPage page, String linkText)
           
protected  com.gargoylesoftware.htmlunit.html.HtmlForm getFirstForm(com.gargoylesoftware.htmlunit.html.HtmlPage page)
           
 void setUp()
           
protected  void setUpWebClient(com.gargoylesoftware.htmlunit.WebClient webClient)
          Hook method which is called during setup phase, before the first request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startPage

protected com.gargoylesoftware.htmlunit.html.HtmlPage startPage
Constructor Detail

FunctionalTest

public FunctionalTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

getFirstForm

protected com.gargoylesoftware.htmlunit.html.HtmlForm getFirstForm(com.gargoylesoftware.htmlunit.html.HtmlPage page)

clickButton

protected com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlForm form,
                                                                  String buttonValue)
                                                           throws IOException
Throws:
IOException

clickButton

protected com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                  String buttonValue)
                                                           throws IOException
Throws:
IOException

clickLinkOnPage

protected com.gargoylesoftware.htmlunit.html.HtmlPage clickLinkOnPage(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                      String linkText)
                                                               throws IOException
Throws:
IOException

assertXPathPresent

protected void assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                  String xpath)
                           throws Exception
Throws:
Exception

setUpWebClient

protected void setUpWebClient(com.gargoylesoftware.htmlunit.WebClient webClient)
Hook method which is called during setup phase, before the first request. It allows subclasses to modify the webClient, such as for disabling javascript

Parameters:
webClient -


Copyright © 2004-2009. All Rights Reserved.