public interface ITestGenerator
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.| Modifier and Type | Method and Description |
|---|---|
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.
|
void initialize(ITestGeneratorContext context) throws CoreException
context - The context in which the test generator will operate.CoreExceptionboolean 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.CoreExceptionvoid inspect(IRecorderPacket packet) throws CoreException
packet - A recorder packet whose type has been declared to be supported by this test generator.CoreExceptionvoid 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.CoreExceptionvoid dispose()
ITestGenerator.initialize(ITestGeneratorContext) has been
invoked.int getCompleteOperationWeight()
© Copyright IBM Corp. 2013. All rights reserved.