ix.ip2.test
Class TestSequenceGenerator
java.lang.Object
ix.ip2.test.PanelTest
ix.ip2.test.TestSequenceGenerator
- All Implemented Interfaces:
- TestElement
- Direct Known Subclasses:
- TestGen
public class TestSequenceGenerator
- extends PanelTest
A test that sends a series of messages generated from a TestItem template.
Either the same message can be sent to a series of different agents,
or a given agent can be sent a series of messages of the same type
which vary in their "main content" (= pattern for Issues and Activities,
text for Reports and ChatMessages). If greater variety is required,
a TestSequence may be specified directly.
A delay in milliseconds may be placed before each message.
By default, this is taken from getDelayBefore() of the template,
but different initial and between delays may be specified instead.
- See Also:
TestSequence
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNSPECIFIED
protected static final int UNSPECIFIED
- See Also:
- Constant Field Values
initialDelay
protected int initialDelay
delayBetween
protected int delayBetween
template
protected TestItem template
toNames
protected java.util.List toNames
contentStrings
protected java.util.List contentStrings
TestSequenceGenerator
public TestSequenceGenerator()
getInitialDelay
public int getInitialDelay()
setInitialDelay
public void setInitialDelay(int initialDelay)
getDelayBetween
public int getDelayBetween()
setDelayBetween
public void setDelayBetween(int delayBetween)
getTemplate
public TestItem getTemplate()
setTemplate
public void setTemplate(TestItem template)
getToNames
public java.util.List getToNames()
setToNames
public void setToNames(java.util.List toNames)
getContentStrings
public java.util.List getContentStrings()
setContentStrings
public void setContentStrings(java.util.List contentStrings)
getTestItems
public java.util.List getTestItems()
- Specified by:
getTestItems
in class PanelTest
generateTestSequence
public TestSequence generateTestSequence()
generateForNames
protected void generateForNames(java.util.List toNames,
java.util.List items)
generateForContents
protected void generateForContents(java.util.List contentStrings,
java.util.List items)
copyTemplate
protected TestItem copyTemplate()
setContent
protected void setContent(Sendable toSend,
java.lang.String text)