net.sf.jameleon.plugin.jiffie.tags
Class IEValidationTag

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.function.FunctionTag
                  extended by net.sf.jameleon.plugin.jiffie.IEFunctionTag
                      extended by net.sf.jameleon.plugin.jiffie.tags.IEValidationTag
All Implemented Interfaces:
BreakPoint, Attributable, DocumentDelegate, Storable, DynaTag, LocationAware, Tag

public class IEValidationTag
extends IEFunctionTag

Validates the title, text and links on the page. If no checks occur, then this tag will fail. Some example uses might be: To validate the title is 'Jameleon':


  <ie-validate functionId="Verify the title is 'Jameleon'" 
       title="Jameleon"/>
 
To validate the title is not 'Jameleon':

  <ie-validate functionId="Verify the title is NOT 'Jameleon'" 
       titleNoEquals="Jameleon"/>
 
To check that 'automated testing tool' is on the page:

  <ie-validate functionId="check that 'automated testing tool' is on the page" 
       textPresent="automated testing tool"/>
 
To check that a link with the given text 'some link' is on the page:

  <ie-validate functionId="Validate that 'some link' is on the current page." 
       linkPresent="some link"/>
 
Most of the attributes can support multiple values. For example, to check that 'automated testing tool' and 'book' are on the page:

  <map-variable toVariable="textPresent" variableType="list">
      <variable-value>automated testing tool</variable-value>
      <variable-value>book</variable-value>
  </map-variable>
  <ie-validate functionId="check that 'automated testing tool' is on the page" 
       textPresent="${textPresent}"/>
 

Tag Name: <ie-validate> Type: validation
Steps:
  1. Validate that the title is what is expected, if provided
  2. Check that the given text, if provided, appears on the page.

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.jameleon.plugin.jiffie.IEFunctionTag
IEFunctionTag.TagRunnable
 
Field Summary
protected  List linkPresent
          Link that should exist on the resulting page
protected  List textNotPresent
          Text that should NOT exist on the resulting page
protected  List textPresent
          Text that should exist on the resulting page
protected  String title
          Expected title
protected  List titleNotEquals
          Title that is NOT expected.
 
Fields inherited from class net.sf.jameleon.plugin.jiffie.IEFunctionTag
elementFinder, frameId, frameName, frameSrc, highlightActiveElement, ie, session, visible, WAIT, workingForm
 
Fields inherited from class net.sf.jameleon.function.FunctionTag
addt, breakPoint, expectException, expectFailure, fResults, functionDelay, functionId, lastFileWritten, log, NO_DELAY, params, postcondition, precondition, st, state, tct, vpt
 
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
IEValidationTag()
           
 
Method Summary
 void testBlock()
           
 
Methods inherited from class net.sf.jameleon.plugin.jiffie.IEFunctionTag
activateBrowserWithIndex, activateBrowserWithTitle, activateLastNewWindow, assertCheckboxChecked, assertCheckboxChecked, assertCheckboxChecked, assertCheckboxChecked, assertCheckboxWithNameAndValueChecked, assertCheckboxWithNameAndValueChecked, assertCheckboxWithNameAndValueChecked, assertCheckboxWithNameAndValueChecked, assertLinkPresent, assertLinkPresent, assertLinkPresent, assertLinkPresent, assertLinkWithHrefPresent, assertLinkWithHrefPresent, assertPasswordFieldValueEquals, assertPasswordFieldValueEquals, assertPasswordFieldValueEquals, assertPasswordFieldValueEquals, assertRadioButtonChecked, assertRadioButtonChecked, assertRadioButtonChecked, assertRadioButtonChecked, assertSelectFieldOptionIndexEquals, assertSelectFieldOptionIndexEquals, assertSelectFieldOptionIndexEquals, assertSelectFieldOptionIndexEquals, assertSelectFieldOptionIndexesEqual, assertSelectFieldOptionIndexesEqual, assertSelectFieldOptionIndexesEqual, assertSelectFieldOptionIndexesEqual, assertSelectFieldOptionTextEquals, assertSelectFieldOptionTextEquals, assertSelectFieldOptionTextEquals, assertSelectFieldOptionTextEquals, assertSelectFieldOptionTextValuesEqual, assertSelectFieldOptionTextValuesEqual, assertSelectFieldOptionTextValuesEqual, assertSelectFieldOptionTextValuesEqual, assertSelectFieldOptionValueEquals, assertSelectFieldOptionValueEquals, assertSelectFieldOptionValueEquals, assertSelectFieldOptionValueEquals, assertSelectFieldOptionValuesEqual, assertSelectFieldOptionValuesEqual, assertSelectFieldOptionValuesEqual, assertSelectFieldOptionValuesEqual, assertTextAreaValueEquals, assertTextAreaValueEquals, assertTextAreaValueEquals, assertTextAreaValueEquals, assertTextFieldValueEquals, assertTextFieldValueEquals, assertTextFieldValueEquals, assertTextFieldValueEquals, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleNotEquals, assertTitleNotEquals, assertTitleNotEquals, assertTitleNotEquals, assertXPath, assertXPathResultsSizeEquals, assertXPathResultsSizeEquals, clearSelectFieldValues, clickIHTMLElement, clickImageLinkWithAltText, clickLink, clickLink, clickLink, clickLinkWithHref, clickLinkWithId, clickLinkWithImageSrc, clickLinkWithText, clickSubmitButtonWithName, closeBrowserWindow, closeBrowserWindow, fireEvent, getAreaElementByAltText, getByXPath, getCheckbox, getCheckboxWithNameAndValue, getDocument, getElementByXPath, getElementsByXPath, getForm, getFormWithId, getFormWithIndex, getFormWithName, getFormWithXPath, getFrameWithId, getFrameWithName, getFrameWithSrc, getHiddenField, getHTMLSource, getIHTMLElement, getIHTMLElement, getIHTMLElement, getIHTMLElement, getIHTMLElements, getIHTMLElements, getIHTMLElements, getIHTMLElements, getImageLinkWithAltText, getInputFieldByName, getLink, getLinksWith, getLinkWith, getLinkWithHref, getLinkWithID, getLinkWithImageSrc, getLinkWithName, getPasswordField, getRadioButton, getSelectedOptionField, getSelectField, getSubmit, getSubmit, getSubmitButtonWithName, getSubmitButtonWithNameAndValue, getSubmitButtonWithValue, getTextArea, getTextField, getWorkingForm, highlightActiveElement, isTextInPage, navigate, navigate, pluginTearDown, setCheckbox, setCheckboxWithNameAndValue, setHiddenFieldValue, setPasswordFieldValue, setRadioButtonValue, setSelectFieldOptionIndex, setSelectFieldOptionIndexes, setSelectFieldOptionText, setSelectFieldOptionTextValues, setSelectFieldOptionValue, setSelectFieldOptionValues, setTextAreaValue, setTextFieldValue, setTextFieldValue, setupEnvironment, setWorkingForm, setWorkingForm, setWorkingFormById, setWorkingFormByIndex, setWorkingFormByName, store, submitWorkingForm
 
Methods inherited from class net.sf.jameleon.function.FunctionTag
addParam, addRequiredAttribute, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertFalse, assertFalse, assertMethod, assertMethodWithLevel, assertNotNull, assertNotNull, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNotSame, assertNotSame, assertNull, assertNull, assertNull, assertNull, assertRegexMatches, assertRegexMatches, assertRegexMatches, assertRegexMatches, assertSame, assertSame, assertSame, assertSame, assertTextContains, assertTextContains, assertTextContains, assertTextContains, assertTextEndsWith, assertTextEndsWith, assertTextEndsWith, assertTextEndsWith, assertTextStartsWith, assertTextStartsWith, assertTextStartsWith, assertTextStartsWith, assertTrue, assertTrue, assertTrue, assertTrue, checkParamTypes, cleanUp, cleanUpEnvironment, delay, delay, doTag, fail, fail, fail, fail, getFunctionId, getFunctionResults, getMatchingRegexText, getParam, getParamLength, getParams, getParentTags, getSessionTag, getStoreToFileName, getStringOrDefault, getTestCaseTag, getVariable, getVariableAsBoolean, getVariableAsList, getVariableAsString, isBreakPoint, isContextVariableNull, recordFunctionResult, regexMatches, removeFunctionResult, removeVariable, setDefaultVariableValue, setDefaultVariableValue, setExpectException, setExpectFailure, setFunctionDelay, setFunctionId, setup, setUpFunctionResults, setVariable, tearDown, traceMsg, validate
 
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

title

protected String title
Expected title

This attribute is recognized by Jameleon
Required: false
Context Name: ieValidationTitle

titleNotEquals

protected List titleNotEquals
Title that is NOT expected. If multiple titles are passed, then ALL titles are compared.

This attribute is recognized by Jameleon
Required: false
Context Name: ieValidationTitleNotEquals

textPresent

protected List textPresent
Text that should exist on the resulting page

This attribute is recognized by Jameleon
Required: false
Context Name: ieValidationTextPresent

textNotPresent

protected List textNotPresent
Text that should NOT exist on the resulting page

This attribute is recognized by Jameleon
Required: false
Context Name: ieValidationTextNotPresent

linkPresent

protected List linkPresent
Link that should exist on the resulting page

This attribute is recognized by Jameleon
Required: false
Context Name: ieValidationLinkPresent
Constructor Detail

IEValidationTag

public IEValidationTag()
Method Detail

testBlock

public void testBlock()
Overrides:
testBlock in class FunctionTag


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