|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITestStack
The test stack is used during test generation to track and act on the current state of the
generated test(s). The stack contains one or more CBElementHost; the first is always a
LTTest
, which corresponds to the current test being generated. Additional
CBElementHosts can be pushed, popped or peeked.
Method Summary | |
---|---|
void |
add(CBActionElement element,
long timestamp,
boolean hasThinkTime)
Adds an element to the current element host. |
void |
addSplitPoint(String name,
String comment,
long timestamp)
Adds a split point marker. |
long |
getElapsedTime(long startTimestamp)
Returns the elapsed time between the given timestamp and the end of the last added element in the stack. |
LTTest |
getTest()
Returns the generated test, i.e. the first element in the stack. |
CBElementHost |
peek()
Returns the current element host in the stack. |
CBElementHost |
pop(long timestamp)
Pops the current element host of the stack. |
void |
push(CBElementHost host,
long timestamp,
boolean hasThinkTime)
Pushes a new element host to the stack. |
void |
push(CBElementHost host,
long timestamp,
boolean hasThinkTime,
Set<String> allowedTestGenerators,
boolean breakable)
Pushes a new element host to the stack. |
Method Detail |
---|
void push(CBElementHost host, long timestamp, boolean hasThinkTime)
host
- An element host.timestamp
- The timestamp of the added element. This timestamp is expressed
in the same unit as packet timestamps from the recording, and will be used as
a reference to compute the think time of the next generated element. The value
-1
must be used if the element does not have a time stamp.hasThinkTime
- specifies whether the host element has an effective
think time when executing or not.void push(CBElementHost host, long timestamp, boolean hasThinkTime, Set<String> allowedTestGenerators, boolean breakable)
host
- An element host.timestamp
- The timestamp of the added element. This timestamp is expressed
in the same unit as packet timestamps from the recording, and will be used as
a reference to compute the think time of the next generated element. The value
-1
must be used if the element does not have a time stamp.allowedTestGenerators
- A list of test generator ids (qualified id) that
are allowed to add elements under the element host. It is not necessary for
a test generator to include itself in the list as a test generator is always
allowed to add elements under a private element host it has created.breakable
- Specifies whether the container may be automatically popped off
by the test stack if another test generator needs to add an element, but is not
allowed to add it under the element host.hasThinkTime
- specifies whether the host element has an effective
think time when executing or not.CBElementHost pop(long timestamp)
timestamp
- The timestamp of the added element. This timestamp is expressed
in the same unit as packet timestamps from the recording, and will be used as
a reference to compute the think time of the next generated element. The value
-1
must be used if the element does not have a time stamp.
CBElementHost peek()
LTTest getTest()
void add(CBActionElement element, long timestamp, boolean hasThinkTime)
element
- An element.timestamp
- The timestamp of the added element. This timestamp is expressed
in the same unit as packet timestamps from the recording, and will be used as
a reference to compute the think time of the next generated element. The value
-1
must be used if the element does not have a time stamp.hasThinkTime
- specifies whether the host element has an effective
think time when executing or not.void addSplitPoint(String name, String comment, long timestamp)
name
- The split name.comment
- Any comment associated to the split point.long getElapsedTime(long startTimestamp)
startTimestamp
- The start time stamp of the element
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |