net.sf.jameleon.plugin.httpunit
Class HtmlTableValidation

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.httpunit.HttpUnitFunctionTag
                      extended by net.sf.jameleon.plugin.httpunit.HtmlPageValidation
                          extended by net.sf.jameleon.plugin.httpunit.HtmlTableValidation
All Implemented Interfaces:
BreakPoint, Attributable, Storable, DynaTag, LocationAware, Tag

public class HtmlTableValidation
extends HtmlPageValidation

Generic page validation for page title, text, and links that may exist in a specific location.

Tag Name: <hu-table-validation> Type: validation

Field Summary
 
Fields inherited from class net.sf.jameleon.plugin.httpunit.HtmlPageValidation
formNameOrId, imagesNotPresent, imagesPresent, linksNotPresent, linksPresent, stripHtmlComments, textNotPresent, textPresent, title, titleContains, trimWhitespace, validateImageResource, validateLinkResource, validationOccured
 
Fields inherited from class net.sf.jameleon.plugin.httpunit.HttpUnitFunctionTag
currentPage, httpUnitFrameName, listener, requestTime, session
 
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
HtmlTableValidation()
           
 
Method Summary
protected  void addParameter(String name, String value)
          Add paramter for validation
protected  void addParameter(String name, String value, String paramType)
          Add paramter for validation
protected  void addParameter(String name, String value, String paramType, int row, int col)
          Add paramter for validation
protected  void addParameter(String name, String value, String paramType, int row, int col, String tableIndex, String tableIdentifier)
          Add paramter for validation
 void setup()
           
 void tearDown()
           
 void testBlock()
           
 
Methods inherited from class net.sf.jameleon.plugin.httpunit.HtmlPageValidation
assertResourceValid, validateFormTypes, validateImagesNotPresent, validateImagesPresent, validateLinksNotPresent, validateLinksPresent, validateTextNotPresent, validateTextPresent
 
Methods inherited from class net.sf.jameleon.plugin.httpunit.HttpUnitFunctionTag
assertFormElementPresent, assertFormElementPresent, assertFormElementPresent, assertFormElementPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertFormPresent, assertImageNotPresent, assertImageNotPresent, assertImageNotPresent, assertImageNotPresent, assertImagePresent, assertImagePresent, assertImagePresent, assertImagePresent, assertLinkPresent, assertLinkPresent, assertLinkPresent, assertLinkPresent, assertLinkPresentInTable, assertLinkPresentInTable, assertLinkPresentInTable, assertOptionDisplayContains, assertOptionDisplayContains, assertOptionDisplayContains, assertOptionDisplayContains, assertOptionDisplayEndsWith, assertOptionDisplayEndsWith, assertOptionDisplayEndsWith, assertOptionDisplayEndsWith, assertOptionDisplayEquals, assertOptionDisplayEquals, assertOptionDisplayEquals, assertOptionDisplayEquals, assertOptionDisplayStartsWith, assertOptionDisplayStartsWith, assertOptionDisplayStartsWith, assertOptionDisplayStartsWith, assertOptionValueEquals, assertOptionValueEquals, assertOptionValueEquals, assertOptionValueEquals, assertTableNotPresent, assertTableNotPresent, assertTableNotPresent, assertTableNotPresent, assertTablePresent, assertTablePresent, assertTablePresent, assertTablePresent, assertTextInputEquals, assertTextInputEquals, assertTextInputEquals, assertTextInputEquals, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextNotPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTextPresent, assertTitleContains, assertTitleContains, assertTitleContains, assertTitleContains, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleEquals, assertTitleNotEquals, assertTitleNotEquals, assertTitleNotEquals, assertTitleNotEquals, beginSession, beginSessionAt, clickButton, clickButtonWithID, clickButtonWithName, clickLink, clickLink, clickLink, clickLinkWithId, clickLinkWithImage, clickLinkWithImageSrc, clickLinkWithText, getBaseUrl, getCurrentPage, getCurrentPageText, getForm, getHttpSession, getImage, getLink, getLinkInTable, getOptionDisplay, getOptionValue, getOptionValueContains, getOptionValueEndsWith, getOptionValueMatches, getOptionValueStartsWith, getResponse, getTable, getTableColumnCells, getTrimmedCellText, pluginTearDown, setFormParameterValueFromContext, setHttpUnitFrameName, setupEnvironment, store, submitForm, submitForm
 
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, setUpFunctionResults, setVariable, 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
 

Constructor Detail

HtmlTableValidation

public HtmlTableValidation()
Method Detail

setup

public void setup()
Overrides:
setup in class HtmlPageValidation

testBlock

public void testBlock()
Overrides:
testBlock in class HtmlPageValidation

tearDown

public void tearDown()
Overrides:
tearDown in class HtmlPageValidation

addParameter

protected void addParameter(String name,
                            String value,
                            String paramType,
                            int row,
                            int col,
                            String tableIndex,
                            String tableIdentifier)
Add paramter for validation

Parameters:
name - The name of param
value - The value of the param
paramType - The param type
row - The value row in a table
col - The value col in a table
tableIndex - The table index
tableIdentifier - The table name or id

addParameter

protected void addParameter(String name,
                            String value,
                            String paramType,
                            int row,
                            int col)
Add paramter for validation

Parameters:
name - The name of param
value - The value of the param
paramType - The param type
row - The value row in a table
col - The value col in a table

addParameter

protected void addParameter(String name,
                            String value,
                            String paramType)
Add paramter for validation

Parameters:
name - The name of param
value - The value of the param
paramType - The param type

addParameter

protected void addParameter(String name,
                            String value)
Add paramter for validation

Parameters:
name - The name of param
value - The value of the param


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