IBM Rational Performance Tester SDK

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

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

public class TestgenCore
extends Object

Constants and entry points for invoking and using test generation.


Field Summary
static String BOUNDARIES_ANNOTATION_TESTGEN_ID
          The id of the Boundaries Annotation Test Generator.
static String COMMENT_ANNOTATION_TESTGEN_ID
          The id of the Comment Annotation Test Generator.
static TestgenCore INSTANCE
          The unique (singleton) instance of this class.
static String PACKET_FILTER_ID
          The id of the Packet Filter converter.
static String PACKET_FILTER_REVERSE
          The name of the boolean property that specifies whether the filtering performed by a filter should be reversed, i.e. packets that do not match the condition should be filtered.
static String PACKET_SORTER_ID
          The id of the Packet Sorter converter.
static String TESTGEN_CONFIG_EXTENSION
          The extension for Test Generation Configuration persistence files (with no leading dot).
 
Constructor Summary
TestgenCore()
           
 
Method Summary
 com.ibm.rational.test.lt.testgen.core.configurator.ITestGenerationConfigurator createTestGenerationConfigurator(IRecordingSession session)
          Creates a new Test Generation Configurator for the specified recording session.
 Set<String> getConsumablePacketTypes(String testGeneratorId)
          Returns all the packet types that can be consumed by a given test generator.
 com.ibm.rational.test.lt.testgen.core.internal.TestgenExtensionRegistry getExtensionRegistry()
          Returns the Test Generation Core extension registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TESTGEN_CONFIG_EXTENSION

public static final String TESTGEN_CONFIG_EXTENSION
The extension for Test Generation Configuration persistence files (with no leading dot).

See Also:
Constant Field Values

COMMENT_ANNOTATION_TESTGEN_ID

public static final String COMMENT_ANNOTATION_TESTGEN_ID
The id of the Comment Annotation Test Generator. This test generator handles comment annotations (comment and screenshots) and generate corresponding elements in the test suite. This test generator never modifies the test generation stack depth, so it is compatible with any other test generator.

See Also:
Constant Field Values

BOUNDARIES_ANNOTATION_TESTGEN_ID

public static final String BOUNDARIES_ANNOTATION_TESTGEN_ID
The id of the Boundaries Annotation Test Generator. This test generator handles transaction and split test annotations, and generate corresponding elements in the test suite. This test generator pushes public containers to the test generation stack, so it is not advised for a test generator to specify it as an allowed test generator.

See Also:
Constant Field Values

PACKET_SORTER_ID

public static final String PACKET_SORTER_ID
The id of the Packet Sorter converter. This packet converter sorts packets by their start timestamp.

See Also:
Constant Field Values

PACKET_FILTER_ID

public static final String PACKET_FILTER_ID
The id of the Packet Filter converter. This packet filters out packets that matches a specific condition defined by a tester. Its configuration must be of type PacketFilterConfiguration. It understands the following properties:

See Also:
Constant Field Values

PACKET_FILTER_REVERSE

public static final String PACKET_FILTER_REVERSE
The name of the boolean property that specifies whether the filtering performed by a filter should be reversed, i.e. packets that do not match the condition should be filtered. Its default value is false.

See Also:
Constant Field Values

INSTANCE

public static final TestgenCore INSTANCE
The unique (singleton) instance of this class. Never null.

Constructor Detail

TestgenCore

public TestgenCore()
Method Detail

getExtensionRegistry

public com.ibm.rational.test.lt.testgen.core.internal.TestgenExtensionRegistry getExtensionRegistry()
Returns the Test Generation Core extension registry. This method is for internal use only.

Returns:

createTestGenerationConfigurator

public com.ibm.rational.test.lt.testgen.core.configurator.ITestGenerationConfigurator createTestGenerationConfigurator(IRecordingSession session)
Creates a new Test Generation Configurator for the specified recording session.

Parameters:
session - A recording session. If it advised that the session be complete, otherwise the configurator may return inaccurate answers if the recording session has changed since the configurator creation.
Returns:
A new configurator.

getConsumablePacketTypes

public Set<String> getConsumablePacketTypes(String testGeneratorId)
Returns all the packet types that can be consumed by a given test generator.

Parameters:
testGeneratorId - A test generator id.
Returns:
All the packet types that can be consumed by a given test generator.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.