|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITestGenerator
A Test Generator receives recorder packets and produces test model elements
that it adds to the test model. It receives packets through the ITestGenerator.process(IRecorderPacket)
or ITestGenerator.inspect(IRecorderPacket)
methods, and add models elements to the
test model using methods from the test stack
available through
its context getter
.
Method Summary | |
---|---|
void |
complete(IProgressMonitor monitor)
Completes the generation. |
void |
dispose()
Allows the test generator to release any resources it has allocated. |
int |
getCompleteOperationWeight()
Returns the relative cost of the complete operation, in percent of the total processing performed by this test generator. |
void |
initialize(ITestGeneratorContext context)
Initializes the test generator. |
void |
inspect(IRecorderPacket packet)
Inspects a recorder packet that was processed by another test generator. |
boolean |
process(IRecorderPacket packet)
Processes a recorder packet. |
Method Detail |
---|
void initialize(ITestGeneratorContext context) throws CoreException
context
- The context in which the test generator will operate.
CoreException
boolean process(IRecorderPacket packet) throws CoreException
packet
- A recorder packet whose type has been declared to be supported by this test generator.
inspect
the recorder packet.
CoreException
void inspect(IRecorderPacket packet) throws CoreException
packet
- A recorder packet whose type has been declared to be supported by this test generator.
CoreException
void complete(IProgressMonitor monitor) throws CoreException
ITestGenerator.dispose()
instead.
monitor
- A progress monitor. This progress monitor can be safely ignored if
ITestGenerator.getCompleteOperationWeight()
returns 0. Otherwise, the implementation
is expected to update this monitor to reflect the operation progress.
CoreException
void dispose()
ITestGenerator.initialize(ITestGeneratorContext)
has been
invoked.
int getCompleteOperationWeight()
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |