|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jbenchmark.TestFeature
net.sf.jbenchmark.Test
net.sf.jbenchmark.TestGroup
net.sf.jbenchmark.WebPageTestGroup
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.
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 |
public WebPageTestGroup()
Method Detail |
public void setPath(java.lang.String path)
public void setBypassPageCache(boolean bypassPageCache)
public void setPrefetchCount(int count)
public void setPrefetchDelay(int delay)
public void setThreads(int threads)
public void setDuration(int duration)
public void setName(java.lang.String name)
setName
in class TestFeature
public void setDelay(int delay)
public void addAssertion(Assertion assertion)
addAssertion
in class Test
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |