|
||||||||||
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.selenium.SeleniumSessionTag
public class SeleniumSessionTag
A Session tag for the Selenium plug-in. An example of its use might:
Field Summary | |
---|---|
protected String |
baseUrl
|
protected String |
beginAt
|
protected String |
browser
|
protected boolean |
multiWindowMode
|
protected String |
seleniumProxyHost
|
protected int |
seleniumProxyPort
|
protected Selenium |
session
A handle on the Selenium server session |
protected boolean |
slowResourcesMode
|
protected boolean |
startSeleniumProxy
|
protected boolean |
stopProxyServerOnSessionClose
|
protected int |
timeoutSeconds
|
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 | |
---|---|
SeleniumSessionTag()
|
Method Summary | |
---|---|
protected void |
createSession()
|
protected void |
deregisterStorable()
Deregister this tag as a storable |
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. |
String |
getBrowser()
Gets the browser to run the selinium tests under. |
boolean |
getMultiWindowMode()
Gets the Selenium multi window mode. |
protected String |
getRequestUrl()
Gets the url to request |
String |
getSeleniumProxyHost()
Gets the Selenium proxy host to connect to. |
int |
getSeleniumProxyPort()
Gets the Selenium proxy port to connect to. |
boolean |
getSeleniumStopProxyServerOnSessionClose()
Gets the Selenium multi window mode. |
Selenium |
getSession()
Gets the Selenium session used to communicate with the web application |
boolean |
getSlowResourcesMode()
Gets the Selenium slow resources mode. |
int |
getTimeoutSeconds()
Gets the Selenium timeout in seconds. |
boolean |
isStartSeleniumProxy()
Set the Selenium proxy server to start when the session starts. |
protected void |
registerStorable()
Register this tag as a storable |
void |
setUpSession()
|
void |
startApplication()
Loads the URL given by beginAt and baseUrl. |
protected void |
startSeleniumProxyServer()
Start a selenium proxy server |
protected void |
startSession()
|
protected void |
stopSeleniumProxyServer()
Start a selenium proxy server |
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 String browser
protected boolean multiWindowMode
protected boolean stopProxyServerOnSessionClose
protected boolean startSeleniumProxy
protected String seleniumProxyHost
protected int seleniumProxyPort
protected int timeoutSeconds
protected Selenium session
protected boolean slowResourcesMode
Constructor Detail |
---|
public SeleniumSessionTag()
Method Detail |
---|
protected void deregisterStorable()
protected String getRequestUrl()
public String getBaseUrl()
public String getBeginAt()
public String getBrowser()
public boolean getSeleniumStopProxyServerOnSessionClose()
public String getSeleniumProxyHost()
public boolean getMultiWindowMode()
public int getSeleniumProxyPort()
public boolean getSlowResourcesMode()
true
, the test will run more slowly to help with debugging.
public int getTimeoutSeconds()
public boolean isStartSeleniumProxy()
public Selenium getSession()
protected void registerStorable()
protected void createSession()
public void setUpSession()
setUpSession
in class SessionTag
public void tearDownSession()
tearDownSession
in class SessionTag
protected void startSeleniumProxyServer()
protected void startSession()
protected void stopSeleniumProxyServer()
public void startApplication()
startApplication
in class SessionTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |