com.reuters.msgtest.load
Class LoadTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.reuters.msgtest.RvTestCase
              extended bycom.reuters.msgtest.load.LoadTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CustomStimuliLoadTestCase, RequestReplyLoadTestCase, StandardLoadTestCase

public abstract class LoadTest
extends RvTestCase


Field Summary
protected  TibrvMsgFieldMutator fieldMutator
           
protected  LoadTestResults loadTestResults
           
 com.tibco.tibrv.TibrvMsg NULL_TIBRV_MESSAGE
           
static java.util.Random RANDOM
           
 
Fields inherited from class com.reuters.msgtest.RvTestCase
GE_ERROR, LE_ERROR, NUMBER_OF_FIELDS_ERROR
 
Constructor Summary
LoadTest(java.lang.String name, java.io.File file)
           
 
Method Summary
protected  java.util.List createMessagesToSend(com.tibco.tibrv.TibrvMsg templateMessage, LoadStimulus loadStimulus)
           
protected  LoadTestOutput createPrinterObj(java.lang.String outputterName)
           
 java.io.Writer createResultFileWriter()
           
protected  ValueGenerator createValueGenerator(LoadStimulus loadStimulus)
           
protected  void delay(int delayTime)
           
 LoadTestFixture getLoadTestFixture()
           
 LoadTestResults getLoadTestResults()
           
 RvRecorder getRecorder()
           
abstract  void getResponses()
           
protected  com.tibco.tibrv.TibrvMsg getStimuliMessage()
           
protected  com.tibco.tibrv.TibrvTransport getTibrvTransport()
           
protected  void modifyMessageFields(com.tibco.tibrv.TibrvMsg msg, java.util.List keyFields, ValueGenerator valueGenerator)
           
 void printResults()
           
abstract  void processStimuli()
           
 void setLoadTestFixture(LoadTestFixture loadTestFixture)
           
 void setLoadTestResults(LoadTestResults loadTestResults)
           
 void setRecorder(RvRecorder recorder)
           
protected  void setSendSubject(com.tibco.tibrv.TibrvMsg message, java.lang.String subjectToSend)
           
 void startRecording()
           
 void testLoad()
           
 
Methods inherited from class com.reuters.msgtest.RvTestCase
assertEquals, assertEquals, assertEquals, buildMessage, getRvTestConfiguration
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RANDOM

public static final java.util.Random RANDOM

NULL_TIBRV_MESSAGE

public final com.tibco.tibrv.TibrvMsg NULL_TIBRV_MESSAGE

fieldMutator

protected TibrvMsgFieldMutator fieldMutator

loadTestResults

protected LoadTestResults loadTestResults
Constructor Detail

LoadTest

public LoadTest(java.lang.String name,
                java.io.File file)
Method Detail

testLoad

public void testLoad()
              throws java.lang.Exception
Throws:
java.lang.Exception

getResponses

public abstract void getResponses()
                           throws RvTestException
Throws:
RvTestException

processStimuli

public abstract void processStimuli()
                             throws RvTestException
Throws:
RvTestException

startRecording

public void startRecording()
                    throws com.tibco.tibrv.TibrvException
Throws:
com.tibco.tibrv.TibrvException

createResultFileWriter

public java.io.Writer createResultFileWriter()
                                      throws RvTestException
Throws:
RvTestException

getLoadTestFixture

public LoadTestFixture getLoadTestFixture()

setLoadTestFixture

public void setLoadTestFixture(LoadTestFixture loadTestFixture)

getRecorder

public RvRecorder getRecorder()

setRecorder

public void setRecorder(RvRecorder recorder)

getLoadTestResults

public LoadTestResults getLoadTestResults()

setLoadTestResults

public void setLoadTestResults(LoadTestResults loadTestResults)

getTibrvTransport

protected com.tibco.tibrv.TibrvTransport getTibrvTransport()
                                                    throws RvTestException
Throws:
RvTestException

createValueGenerator

protected ValueGenerator createValueGenerator(LoadStimulus loadStimulus)

getStimuliMessage

protected com.tibco.tibrv.TibrvMsg getStimuliMessage()

modifyMessageFields

protected void modifyMessageFields(com.tibco.tibrv.TibrvMsg msg,
                                   java.util.List keyFields,
                                   ValueGenerator valueGenerator)
                            throws RvTestException
Throws:
RvTestException

createMessagesToSend

protected java.util.List createMessagesToSend(com.tibco.tibrv.TibrvMsg templateMessage,
                                              LoadStimulus loadStimulus)
                                       throws RvTestException
Throws:
RvTestException

printResults

public void printResults()
                  throws RvTestException
Throws:
RvTestException

setSendSubject

protected void setSendSubject(com.tibco.tibrv.TibrvMsg message,
                              java.lang.String subjectToSend)
                       throws RvTestException
Throws:
RvTestException

delay

protected void delay(int delayTime)

createPrinterObj

protected LoadTestOutput createPrinterObj(java.lang.String outputterName)
                                   throws RvTestException
Throws:
RvTestException


Copyright © 2002-2004 The RVTest Team. All Rights Reserved.