net.sf.jbenchmark
Class WebPageTestGroup

java.lang.Object
  extended bynet.sf.jbenchmark.TestFeature
      extended bynet.sf.jbenchmark.Test
          extended bynet.sf.jbenchmark.TestGroup
              extended bynet.sf.jbenchmark.WebPageTestGroup
All Implemented Interfaces:
java.lang.Runnable, TestContext, TestListener

public class WebPageTestGroup
extends TestGroup

A basic test that performs an HTTP get on a single URL, using multiple threads, for a fixed duration. Also prefetches the page a fixed number of times.

Version:
$Id: WebPageTestGroup.java,v 1.2 2004/02/05 09:25:23 dcotterill Exp $
Author:
Adam Murdoch

Constructor Summary
WebPageTestGroup()
          Creates the group.
 
Method Summary
 void addAssertion(Assertion assertion)
          Adds an assertion.
 void setBypassPageCache(boolean bypassPageCache)
          Sets whether the GZip encoding header should be added (defaults to true)
 void setDelay(int delay)
          Sets the delay between each get (ms).
 void setDuration(int duration)
          Sets the test duration (seconds)
 void setName(java.lang.String name)
          Sets the name to use to record stats.
 void setPath(java.lang.String path)
          Sets the path to fetch.
 void setPrefetchCount(int count)
          Sets the number of times to prefetch the page.
 void setPrefetchDelay(int delay)
          Sets the delay between each prefetch.
 void setThreads(int threads)
          Sets the number of threads.
 
Methods inherited from class net.sf.jbenchmark.TestGroup
addListener, addTest, doRun, getAttribute, getExternalResource, getFeatureContext, getListener, getTests, getThreadCount, setAttribute, setContext, testFailed, testFinished, testStart
 
Methods inherited from class net.sf.jbenchmark.Test
addFeature, addResource, doCleanup, doInitialise, finish, getResource, run
 
Methods inherited from class net.sf.jbenchmark.TestFeature
getContext, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.jbenchmark.TestContext
getResource
 

Constructor Detail

WebPageTestGroup

public WebPageTestGroup()
Creates the group.

Method Detail

setPath

public void setPath(java.lang.String path)
Sets the path to fetch.


setBypassPageCache

public void setBypassPageCache(boolean bypassPageCache)
Sets whether the GZip encoding header should be added (defaults to true)


setPrefetchCount

public void setPrefetchCount(int count)
Sets the number of times to prefetch the page.


setPrefetchDelay

public void setPrefetchDelay(int delay)
Sets the delay between each prefetch.


setThreads

public void setThreads(int threads)
Sets the number of threads.


setDuration

public void setDuration(int duration)
Sets the test duration (seconds)


setName

public void setName(java.lang.String name)
Sets the name to use to record stats.

Overrides:
setName in class TestFeature

setDelay

public void setDelay(int delay)
Sets the delay between each get (ms).


addAssertion

public void addAssertion(Assertion assertion)
Adds an assertion.

Overrides:
addAssertion in class Test