com.xceptance.xlt.api.validators.StandardValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xlt Show documentation
Show all versions of xlt Show documentation
XLT (Xceptance LoadTest) is an extensive load and performance test tool developed and maintained by Xceptance.
package com.xceptance.xlt.api.validators;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
/**
* This validator groups the four most common validators into one to make the integration into the code easier.
*
* @author René Schwietzke (Xceptance Software Technologies GmbH)
*/
public class StandardValidator
{
/**
* The most common validators grouped into one validator to simplify the integration. It will validate the following
* aspects:
*
* - response code,
* - content length,
* - closing HTML tag and
* - JTidy
*
*
* @param page
* the page to check
*/
public void validate(final HtmlPage page) throws Exception
{
// response code = 200?
HttpResponseCodeValidator.getInstance().validate(page);
// does the length match?
ContentLengthValidator.getInstance().validate(page);
// is the page closed with