|
||||||||||
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.watij.WatijSessionTag
public class WatijSessionTag
A Session tag for the Watij plug-in. An example of its use might:
Field Summary | |
---|---|
protected String |
baseUrl
|
protected String |
beginAt
|
protected IE |
currentIE
A handle on the currently active IE |
protected IE |
session
A handle on the Selenium server 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 | |
---|---|
WatijSessionTag()
|
Method Summary | |
---|---|
protected void |
createSession()
|
String |
getBaseUrl()
Gets the base URL, including the protocol (http://), the domain name and any path informtion. |
String |
getBeginAt()
Gets the trailing path of the URL to begin the browser at if set. |
IE |
getParentSession()
Gets the Selenium session used to communicate with the web application |
protected String |
getRequestUrl()
Gets the url to request |
IE |
getSession()
Gets the Selenium session used to communicate with the web application |
void |
setCurrentIE(IE currentIE)
Sets the current instance of IE to work with. |
void |
setUpSession()
|
void |
startApplication()
Loads the URL given by beginAt and baseUrl. |
void |
tearDownSession()
|
Methods inherited from class net.sf.jameleon.SessionTag |
---|
delaySession, doTag, findParentTestCase, getApplication, getOrganization, getSessionResult, getStoreToFileName, init, recordDataDrivableResult, recordFunctionResult, recordResult, removeChildlessResult, setOrganization, setSessionDelay, store, 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 |
---|
protected String baseUrl
protected String beginAt
protected IE session
protected IE currentIE
Constructor Detail |
---|
public WatijSessionTag()
Method Detail |
---|
public String getBaseUrl()
public String getBeginAt()
protected String getRequestUrl()
public IE getSession()
public IE getParentSession()
protected void createSession()
public void setCurrentIE(IE currentIE)
public void setUpSession()
setUpSession
in class SessionTag
public void tearDownSession()
tearDownSession
in class SessionTag
public void startApplication()
startApplication
in class SessionTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |