IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.testgen.core.configuration
Class TestGenerationConfiguration

java.lang.Object
  extended by com.ibm.rational.test.lt.recorder.core.property.AbstractConfiguration
      extended by com.ibm.rational.test.lt.testgen.core.configuration.TestGenerationConfiguration
All Implemented Interfaces:
Serializable, Cloneable

public class TestGenerationConfiguration
extends AbstractConfiguration

See Also:
Serialized Form

Field Summary
static String AUTO_DATA_CORRELATION_NAMES_PROPERTY
          This boolean property defines whether data correlation names should be automatically computed.
static String AUTO_DATA_CORRELATION_PROPERTY
          This boolean property defines whether data correlation should automatically be performed on each generated test.
static String CONVERSION_RESULT_PROPERTY
          This String property defines the workspace absolute path of the a recording session file that contains the result of the conversion of the input recording session, after its contents has been passed through all packet converters configured in the Test Generation Configuration.
static String DATA_CORRELATION_RULES_FILE_LIST_PROPERTY
          This list of String property defines the list of dcrules files that have to be sequentially executed at the end of the test generation.
static String DATA_TRANSFORMER_IDS
          This string property defines the id of the data transformer that should invoked after all test generators have completed.
static String DO_IMPLIED_DC_RULES
          This string property indicates whether the transfomer-implied data correlation rules have to be applied after all others data correlations in case the transfomer has been successfully applied on any test element.
static String HIDE_UNCONSUMED_PACKETS_WARNING_PROPERTY
          A boolean specifying that the warning concerning unconsumed packets will be hidden or not Default value: false.
static String LOG_DEBUG_MESSAGES
          A boolean specifying that debug messages issued by test generator components should be logged to eclipse error log as information messages.
static String NO_FILE_OUTPUT_PROPERTY
          This boolean property asks the test generation framework not to produce any file.
static String OUTPUT_SCHEDULE_PROPERTY
          This String property defines the workspace absolute path of the output schedule to be produced by the test generation.
static String OUTPUT_TEST_PROPERTY
          This String property defines the workspace absolute path of the output test to be produced by the test generation.
static String OUTPUTS_TEST_PROPERTY
          This String List property defines the workspace absolute paths of the output tests to be produced by the test generation.
static String RECORDING_SESSION_FILE_PROPERTY
          This String property defines the workspace absolute path of the input recording session to be consumed by the test generation.
static String RULES_DATA_CORRELATION_PROPERTY
          This boolean property indicates whether some rules files are to be executed at the end of the test generation.
static String RULES_GENERATES_LOGS_PROPERTY
          This boolean property indicates whether rules applied on test suite should generate logs or not or use fixed log level constraint (@see DCRulesWizardPage for explanation about value)
static String RULES_INPUTS
          This map property contains inputs to be passed to data correlation rules.
 
Fields inherited from class com.ibm.rational.test.lt.recorder.core.property.AbstractConfiguration
properties
 
Constructor Summary
TestGenerationConfiguration()
           
 
Method Summary
protected  void addChildConfiguration(AbstractConfiguration config, String operandName)
           
protected  void afterXmlDeserialization()
           
protected  void beforeXmlSerialization()
           
 TestGenerationConfiguration clone()
           
 ArrayList<AnnotationOverrideConfiguration> getAnnotationOverrides()
           
protected  String getElementName()
           
protected  String getNamespace()
           
 ArrayList<PacketConverterConfiguration> getPacketConverterConfigurations()
           
protected  String getPreferedPrefix()
           
protected  String getProtocol()
           
 TestGeneratorConfiguration getTestGeneratorConfiguration(String testGeneratorType)
           
 ArrayList<TestGeneratorConfiguration> getTestGeneratorConfigurations()
           
 ArrayList<TestGeneratorPriorityConfiguration> getTestGeneratorPriorities()
           
protected  void writeChildConfigurations(javax.xml.stream.XMLStreamWriter writer)
           
 
Methods inherited from class com.ibm.rational.test.lt.recorder.core.property.AbstractConfiguration
assignUniqueIds, cloneProperties, get, getBoolean, getData, getEnum, getInteger, getList, getMap, getObfuscatedList, getObfuscatedString, getPreferedIdPrefixForChild, getString, getString, isOperand, loadAttributes, remove, saveDataToAttachment, serialize, setBoolean, setData, setData, setEnum, setInteger, setList, setMap, setObfuscatedList, setObfuscatedString, setString, toString, write, write, write, writeAttributes, writeChildConfiguration, writeChildConfigurations
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RECORDING_SESSION_FILE_PROPERTY

public static final String RECORDING_SESSION_FILE_PROPERTY
This String property defines the workspace absolute path of the input recording session to be consumed by the test generation. This property is required.

See Also:
Constant Field Values

OUTPUT_TEST_PROPERTY

public static final String OUTPUT_TEST_PROPERTY
This String property defines the workspace absolute path of the output test to be produced by the test generation. It should not contain the file extension, since the extension depends on whether the test generator produces a test suite or a schedule. However if it contains an extension, the extension may be changed accordingly. Either this property or TestGenerationConfiguration.OUTPUTS_TEST_PROPERTY is required, unless TestGenerationConfiguration.NO_FILE_OUTPUT_PROPERTY is set to true. If both are specified, the original unsplit test will be generated under the file specified by this property. In addition, all outputs must reside under the same project (but not necessarily under the same folder).

See Also:
Constant Field Values

OUTPUTS_TEST_PROPERTY

public static final String OUTPUTS_TEST_PROPERTY
This String List property defines the workspace absolute paths of the output tests to be produced by the test generation. It may not contain the extension, in which case the appropriate extension will be appended. However if it contains an extension, the extension may be changed accordingly. Either this property or TestGenerationConfiguration.OUTPUT_TEST_PROPERTY is required, unless TestGenerationConfiguration.NO_FILE_OUTPUT_PROPERTY is set to true. Note that the count of items should match the count of test pieces that will be generated. This count is equal to the number of Split test annotations plus one (taking into account any annotation override that may have been defined in this configuration). The list may contain empty string or null items, indicating that the corresponding piece of recording should be ignored. All values, if not null or empty, must refer to files that are located under the same project. This constraint also applies the TestGenerationConfiguration.OUTPUT_TEST_PROPERTY property if it also specified.

See Also:
Constant Field Values

OUTPUT_SCHEDULE_PROPERTY

public static final String OUTPUT_SCHEDULE_PROPERTY
This String property defines the workspace absolute path of the output schedule to be produced by the test generation. It should not contain the file extension, since the extension depends on whether the test generator produces a test suite or a schedule. However if it contains an extension, the extension may be changed accordingly. In addition, all outputs must reside under the same project (but not necessarily under the same folder).

See Also:
Constant Field Values

NO_FILE_OUTPUT_PROPERTY

public static final String NO_FILE_OUTPUT_PROPERTY
This boolean property asks the test generation framework not to produce any file. This option should be used when test generation should only be performed in memory. In this case, the resulting model can be retrieved through the return value of TestGenerator.generateTest(org.eclipse.core.runtime.IProgressMonitor). Default value: false. If set to true, none of TestGenerationConfiguration.OUTPUT_TEST_PROPERTY and TestGenerationConfiguration.OUTPUTS_TEST_PROPERTY should be specified.

See Also:
Constant Field Values

CONVERSION_RESULT_PROPERTY

public static final String CONVERSION_RESULT_PROPERTY
This String property defines the workspace absolute path of the a recording session file that contains the result of the conversion of the input recording session, after its contents has been passed through all packet converters configured in the Test Generation Configuration. This property is optionally, and should be used for debugging purposes.

See Also:
Constant Field Values

AUTO_DATA_CORRELATION_PROPERTY

public static String AUTO_DATA_CORRELATION_PROPERTY
This boolean property defines whether data correlation should automatically be performed on each generated test. Default value: true. This value is automatically set according to the TestGenUI preferences if the testgen configuration is produced by one of the TestGenUI wizards/dialogs.


DATA_TRANSFORMER_IDS

public static String DATA_TRANSFORMER_IDS
This string property defines the id of the data transformer that should invoked after all test generators have completed. Do not specify if no data transformation is required.


DO_IMPLIED_DC_RULES

public static String DO_IMPLIED_DC_RULES
This string property indicates whether the transfomer-implied data correlation rules have to be applied after all others data correlations in case the transfomer has been successfully applied on any test element.


AUTO_DATA_CORRELATION_NAMES_PROPERTY

public static String AUTO_DATA_CORRELATION_NAMES_PROPERTY
This boolean property defines whether data correlation names should be automatically computed. Applicable only if the option TestGenerationConfiguration.AUTO_DATA_CORRELATION_PROPERTY is set to true. Default value: true. This value is automatically set according to the TestGenUI preferences if the testgen configuration is produced by one of the TestGenUI wizards/dialogs.


RULES_DATA_CORRELATION_PROPERTY

public static String RULES_DATA_CORRELATION_PROPERTY
This boolean property indicates whether some rules files are to be executed at the end of the test generation. Default value: true.


RULES_GENERATES_LOGS_PROPERTY

public static String RULES_GENERATES_LOGS_PROPERTY
This boolean property indicates whether rules applied on test suite should generate logs or not or use fixed log level constraint (@see DCRulesWizardPage for explanation about value)


RULES_INPUTS

public static String RULES_INPUTS
This map property contains inputs to be passed to data correlation rules.


DATA_CORRELATION_RULES_FILE_LIST_PROPERTY

public static String DATA_CORRELATION_RULES_FILE_LIST_PROPERTY
This list of String property defines the list of dcrules files that have to be sequentially executed at the end of the test generation. Applicable only if the option TestGenerationConfiguration.RULES_DATA_CORRELATION_PROPERTY is set to true. Default value: empty.


LOG_DEBUG_MESSAGES

public static final String LOG_DEBUG_MESSAGES
A boolean specifying that debug messages issued by test generator components should be logged to eclipse error log as information messages. Default value: false.

See Also:
Constant Field Values

HIDE_UNCONSUMED_PACKETS_WARNING_PROPERTY

public static final String HIDE_UNCONSUMED_PACKETS_WARNING_PROPERTY
A boolean specifying that the warning concerning unconsumed packets will be hidden or not Default value: false.

See Also:
Constant Field Values
Constructor Detail

TestGenerationConfiguration

public TestGenerationConfiguration()
Method Detail

getPacketConverterConfigurations

public ArrayList<PacketConverterConfiguration> getPacketConverterConfigurations()

getTestGeneratorConfigurations

public ArrayList<TestGeneratorConfiguration> getTestGeneratorConfigurations()

getTestGeneratorPriorities

public ArrayList<TestGeneratorPriorityConfiguration> getTestGeneratorPriorities()

getAnnotationOverrides

public ArrayList<AnnotationOverrideConfiguration> getAnnotationOverrides()

getTestGeneratorConfiguration

public TestGeneratorConfiguration getTestGeneratorConfiguration(String testGeneratorType)

clone

public TestGenerationConfiguration clone()
Specified by:
clone in class AbstractConfiguration

getElementName

protected String getElementName()
Specified by:
getElementName in class AbstractConfiguration

getNamespace

protected String getNamespace()
Specified by:
getNamespace in class AbstractConfiguration

getProtocol

protected String getProtocol()
Specified by:
getProtocol in class AbstractConfiguration

getPreferedPrefix

protected String getPreferedPrefix()
Specified by:
getPreferedPrefix in class AbstractConfiguration

writeChildConfigurations

protected void writeChildConfigurations(javax.xml.stream.XMLStreamWriter writer)
                                 throws javax.xml.stream.XMLStreamException
Overrides:
writeChildConfigurations in class AbstractConfiguration
Throws:
javax.xml.stream.XMLStreamException

addChildConfiguration

protected void addChildConfiguration(AbstractConfiguration config,
                                     String operandName)
                              throws InvalidConfigurationException
Overrides:
addChildConfiguration in class AbstractConfiguration
Throws:
InvalidConfigurationException

beforeXmlSerialization

protected void beforeXmlSerialization()
Overrides:
beforeXmlSerialization in class AbstractConfiguration

afterXmlDeserialization

protected void afterXmlDeserialization()
Overrides:
afterXmlDeserialization in class AbstractConfiguration

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.