net.sf.jbenchmark
Class HttpLogPlayerTest

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

public class HttpLogPlayerTest
extends TestGroup

Http Log Player test will execute http gets from the specified log file

  1. File - http log file this attribute when running from script.
  2. sessionCookie - name of cookie used to identify a session .

Version:
$Id: HttpLogPlayerTest.java,v 1.4 2004/07/28 05:40:18 bdargan Exp $
Author:
Brett Dargan

Constructor Summary
HttpLogPlayerTest()
          Using this constructor, requires that setFile is called.
HttpLogPlayerTest(java.util.List requests)
           
 
Method Summary
protected  TestResult doRun()
          Executes the test.
 java.util.List getFailedTests()
           
 java.util.List getResults()
           
 void setDuration(int duration)
          Sets the test duration (seconds)
 void setFile(java.io.File file)
           
 void setSessionIdentifier(java.lang.String sessionIdentifier)
           
 void setThreads(int threads)
          Sets the number of threads.
 
Methods inherited from class net.sf.jbenchmark.TestGroup
addListener, addTest, getAttribute, getExternalResource, getFeatureContext, getListener, getTests, getThreadCount, setAttribute, setContext, testFailed, testFinished, testStart
 
Methods inherited from class net.sf.jbenchmark.Test
addAssertion, addFeature, addResource, doCleanup, doInitialise, finish, getResource, run
 
Methods inherited from class net.sf.jbenchmark.TestFeature
getContext, getName, setName, 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

HttpLogPlayerTest

public HttpLogPlayerTest()

Using this constructor, requires that setFile is called.


HttpLogPlayerTest

public HttpLogPlayerTest(java.util.List requests)
Parameters:
requests -
Method Detail

doRun

protected TestResult doRun()
                    throws java.lang.Exception
Executes the test. todo - could have a different type of testResult?

Overrides:
doRun in class TestGroup
Throws:
java.lang.Exception

getResults

public java.util.List getResults()
Returns:

getFailedTests

public java.util.List getFailedTests()
Returns:

setFile

public void setFile(java.io.File file)
Parameters:
file -

setSessionIdentifier

public void setSessionIdentifier(java.lang.String sessionIdentifier)
Parameters:
sessionIdentifier - - string name identifying the value to use for session identification, must not contain spaces unless enclosed in quotes.

setThreads

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


setDuration

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