public interface ITestGeneratorContext
ITestGenerator to
operate.| Modifier and Type | Method and Description |
|---|---|
TestGeneratorConfiguration |
getConfiguration()
Returns the test generator configuration that defines options for this test generator,
if any.
|
IContainer |
getOutputContainer()
Returns the innermost common container (folder or project) of the generated tests.
|
RecorderConfiguration |
getRecorderConfiguration(short recorderId)
Returns the recorder configuration of the recorder with the specified id.
|
RecordingSessionConfiguration |
getRecordingSessionConfiguration()
Returns the recording session configuration that was used to perform
the recording session.
|
<T> T |
getSharedComponent(String id,
Class<T> c)
Retrieves a registered object instance
|
ITestStack |
getStack()
Returns the test stack.
|
ITimeReference |
getTimeReference()
Returns the time reference that allows to convert recording timestamps, expressed
in an implementation-dependent but very accurate unit, to times expressed in
milliseconds.
|
void |
logMessage(com.ibm.rational.test.lt.recorder.core.util.LogMessageSeverity severity,
String message)
Logs a message about the conversion.
|
void |
registerSharedComponent(String id,
Object component)
Registers an object instance that any other test generator would access later
This call must to be made during the init of the test generator or throws an IllegalStateException
|
RecorderAnnotation |
resolveAnnotation(IRecorderAnnotationPacket packet)
Returns the recorder annotation associated to the given annotation packet.
|
ITestStack getStack()
IContainer getOutputContainer()
null
if test generation is run with the TestGenerationConfiguration.NO_FILE_OUTPUT_PROPERTY
option set to true.null if test generation is run with the
TestGenerationConfiguration.NO_FILE_OUTPUT_PROPERTY option set to true.TestGeneratorConfiguration getConfiguration()
null if none was provided in
the test generation configuration.RecordingSessionConfiguration getRecordingSessionConfiguration()
RecorderConfiguration getRecorderConfiguration(short recorderId)
recorderId - A recorder id.null if no recorder has the specified id.IRecorderPacket.getRecorderId()void logMessage(com.ibm.rational.test.lt.recorder.core.util.LogMessageSeverity severity,
String message)
severity - The message severitymessage - A messageITimeReference getTimeReference()
RecorderAnnotation resolveAnnotation(IRecorderAnnotationPacket packet)
null. In this case, the annotation packet should be ignored.packet - An annotation packet.void registerSharedComponent(String id, Object component)
id - An id identifying the componentcomponent - The shared object instance© Copyright IBM Corp. 2016. All rights reserved.