org.trails.test.functional
Class FunctionalTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.trails.test.functional.FunctionalTest
- All Implemented Interfaces:
- junit.framework.Test
public class FunctionalTest
- extends junit.framework.TestCase
- Author:
- fus8882
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
|
Field Summary |
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
startPage
|
|
Method Summary |
protected void |
assertXPathNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String xpath)
|
protected void |
assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String xpath)
|
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
clickButton(com.gargoylesoftware.htmlunit.html.HtmlForm form,
java.lang.String buttonValue)
|
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
clickButton(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String buttonValue)
|
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
clickLinkOnPage(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String linkText)
|
protected com.gargoylesoftware.htmlunit.html.HtmlDivision |
getErrorDiv(com.gargoylesoftware.htmlunit.html.HtmlPage page)
|
protected com.gargoylesoftware.htmlunit.html.HtmlForm |
getFirstForm(com.gargoylesoftware.htmlunit.html.HtmlPage page)
|
protected java.lang.String |
getId(java.lang.String idField,
com.gargoylesoftware.htmlunit.html.HtmlPage savedCategoryPage)
|
protected com.gargoylesoftware.htmlunit.html.HtmlInput |
getInputByName(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String name)
|
protected com.gargoylesoftware.htmlunit.html.HtmlSelect |
getSelectByName(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String name)
|
protected com.gargoylesoftware.htmlunit.html.HtmlTextArea |
getTextAreaByName(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String name)
|
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 junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startPage
protected com.gargoylesoftware.htmlunit.html.HtmlPage startPage
FunctionalTest
public FunctionalTest()
setUp
public void setUp()
throws java.lang.Exception
- Overrides:
setUp in class junit.framework.TestCase
- Throws:
java.lang.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,
java.lang.String buttonValue)
throws java.io.IOException
- Throws:
java.io.IOException
clickButton
protected com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String buttonValue)
throws java.io.IOException
- Throws:
java.io.IOException
clickLinkOnPage
protected com.gargoylesoftware.htmlunit.html.HtmlPage clickLinkOnPage(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String linkText)
throws java.io.IOException
- Throws:
java.io.IOException
getErrorDiv
protected com.gargoylesoftware.htmlunit.html.HtmlDivision getErrorDiv(com.gargoylesoftware.htmlunit.html.HtmlPage page)
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
getId
protected java.lang.String getId(java.lang.String idField,
com.gargoylesoftware.htmlunit.html.HtmlPage savedCategoryPage)
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
assertXPathPresent
protected void assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String xpath)
throws java.lang.Exception
- Throws:
java.lang.Exception
assertXPathNotPresent
protected void assertXPathNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String xpath)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTextAreaByName
protected com.gargoylesoftware.htmlunit.html.HtmlTextArea getTextAreaByName(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String name)
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
getInputByName
protected com.gargoylesoftware.htmlunit.html.HtmlInput getInputByName(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String name)
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
getSelectByName
protected com.gargoylesoftware.htmlunit.html.HtmlSelect getSelectByName(com.gargoylesoftware.htmlunit.html.HtmlPage page,
java.lang.String name)
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
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-2007. All Rights Reserved.