|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.test.lt.datacorrelation.testgen.DataCorrelator
public class DataCorrelator
Method Summary | |
---|---|
com.ibm.rational.test.common.models.behavior.cbdata.Substituter |
addCorrelation(IDCStringLocator subString,
com.ibm.rational.test.common.models.behavior.cbdata.DataSource harvester)
|
com.ibm.rational.test.common.models.behavior.cbdata.Substituter |
addCorrelation(IDCStringLocator subString,
IDCStringLocator harvestString)
|
com.ibm.rational.test.common.models.behavior.cbdata.Substituter |
addCorrelation(com.ibm.rational.test.common.models.behavior.cbdata.Substituter myDS,
com.ibm.rational.test.common.models.behavior.cbdata.DataSource harvester)
|
com.ibm.rational.test.common.models.behavior.cbdata.BuiltInDataSource |
addHarvester(CBActionElement elem,
String bidsName)
|
com.ibm.rational.test.common.models.behavior.cbdata.CorrelationHarvester |
addHarvester(IDCStringLocator harvestString)
|
com.ibm.rational.test.common.models.behavior.cbdata.Substituter |
addSubstituter(IDCStringLocator subString)
|
boolean |
canHarvest(CBActionElement cb)
|
List |
canHarvest(IDCStringLocator strl)
|
boolean |
canSubstitute(CBActionElement cb)
|
List |
canSubstitute(IDCStringLocator strl)
|
void |
correlateAll(LTTest test)
|
void |
correlateAll(LTTest test,
IProgressMonitor monitor)
Deprecated. - use correlateAll(LTTest, IProgressMonitor, boolean) |
void |
correlateAll(LTTest test,
IProgressMonitor monitor,
boolean generateNames)
|
List |
findPossibleHarvestSites(LTTest test,
IDCStringLocator subString)
|
List |
findPossibleHarvestSites(LTTest test,
IDCStringLocator subString,
IProgressMonitor monitor)
This function will find possible correlation sites given a string |
List |
findPossibleHarvestSites(LTTest test,
IDCStringLocator subString,
IProgressMonitor monitor,
int[] srchList)
This method will find possible correlation sites given a string |
List |
findPossibleSubstitutionSites(com.ibm.rational.test.common.models.behavior.cbdata.SubstituterHost host)
|
List |
generateNames(LTTest test,
boolean create,
boolean all)
|
String |
getDPColName(IDCStringLocator strl)
|
static DataCorrelator |
getInstance()
|
String |
getUniqueDPColName(CBActionElement elem)
Returns unique name. |
void |
resetEncode(com.ibm.rational.test.common.models.behavior.cbdata.Substituter sub)
|
static void |
setCBTest(CBTest test)
|
void |
unCorrelateAll(LTTest test,
com.ibm.rational.test.lt.datacorrelation.testgen.IDCCallBack cb,
IProgressMonitor pm)
This method will remove all correlations from a test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DataCorrelator getInstance()
public List generateNames(LTTest test, boolean create, boolean all)
test
- - the test to create the names forcreate
- - true to generate names, false to remove themall
- - true to override user defined names, false to leave them alonepublic void correlateAll(LTTest test, IProgressMonitor monitor)
correlateAll(LTTest, IProgressMonitor, boolean)
test
- monitor
- public void correlateAll(LTTest test, IProgressMonitor monitor, boolean generateNames)
test
- - name of test to do correlation onmonitor
- - a progress monitor to be updated while correlation is being donepublic List findPossibleSubstitutionSites(com.ibm.rational.test.common.models.behavior.cbdata.SubstituterHost host)
public void correlateAll(LTTest test)
correlateAll
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public com.ibm.rational.test.common.models.behavior.cbdata.CorrelationHarvester addHarvester(IDCStringLocator harvestString) throws com.ibm.rational.test.lt.datacorrelation.testgen.DCException
addHarvester
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
com.ibm.rational.test.lt.datacorrelation.testgen.DCException
public com.ibm.rational.test.common.models.behavior.cbdata.BuiltInDataSource addHarvester(CBActionElement elem, String bidsName)
elem
- - element using the built in data sourcebidsName
- - name of built in data source to create
public com.ibm.rational.test.common.models.behavior.cbdata.Substituter addSubstituter(IDCStringLocator subString) throws com.ibm.rational.test.lt.datacorrelation.testgen.DCException
addSubstituter
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
com.ibm.rational.test.lt.datacorrelation.testgen.DCException
public com.ibm.rational.test.common.models.behavior.cbdata.Substituter addCorrelation(com.ibm.rational.test.common.models.behavior.cbdata.Substituter myDS, com.ibm.rational.test.common.models.behavior.cbdata.DataSource harvester)
addCorrelation
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public void resetEncode(com.ibm.rational.test.common.models.behavior.cbdata.Substituter sub)
public com.ibm.rational.test.common.models.behavior.cbdata.Substituter addCorrelation(IDCStringLocator subString, IDCStringLocator harvestString) throws com.ibm.rational.test.lt.datacorrelation.testgen.DCException
addCorrelation
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
com.ibm.rational.test.lt.datacorrelation.testgen.DCException
public com.ibm.rational.test.common.models.behavior.cbdata.Substituter addCorrelation(IDCStringLocator subString, com.ibm.rational.test.common.models.behavior.cbdata.DataSource harvester) throws com.ibm.rational.test.lt.datacorrelation.testgen.DCException
addCorrelation
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
com.ibm.rational.test.lt.datacorrelation.testgen.DCException
public List findPossibleHarvestSites(LTTest test, IDCStringLocator subString, IProgressMonitor monitor, int[] srchList)
test
- - test to search in.subString
- - the string to find correlations formonitor
- - the progress monitor to update while finding sites.srchList
- - the list of types of candidates to search for. Valid types are in IDCListTypes.
public List findPossibleHarvestSites(LTTest test, IDCStringLocator subString, IProgressMonitor monitor)
test
- - test to search in.subString
- - the string to find correlations formonitor
- - the progress monitor to update while finding sites.
public List findPossibleHarvestSites(LTTest test, IDCStringLocator subString)
findPossibleHarvestSites
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public String getDPColName(IDCStringLocator strl)
getDPColName
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public String getUniqueDPColName(CBActionElement elem)
elem
is not in the model (the call to getParent()
returns null
), the method will only work if DataCorrelator.setCBTest(CBTest)
is called ahead of time,
because the CBTest
is needed to ensure uniqueness.
getUniqueDPColName
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
IDataCorrelator.getUniqueDPColName(com.ibm.rational.test.common.models.behavior.CBActionElement)
,
DataCorrelator.setCBTest(CBTest)
public boolean canSubstitute(CBActionElement cb)
canSubstitute
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public List canSubstitute(IDCStringLocator strl)
canSubstitute
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public boolean canHarvest(CBActionElement cb)
canHarvest
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public List canHarvest(IDCStringLocator strl)
canHarvest
in interface com.ibm.rational.test.lt.datacorrelation.testgen.IDataCorrelator
public void unCorrelateAll(LTTest test, com.ibm.rational.test.lt.datacorrelation.testgen.IDCCallBack cb, IProgressMonitor pm)
test
- - the test to remove correlations fromcb
- - the call back class for the UI to process the deletions before they happen.
can be null.pm
- - the progress monitor to report progress to user. can be null.public static void setCBTest(CBTest test)
test
- CBTest
. This method can be used to specify the CBTest
when working with
model elements that are not yet added to the test. Other methods in DataCorrelator
expect the
getParent
not to return null
so that the host test of any model element
can be found. Use this method to set the CBTest to bypass this behavior.
IMPORTANT
If this call was used to force-set the CBTest, when finished with data-correlation,
the caller must call this method again with null
argument, to unset the CBTest, to
ensure proper behavior of other RPT componets.
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |