IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.testeditor.common
Class DatapoolUtil

java.lang.Object
  extended by com.ibm.rational.test.lt.testeditor.common.DatapoolUtil
All Implemented Interfaces:
com.ibm.rational.test.lt.testeditor.main.LoadTestLoggingConstants

public class DatapoolUtil
extends Object
implements com.ibm.rational.test.lt.testeditor.main.LoadTestLoggingConstants


Field Summary
static String KEY_LAST_MODIFIED
           
 
Fields inherited from interface com.ibm.rational.test.lt.testeditor.main.LoadTestLoggingConstants
prefix_RPTN, RPTNE0001_INIT_ERROR, RPTNE0002_INTERNAL_ERROR, RPTNE0003_CREATE_DATAPOOL, RPTNE0004_EXTENSION_ERROR, RPTNE0005_MARKER_NOT_FOUND, RPTNE0017_CREATE_REFERENCE, RPTNE0020_CREATE_DATAPOOL_SUBST, RPTNE0040_OPEN_FILE, RPTNE0050_DISPLAY_RULES_FAILED, RPTNI0009_COLUMNS_REFRESHED, RPTNW0006_DC_ERROR, RPTNW0007_DATAPOOL_REMOVED, RPTNW0008_COLUMNS_REMOVED, RPTNW0016_CREATE_REFERENCE
 
Method Summary
static Datapool[] addDatapool(LoadTestEditor editor, boolean promptForDefault, String varData, String colName)
          Deprecated. Starting from version 7.0.1, this method calls DatapoolUtil.addDatapool701(LoadTestEditor)
static Datapool[] addDatapool701(LoadTestEditor editor)
          Deprecated. Use DatapoolUtil.addDatapool811(LoadTestEditor, boolean)
static Datapool[] addDatapool811(LoadTestEditor editor, boolean display)
           
static void closeDatapool(org.eclipse.hyades.edit.datapool.IDatapool datapool)
           
static com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester createColumn(Datapool datapool, String colName, String selectedText, LoadTestEditor editor)
           
static boolean createDatapoolFile(String path, LoadTestEditor editor, String varName, String varData)
           
static TreeViewer createDatapoolUi(LoadTestEditor editor, Composite parent, ExtLayoutProvider provider)
           
static TreeViewer createDatapoolUi(LoadTestEditor editor, Composite parent, int heightHint, boolean includeDatapools)
           
static com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester createHarvesterX(Datapool dp, int colNum, com.ibm.rational.test.lt.core.utils.DatapoolFastAccess.ColumnInfo var, String name)
           
static com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester createHarvesterX(Datapool datapool, String colName, String selectedText, LoadTestEditor editor)
           
static ArrayList getDatapoolColumns(Datapool myDatapool)
           
static ArrayList getDatapoolColumnsEx(Datapool myDatapool)
           
static List getDatapoolHarvesters(LTTest test)
           
static List getDependentSubstituters(Datapool dp)
           
static IPath getEclipseFile(String path)
           
static IFile getEclipseFile2(String path)
           
static String getErrorMsg()
           
 DatapoolUtil getInstance()
           
static File getSystemFile(String path)
           
static org.eclipse.hyades.edit.datapool.IDatapool openDatapool(String path)
           
static boolean removeDatapoolsEx(LoadTestEditor editor, Object[] objects)
           
static boolean removeDatapoolsEx(LTTest test, Object[] objects)
          Deprecated. As of 7.0.1, all functionality was moved to DatapoolUtil.removeDatapoolsEx(LoadTestEditor, Object[]).
static void setErrorMsg(String errorMsg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_LAST_MODIFIED

public static String KEY_LAST_MODIFIED
Method Detail

getInstance

public DatapoolUtil getInstance()

removeDatapoolsEx

public static boolean removeDatapoolsEx(LoadTestEditor editor,
                                        Object[] objects)

removeDatapoolsEx

public static boolean removeDatapoolsEx(LTTest test,
                                        Object[] objects)
Deprecated. As of 7.0.1, all functionality was moved to DatapoolUtil.removeDatapoolsEx(LoadTestEditor, Object[]).

Parameters:
test -
objects -
Returns:
boolean

addDatapool701

public static Datapool[] addDatapool701(LoadTestEditor editor)
Deprecated. Use DatapoolUtil.addDatapool811(LoadTestEditor, boolean)

Parameters:
editor -
Returns:

addDatapool811

public static Datapool[] addDatapool811(LoadTestEditor editor,
                                        boolean display)

addDatapool

public static Datapool[] addDatapool(LoadTestEditor editor,
                                     boolean promptForDefault,
                                     String varData,
                                     String colName)
Deprecated. Starting from version 7.0.1, this method calls DatapoolUtil.addDatapool701(LoadTestEditor)

Returns an array of datapools.

Parameters:
editor - LoadTestEditor
promptForDefault - boolean
varData - String
colName - String
Returns:
array of new Datapool objects.

createDatapoolUi

public static TreeViewer createDatapoolUi(LoadTestEditor editor,
                                          Composite parent,
                                          ExtLayoutProvider provider)
Parameters:
editor - LoadTestEditor
parent - Composite
provider - ExtLayoutProvider
Returns:
TreeViewer

createDatapoolUi

public static TreeViewer createDatapoolUi(LoadTestEditor editor,
                                          Composite parent,
                                          int heightHint,
                                          boolean includeDatapools)
Parameters:
editor -
parent -
heightHint -
includeDatapools -
Returns:
TreeViewer

openDatapool

public static org.eclipse.hyades.edit.datapool.IDatapool openDatapool(String path)

getSystemFile

public static File getSystemFile(String path)

getEclipseFile

public static IPath getEclipseFile(String path)
Parameters:
path -
Returns:
IPath

getEclipseFile2

public static IFile getEclipseFile2(String path)
Parameters:
path -
Returns:
IFile

closeDatapool

public static void closeDatapool(org.eclipse.hyades.edit.datapool.IDatapool datapool)
Parameters:
datapool -

getDatapoolColumnsEx

public static ArrayList getDatapoolColumnsEx(Datapool myDatapool)

getDatapoolColumns

public static ArrayList getDatapoolColumns(Datapool myDatapool)

getDatapoolHarvesters

public static List getDatapoolHarvesters(LTTest test)

getErrorMsg

public static String getErrorMsg()
Returns:
Returns the errorMsg.

setErrorMsg

public static void setErrorMsg(String errorMsg)
Parameters:
errorMsg - The errorMsg to set.

getDependentSubstituters

public static List getDependentSubstituters(Datapool dp)
Parameters:
dp -
Returns:
List

createDatapoolFile

public static boolean createDatapoolFile(String path,
                                         LoadTestEditor editor,
                                         String varName,
                                         String varData)

createHarvesterX

public static com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester createHarvesterX(Datapool dp,
                                                                                                     int colNum,
                                                                                                     com.ibm.rational.test.lt.core.utils.DatapoolFastAccess.ColumnInfo var,
                                                                                                     String name)

createColumn

public static com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester createColumn(Datapool datapool,
                                                                                                 String colName,
                                                                                                 String selectedText,
                                                                                                 LoadTestEditor editor)
Parameters:
datapool -
selectedText -

createHarvesterX

public static com.ibm.rational.test.common.models.behavior.cbdata.DatapoolHarvester createHarvesterX(Datapool datapool,
                                                                                                     String colName,
                                                                                                     String selectedText,
                                                                                                     LoadTestEditor editor)
Parameters:
datapool -
colName -
selectedText -
editor -
Returns:
DatapoolHarvester

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.