|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport net.sf.jameleon.LocationAwareTagSupport net.sf.jameleon.JameleonTagSupport net.sf.jameleon.SessionTag net.sf.jameleon.plugin.htmlunit.HtmlUnitSessionTag
public class HtmlUnitSessionTag
A Session tag for the HtmlUnit plug-in. An example of its use might:
Field Summary | |
---|---|
static String |
BASE_URL
|
protected String |
baseUrl
The url to use when starting the browser. |
static String |
BEGIN_AT
|
protected String |
beginAt
If set, this would be the path after the protocol and/or domain. |
protected Boolean |
enableSslCertCheck
Enable or disable validity checking of SSL certificates. |
protected Integer |
enableSslCertCheckPort
The port to use to connect to https. |
protected HtmlUnitHelper |
htmlHelper
|
protected WebClient |
session
|
Fields inherited from class net.sf.jameleon.SessionTag |
---|
addt, application, beginSession, log, organization, postcondition, props, sessionDelay, sessionResults, tc |
Fields inherited from class net.sf.jameleon.JameleonTagSupport |
---|
attributes, broker, contextVars, fp, unsupportedAttributes |
Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
columnNumber, elementTagName, lineNumber, scriptFileName |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
HtmlUnitSessionTag()
|
Method Summary | |
---|---|
protected void |
deregisterStorable()
Deregister this tag as a storable |
WebWindow |
getCurrentWebWindow()
Gets a handle on the current web window. |
int |
getEnableSslCertCheckPort()
Return the port on which to register the enableSslCertCheck on. |
protected String |
getRequestUrl()
Gets the url to request |
WebClient |
getSession()
Gets the current WebClient or the handle on the session |
WebClient |
getWebClient()
Gets a handle on the WebClient instance used in this session |
HtmlForm |
getWorkingForm()
Gets a handle on the WebClient instance used in this session |
boolean |
isEnableSslCertCheck()
Query whether SSL cert validity checking is enabled. |
protected void |
registerStorable()
Register this tag as a storable |
void |
setUpSession()
|
void |
startApplication()
Loads the URL given by beginAt and baseUrl. |
void |
store(String fName,
int event)
|
void |
tearDownSession()
|
Methods inherited from class net.sf.jameleon.SessionTag |
---|
delaySession, doTag, findParentTestCase, getApplication, getOrganization, getSessionResult, getStoreToFileName, init, recordDataDrivableResult, recordFunctionResult, recordResult, removeChildlessResult, setOrganization, setSessionDelay, tearDown, trace, traceMsg |
Methods inherited from class net.sf.jameleon.JameleonTagSupport |
---|
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
Methods inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Tag |
---|
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
Field Detail |
---|
public static final String BASE_URL
public static final String BEGIN_AT
protected WebClient session
protected HtmlUnitHelper htmlHelper
protected Boolean enableSslCertCheck
protected String baseUrl
protected String beginAt
protected Integer enableSslCertCheckPort
Constructor Detail |
---|
public HtmlUnitSessionTag()
Method Detail |
---|
public void setUpSession()
setUpSession
in class SessionTag
public void tearDownSession()
tearDownSession
in class SessionTag
protected void deregisterStorable()
protected String getRequestUrl()
public WebClient getSession()
public int getEnableSslCertCheckPort()
public boolean isEnableSslCertCheck()
protected void registerStorable()
public void startApplication()
startApplication
in class SessionTag
public void store(String fName, int event) throws IOException
store
in interface Storable
store
in class SessionTag
IOException
public WebWindow getCurrentWebWindow()
getCurrentWebWindow
in interface HtmlUnitDelegate
public WebClient getWebClient()
getWebClient
in interface HtmlUnitDelegate
public HtmlForm getWorkingForm()
getWorkingForm
in interface HtmlUnitDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |