com.ibm.rational.test.lt.testgen.ui

Class TestGenUI



  • public class TestGenUI
    extends Object
    Provides a central access point to the UI features of the test generation framework. This class also provides static routines for common operations, label and images.
    • Constructor Detail

      • TestGenUI

        public TestGenUI()
    • Method Detail

      • startTestGeneration

        public static void startTestGeneration(TestGenerationConfiguration configuration,
                               Shell shell)
        Deprecated. 
        Starts a test generation operation and displays its progress in a modal dialog. The dialog contains a "Run in background" button, so it can be made un-modal by the user. This method is not blocking and returns as soon as the dialog is opened.
        Parameters:
        configuration - The description of the test generation operation.
        shell - The parent shell of the dialog to be created.
        See Also:
        TestGenUI.startTestGeneration(TestGenerationConfiguration, IRecordingSession, Shell)
      • startTestGeneration

        public static void startTestGeneration(TestGenerationConfiguration configuration,
                               IRecordingSession recordingSession,
                               Shell shell)
        Starts a test generation operation and displays its progress in a modal dialog. The dialog contains a "Run in background" button, so it can be made un-modal by the user. This method is not blocking and returns as soon as the dialog is opened.
        Parameters:
        configuration - The description of the test generation operation.
        recordingSession - The recording session used as test generation input. This parameter may be null if the recording session is not password protected and if the recording session path is specified in the configuration.
        shell - The parent shell of the dialog to be created.
      • runTestGeneration

        public static LTTest runTestGeneration(TestGenerationConfiguration configuration,
                               Shell shell)
        Deprecated. 
        Performs a test generation operation and displays its progress in a modal dialog. The dialog contains a "Run in background" button, so it can be made un-modal by the user. This method is blocking until test generation is complete and the user closes the dialog.
        Parameters:
        configuration - The description of the test generation operation.
        shell - The parent shell of the dialog to be created.
        Returns:
        The test (without splits) that was produced by the test generation, or null if test generation failed or was canceled.
        See Also:
        TestGenUI.runTestGeneration(TestGenerationConfiguration, IRecordingSession, Shell)
      • runTestGeneration

        public static LTTest runTestGeneration(TestGenerationConfiguration configuration,
                               IRecordingSession recordingSession,
                               Shell shell)
        Performs a test generation operation and displays its progress in a modal dialog. The dialog contains a "Run in background" button, so it can be made un-modal by the user. This method is blocking until test generation is complete and the user closes the dialog.
        Parameters:
        configuration - The description of the test generation operation.
        recordingSession - The recording session used as test generation input. This parameter may be null if the recording session is not password protected and if the recording session path is specified in the configuration.
        shell - The parent shell of the dialog to be created.
        Returns:
        The test (without splits) that was produced by the test generation, or null if test generation failed or was canceled.
      • applyPreferences

        public static void applyPreferences(TestGenerationConfiguration tgc)
        Sets test generation options that are not explicitly specified in the configuration from the preferences.
      • getTestGeneratorLabel

        public static String getTestGeneratorLabel(String testGeneratorType)
        Returns a user-friendly label for a given test generator id.
        Parameters:
        testGeneratorType - A test generator type ID.
        Returns:
        A label.
      • getTestGeneratorImage

        public static Image getTestGeneratorImage(String testGeneratorType)
        Returns an image for a given test generator id.
        Parameters:
        testGeneratorType - A test generator type ID.
        Returns:
        An image.
      • openNewTestFromFromRecordingWizard

        public static void openNewTestFromFromRecordingWizard(IWorkbenchWindow window)
        Opens the "New Test From Recording" wizard.
        Parameters:
        window - The parent workbench window of the wizard.
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.