org.jete.web
Class WebPageContentValidator
java.lang.Object
org.jete.web.WebPageContentValidator
- All Implemented Interfaces:
- Validator
- public class WebPageContentValidator
- extends java.lang.Object
- implements Validator
Perform the following basic validation of web page content:
- Expected length of the document
- Expected content type
- Expected content value
- Expected page title
The expected content value searches the content for the configured value. This means a small portion of the
relevant text may be searched for in a page.
This Validator only works with instances of the WebSessionValidatedAction
- Version:
- $Id: WebPageContentValidator.html,v 1.3 2006/03/12 02:47:13 tdeast Exp $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebPageContentValidator
public WebPageContentValidator()
validate
public void validate(TestAction action)
- Validate the WebSessionValidatedAction only
- Specified by:
validate
in interface Validator
- Parameters:
action
-
getExpectedTitle
public java.lang.String getExpectedTitle()
setExpectedTitle
public void setExpectedTitle(java.lang.String expectedTitle)
getExpectedContent
public java.lang.String getExpectedContent()
setExpectedContent
public void setExpectedContent(java.lang.String expectedContent)
getExpectedLength
public int getExpectedLength()
setExpectedLength
public void setExpectedLength(int expectedLength)
getExpectedContentType
public java.lang.String getExpectedContentType()
setExpectedContentType
public void setExpectedContentType(java.lang.String expectedContentType)