net.sf.jameleon.plugin.jagacy
Class JagacySessionTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jameleon.LocationAwareTagSupport
          extended by net.sf.jameleon.JameleonTagSupport
              extended by net.sf.jameleon.SessionTag
                  extended by net.sf.jameleon.plugin.jagacy.JagacySessionTag
All Implemented Interfaces:
Attributable, DataDrivableResultRecordable, FunctionResultRecordable, Storable, DynaTag, LocationAware, Tag

public class JagacySessionTag
extends SessionTag

A Session tag for the Jagacy 3270 plug-in. An example of its use might:


 <testcase xmlns="jelly:jameleon">
     <jagacy-session host="locis.loc.gov" beginSession="true">
       <jagacy-is-text-present
           functionId="Check that page has 'the' in it."
           text="the"/>
     </jagacy-session>
 </testcase>
 

Tag Name: <jagacy-session>

Field Summary
protected  String host
           
protected static String HOST_CONTEXT_NAME
           
protected static String HOST_PROP_NAME
           
protected  com.jagacy.Session3270 session
          The 3270 session handle
protected static String SESSION_NAME
           
protected  Boolean 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
JagacySessionTag()
           
 
Method Summary
 String getHost()
           
 com.jagacy.Session3270 getSession3270()
           
 Boolean getVisible()
           
protected  boolean isStringNotNull(String str)
           
 void setHost(String host)
           
 void setUpSession()
           
 void setVisible(boolean visible)
           
 void startApplication()
           
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, 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

SESSION_NAME

protected static final String SESSION_NAME
See Also:
Constant Field Values

HOST_PROP_NAME

protected static final String HOST_PROP_NAME
See Also:
Constant Field Values

HOST_CONTEXT_NAME

protected static final String HOST_CONTEXT_NAME
See Also:
Constant Field Values

host

protected String host

visible

protected Boolean visible

session

protected com.jagacy.Session3270 session
The 3270 session handle

Constructor Detail

JagacySessionTag

public JagacySessionTag()
Method Detail

setUpSession

public void setUpSession()
Overrides:
setUpSession in class SessionTag

startApplication

public void startApplication()
Overrides:
startApplication in class SessionTag

getHost

public String getHost()

getSession3270

public com.jagacy.Session3270 getSession3270()

setHost

public void setHost(String host)
This attribute is recognized by Jameleon

getVisible

public Boolean getVisible()

setVisible

public void setVisible(boolean visible)
This attribute is recognized by Jameleon

tearDownSession

protected void tearDownSession()
Overrides:
tearDownSession in class SessionTag

isStringNotNull

protected boolean isStringNotNull(String str)


Copyright © 2005-2008 Christian Hargraves. All Rights Reserved.