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

Class TestgenCore



  • public class TestgenCore
    extends Object
    Constants and entry points for invoking and using test generation.
    • Field Detail

      • TESTGEN_CONFIG_EXTENSION

        public static final String TESTGEN_CONFIG_EXTENSION
        The extension for Test Generation Configuration persistence files (with no leading dot).
      • 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.
      • 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.
      • 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.
      • 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:
      • 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.
      • 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. 2013. All rights reserved.