IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.testgen.core
Class TestGenerator

java.lang.Object
  extended by com.ibm.rational.test.lt.testgen.core.TestGenerator

public class TestGenerator
extends Object

A test generator is responsible for performing test generation, based on an input test generation configuration.


Constructor Summary
TestGenerator(TestGenerationConfiguration configuration, IRecordingSession recordingSession, ITestGeneratorLog log)
          Instantiates a new test generator.
 
Method Summary
 LTTest generateTest(IProgressMonitor monitor)
          Performs test generation and returns the main output test (i.e. the test without any split).
 TestGenerationConfiguration getConfiguration()
          Returns the test generation configuration performed by this test generator.
 List<IFile> getOutputFiles()
          Returns the files generated by the test generation process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestGenerator

public TestGenerator(TestGenerationConfiguration configuration,
                     IRecordingSession recordingSession,
                     ITestGeneratorLog log)
              throws CoreException
Instantiates a new test generator.

Parameters:
configuration - The specification of the test generation.
log - A log where any message will be reported during the test generation.
Throws:
CoreException
Method Detail

generateTest

public LTTest generateTest(IProgressMonitor monitor)
                    throws CoreException
Performs test generation and returns the main output test (i.e. the test without any split). This is a long running operation, that should be typically run in a workspace operation that (at least) includes the files returned by TestGenerator.getOutputFiles().

Parameters:
monitor - A progress monitor.
Returns:
The main test that was generated, or null if the operation was cancelled.
Throws:
CoreException - If a problem occurs, because of I/O issue, because the recording session is invalid, or because a contributor (test generator or converter) reported a fatal error.

getOutputFiles

public List<IFile> getOutputFiles()
Returns the files generated by the test generation process. This method can be called even before test generation occurs.

Returns:
the files generated by the test generation process. This list may be empty if no output has been specified (see TestGenerationConfiguration.NO_FILE_OUTPUT_PROPERTY).

getConfiguration

public final TestGenerationConfiguration getConfiguration()
Returns the test generation configuration performed by this test generator.

Returns:
the test generation configuration performed by this test generator.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.