|
||||||||||
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.jiffie.IESessionTag
public class IESessionTag
This is a Jiffie implementation of the @see SessionTag. It basically starts the application in the state provided by the baseUrl and beginAt variables and creates a new session for the function points to share. An example of its use might:
Field Summary | |
---|---|
protected String |
baseUrl
Used when the beginSession is set to true. |
protected String |
beginAt
Used when the beginSession attribute is set to true. |
protected Vector |
browsers
The list of all open browser windows |
protected boolean |
clickNoOnSecurityAlert
Click no on the Security Alert dialog box if one appears after the session is started. |
protected boolean |
clickYesOnSecurityAlert
Click yes on the Security Alert dialog box if one appears after the session is started. |
protected boolean |
closeIEOnExit
If set to true, then any browsers opened by the session will be closed. |
protected boolean |
enableJacobAutoGc
Turn on com.jacob.autogc |
protected int |
maxWaitTimeInSeconds
The maximum time to wait before timing out. |
protected boolean |
selectedNo
|
protected boolean |
selectedYes
|
protected boolean |
visible
If set to true, then Internet Explorer will be visible. |
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 | |
---|---|
IESessionTag()
|
Method Summary | |
---|---|
void |
addBrowser(InternetExplorer ie)
Add a browser instance to the cache. |
InternetExplorer |
getBrowserAt(int i)
Get the i-th browser window from the cache. |
Vector |
getBrowserCache()
|
InternetExplorer |
getBrowserWithTitle(String title)
Get the browser window from the cache with the matching title. |
InternetExplorer |
getCurrentIE()
Returns the last element of the list of all open browser windows. |
InternetExplorer |
getFirstBrowser()
Get the first browser window from the cache. |
boolean |
getVisible()
|
void |
removeBrowser(InternetExplorer ie)
Remove a browser instance from the cache. |
void |
setUpSession()
|
protected void |
setVariablesFromEnvironment()
|
void |
startApplication()
todo integrate DialogListener with IEEventListener. |
void |
store(String fName,
int event)
|
protected 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 net.sf.jameleon.Storable |
---|
getStoreToFileName |
Methods inherited from interface org.apache.commons.jelly.Tag |
---|
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
Field Detail |
---|
protected boolean visible
protected String baseUrl
protected String beginAt
protected boolean closeIEOnExit
protected int maxWaitTimeInSeconds
protected boolean clickYesOnSecurityAlert
protected boolean selectedYes
protected boolean clickNoOnSecurityAlert
protected boolean enableJacobAutoGc
protected boolean selectedNo
protected Vector browsers
Constructor Detail |
---|
public IESessionTag()
Method Detail |
---|
public void setUpSession()
setUpSession
in class SessionTag
protected void setVariablesFromEnvironment()
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
protected void tearDownSession()
tearDownSession
in class SessionTag
public InternetExplorer getCurrentIE()
public boolean getVisible()
public Vector getBrowserCache()
getBrowserCache
in interface BrowserCache
public void addBrowser(InternetExplorer ie)
addBrowser
in interface BrowserCache
ie
- The browser window that should be added to the cache.public void removeBrowser(InternetExplorer ie)
removeBrowser
in interface BrowserCache
ie
- The browser window that should be removed from the cache.public InternetExplorer getFirstBrowser()
getFirstBrowser
in interface BrowserCache
public InternetExplorer getBrowserAt(int i)
getBrowserAt
in interface BrowserCache
i
- The index of the browser window in the cache. This is usually the i-th browser window opened.
public InternetExplorer getBrowserWithTitle(String title)
getBrowserWithTitle
in interface BrowserCache
title
- The title of the browser window in the cache.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |