IBM Rational Performance Tester SDK

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

java.lang.Object
  extended by com.ibm.rational.test.lt.testgen.ui.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 Summary
TestGenUI()
           
 
Method Summary
static void applyPreferences(TestGenerationConfiguration tgc)
          Sets test generation options that are not explicitly specified in the configuration from the preferences.
static Image getTestGeneratorImage(String testGeneratorType)
          Returns an image for a given test generator id.
static String getTestGeneratorLabel(String testGeneratorType)
          Returns a user-friendly label for a given test generator id.
static LTTest runTestGeneration(TestGenerationConfiguration configuration, IRecordingSession recordingSession, Shell shell)
          Performs a test generation operation and displays its progress in a modal dialog.
static LTTest runTestGeneration(TestGenerationConfiguration configuration, Shell shell)
          Deprecated.  
static void startTestGeneration(TestGenerationConfiguration configuration, IRecordingSession recordingSession, Shell shell)
          Starts a test generation operation and displays its progress in a modal dialog.
static void startTestGeneration(TestGenerationConfiguration configuration, Shell shell)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.