corelib.services.web.tests
Class WebPageLoaderForTesting<WebPageType extends WebPage>
java.lang.Object
corelib.services.web.tests.WebPageLoaderForTesting<WebPageType>
- Type Parameters:
WebPageType - Identify the Web page class to used for this test case.
public abstract class WebPageLoaderForTesting<WebPageType extends WebPage>
- extends java.lang.Object
This abstract class is used to run web page test case, based on the Ellipse Framework.
- Since:
- 0.2.12
- Author:
- Dominique Liard
|
Constructor Summary |
WebPageLoaderForTesting(java.lang.String webPageFilename)
This class constructor produces a new test case based on the specified XML page description. |
WebPageLoaderForTesting(java.lang.String webPageFilename,
java.lang.String submissionMode)
This class constructor produces a new test case based on the specified XML page description and form submission method. |
|
Method Summary |
void |
start()
Launches a request on the web page with the specified form's submission method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
webPage
protected WebPageType extends WebPage webPage
webPageClassName
protected java.lang.String webPageClassName
xmlDocument
protected org.w3c.dom.Document xmlDocument
request
protected MockedHttpRequest request
response
protected MockedHttpResponse response
WebPageLoaderForTesting
public WebPageLoaderForTesting(java.lang.String webPageFilename)
throws java.lang.Exception
- This class constructor produces a new test case based on the specified XML page description.
This associated mocked request simulates a GET request.
- Parameters:
webPageFilename - The filename to use for the XML page description
- Throws:
java.lang.Exception - Thrown if an error is detected during the web page construction.
WebPageLoaderForTesting
public WebPageLoaderForTesting(java.lang.String webPageFilename,
java.lang.String submissionMode)
throws java.lang.Exception
- This class constructor produces a new test case based on the specified XML page description and form submission method.
- Parameters:
webPageFilename - The filename to use for the XML page descriptionsubmissionMode - The form's submission method for this request (can be GET or POST).
- Throws:
java.lang.Exception - Thrown if an error is detected during the web page construction.
start
public void start()
throws java.lang.Exception
- Launches a request on the web page with the specified form's submission method.
- Throws:
java.lang.Exception - Thrown if an error is detected during the web page's request.
In this case, the exception's stack trace is printed into the mocked HTTP response.
CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.
Copyright 2012 Infini Software - All Rights Reserved.