public class TestCaseInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Vector<Controller> |
assertions |
protected static org.apache.commons.logging.Log |
cat |
java.util.Vector<Controller> |
companions |
java.util.List<com.itko.lisa.test.Configuration> |
configs |
static java.lang.String |
copyrightNotice |
java.util.Vector<Controller> |
dataSets |
static java.lang.String |
DESIGNTIME_INFO |
java.util.Vector<Controller> |
filters |
java.util.List |
itrList |
java.lang.String |
name |
java.util.Vector<Controller> |
randSets |
java.lang.String |
tcDesc |
Constructor and Description |
---|
TestCaseInfo()
This Map hold the
|
TestCaseInfo(boolean prefill) |
TestCaseInfo(java.io.InputStream is,
java.lang.String path) |
TestCaseInfo(java.lang.String tcName) |
TestCaseInfo(java.lang.String tcName,
boolean prefill) |
Modifier and Type | Method and Description |
---|---|
void |
addConfigListener(com.itko.lisa.editor.ConfigListener listener) |
int |
addNode(TestNodeInfo n,
int placement) |
int |
addNode(TestNodeInfo n,
int placement,
boolean addNew) |
void |
confirmValid()
The point here is to make sure that the test case in its current form is valid.
|
static TestCase |
createTestCase(java.io.InputStream is,
java.lang.String pathToDoc,
com.itko.lisa.editor.TestCaseTypeData tctData)
Designed to be use as a two step creation process.
|
static TestCaseInfo |
createTestCaseInfo(TestCase tc)
Designed to be used as a two step creation process.
|
static TestCaseInfo |
createTestCaseInfoReadOnlyDatasets(TestCase tc) |
void |
deleteStepInformation(TestNodeInfo tni)
This method is used to delete the specified step from the model.
|
void |
destroy() |
TestNodeInfo |
findAbortNode() |
TestNodeInfo |
findAnErrorNode() |
com.itko.lisa.editor.DataSetController |
findDataSet(java.lang.String name)
Finds a data set of the given name regardless of name case
|
TestNodeInfo |
findNode(java.lang.String name)
Finds a node by it's name regardless of its case
|
TestNodeInfo |
findNodeByUid(java.lang.String uid)
Finds a node by its uid
|
com.itko.lisa.editor.RandSetEditor |
findRandDataSet(java.lang.String name)
Finds a random data set of the given name regardless of name case
|
ParameterList |
getAllStateVariables() |
java.util.Collection<com.itko.lisa.test.StepConnection> |
getAllStepConnections()
This method is used to gather all the step connections in this model.
|
java.util.Vector<Controller> |
getAssertions() |
java.lang.Object |
getAssociatedObject(java.lang.Object key) |
com.itko.lisa.test.Configuration |
getConfig() |
ParameterList |
getConfigurationProperties() |
ParameterList |
getDataSetProperties() |
com.itko.lisa.test.Configuration |
getDefaultConfig()
If this test case belongs to a project, there will be one default config in that project,
marked by the flag "isProject Default".
|
java.util.Set<java.lang.String> |
getDeletedProps() |
java.lang.String |
getDocs() |
com.itko.util.GenericEventSink |
getDSRandEventSink() |
java.util.Vector<Controller> |
getFilters() |
java.lang.String |
getFinalNode() |
ParameterList |
getHiddenProperties() |
java.lang.String |
getId()
Returns the test case ID
|
ParameterList |
getInitialState() |
java.util.Map<java.lang.String,java.lang.Object> |
getLaunchState() |
com.itko.lisa.utils.Meta |
getMeta() |
java.lang.String[] |
getNodeNames() |
java.util.List<TestNodeInfo> |
getNodes() |
java.util.List |
getNodes4TCTreeRenderrer()
Special method used to hide the continue do nothing steps in the test tree view.
|
java.lang.String |
getProjectRoot()
Returns the directory location for the project, if this test case is included
within a project
|
ParameterList |
getRemovedParams() |
java.lang.String |
getResponseFileName() |
ParameterList |
getResultParamTemp() |
ParameterList |
getResultState() |
int |
getSavedTCVersion() |
ParameterList |
getSeleniumProperties() |
java.lang.String |
getTestCaseFileName() |
com.itko.lisa.editor.TestCaseTypeData.Type |
getTestCaseType() |
com.itko.lisa.editor.TestCaseTypeData |
getTestCaseTypeData() |
java.lang.String |
getTestCaseXML() |
TestExec |
getTestExec() |
ParameterList |
getTestRunProperties() |
ParameterList |
getTestStepProperties() |
java.util.List<TestNodeInfo> |
getVisibleNodes() |
boolean |
hasChanged() |
boolean |
hasVersionConverted() |
void |
initFromTestCase(TestCase tc) |
static boolean |
isInvisibleNode(java.lang.String nodeName) |
boolean |
isSubProcess() |
void |
load(java.io.InputStream is,
java.lang.String path) |
void |
loadFromTestCase(TestCase testCase)
This method may be used to load this test case information object from the given test
case.
|
void |
loadResults(java.lang.String respFile) |
TestCase |
makeTestCase(java.lang.String xml) |
void |
notifyNodeDelete(TestNodeInfo ni) |
void |
pushAllNodesAnEvent(java.lang.Object ev)
Method called whenever we think that all the node editors need to refresh
themselves.
|
void |
refreshInitStateIntoTestExec() |
void |
refreshProperties() |
java.lang.Object |
removeAssociatedObject(java.lang.Object key) |
void |
removeConfigListener(com.itko.lisa.editor.ConfigListener listener) |
void |
removeNode(TestNodeInfo n) |
void |
saveCheckpoint() |
void |
saveResults(java.io.PrintWriter ps) |
static void |
saveResults(java.io.PrintWriter ps,
java.lang.String testName,
java.util.List<java.lang.String> nodeNames,
java.util.List<java.lang.Object> retValues) |
static void |
saveResults(java.io.PrintWriter ps,
java.lang.String testName,
java.util.List<java.lang.String> nodeNames,
java.util.List<java.lang.Object> retValues,
java.util.List<java.lang.String> charsets) |
java.lang.Object |
setAssociatedObject(java.lang.Object key,
java.lang.Object val) |
void |
setConfig(com.itko.lisa.test.Configuration config) |
void |
setDeletedProps(java.util.Set<java.lang.String> deleted) |
void |
setDocs(java.lang.String docs) |
void |
setFinalNode(java.lang.String node) |
void |
setHasVersionConverted(boolean hasVersionConverted) |
void |
setMeta(com.itko.lisa.utils.Meta meta) |
void |
setProjectRoot(java.lang.String projectLoc) |
void |
setRemovedParams(ParameterList removedParams) |
void |
setResponseFileName(java.lang.String responseFileName) |
void |
setResultParamTemp(ParameterList resultParamTemp) |
ParameterList |
setResultState(ParameterList resultState) |
void |
setSavedTCVersion(int savedTCVersion) |
void |
setSubProcess(boolean subProcess) |
void |
setTestCaseFileName(java.lang.String testCaseFileName) |
void |
setTestCaseType(com.itko.lisa.editor.TestCaseTypeData.Type tcType) |
void |
setTestExec(TestExec ts) |
void |
writeXML(java.io.PrintWriter os) |
public static final java.lang.String copyrightNotice
protected static org.apache.commons.logging.Log cat
public java.lang.String name
public java.util.List<com.itko.lisa.test.Configuration> configs
public java.util.Vector<Controller> randSets
public java.util.Vector<Controller> dataSets
public java.lang.String tcDesc
public java.util.Vector<Controller> filters
public java.util.Vector<Controller> assertions
public java.util.Vector<Controller> companions
public java.util.List itrList
public static final java.lang.String DESIGNTIME_INFO
public TestCaseInfo()
public TestCaseInfo(java.lang.String tcName)
public TestCaseInfo(boolean prefill)
public TestCaseInfo(java.lang.String tcName, boolean prefill)
public TestCaseInfo(java.io.InputStream is, java.lang.String path) throws TestDefException
TestDefException
public com.itko.lisa.utils.Meta getMeta()
public void setMeta(com.itko.lisa.utils.Meta meta)
meta
- the meta to setpublic void setTestCaseType(com.itko.lisa.editor.TestCaseTypeData.Type tcType)
public com.itko.lisa.editor.TestCaseTypeData.Type getTestCaseType()
public com.itko.lisa.editor.TestCaseTypeData getTestCaseTypeData()
public java.lang.String getTestCaseFileName()
public java.lang.String getResponseFileName()
public void setResponseFileName(java.lang.String responseFileName)
public void setTestCaseFileName(java.lang.String testCaseFileName)
public static TestCase createTestCase(java.io.InputStream is, java.lang.String pathToDoc, com.itko.lisa.editor.TestCaseTypeData tctData) throws TestDefException
is
- test case xml streamTestDefException
- if something is wrong with the test case definitionpublic static TestCaseInfo createTestCaseInfo(TestCase tc) throws TestDefException
tc
- test case - build using createTestCaseTestDefException
- if something is wrong with the test case definitionpublic static TestCaseInfo createTestCaseInfoReadOnlyDatasets(TestCase tc) throws TestDefException
TestDefException
public void loadFromTestCase(TestCase testCase) throws TestDefException
testCase
- the test case to load from.TestDefException
public void load(java.io.InputStream is, java.lang.String path) throws TestDefException
TestDefException
public void initFromTestCase(TestCase tc) throws TestDefException
TestDefException
public void setSavedTCVersion(int savedTCVersion)
public int getSavedTCVersion()
public void setProjectRoot(java.lang.String projectLoc)
public void destroy()
public TestNodeInfo findNode(java.lang.String name)
public TestNodeInfo findNodeByUid(java.lang.String uid)
public com.itko.lisa.editor.DataSetController findDataSet(java.lang.String name)
public com.itko.lisa.editor.RandSetEditor findRandDataSet(java.lang.String name)
public TestNodeInfo findAnErrorNode()
public TestNodeInfo findAbortNode()
public boolean isSubProcess()
public void setSubProcess(boolean subProcess)
public java.lang.String getDocs()
public void setDocs(java.lang.String docs)
public java.util.List<TestNodeInfo> getNodes()
public java.util.List<TestNodeInfo> getVisibleNodes()
public static boolean isInvisibleNode(java.lang.String nodeName)
public java.util.Vector<Controller> getFilters()
public java.util.Vector<Controller> getAssertions()
public java.util.List getNodes4TCTreeRenderrer()
public java.lang.String[] getNodeNames()
public void removeNode(TestNodeInfo n)
public int addNode(TestNodeInfo n, int placement)
public int addNode(TestNodeInfo n, int placement, boolean addNew)
public TestExec getTestExec()
public void setTestExec(TestExec ts)
public java.util.Map<java.lang.String,java.lang.Object> getLaunchState()
public ParameterList getInitialState()
public ParameterList getRemovedParams()
public void setRemovedParams(ParameterList removedParams)
public ParameterList getResultParamTemp()
public void setResultParamTemp(ParameterList resultParamTemp)
public ParameterList setResultState(ParameterList resultState)
public ParameterList getResultState()
public void refreshInitStateIntoTestExec()
public com.itko.util.GenericEventSink getDSRandEventSink()
public void pushAllNodesAnEvent(java.lang.Object ev)
public ParameterList getAllStateVariables()
public ParameterList getTestRunProperties()
public ParameterList getConfigurationProperties()
public ParameterList getTestStepProperties()
public ParameterList getDataSetProperties()
public ParameterList getHiddenProperties()
public ParameterList getSeleniumProperties()
public void refreshProperties()
public void writeXML(java.io.PrintWriter os) throws java.io.IOException
java.io.IOException
public void loadResults(java.lang.String respFile)
respFile
- the name of the response file to open.public void saveResults(java.io.PrintWriter ps) throws java.io.IOException
java.io.IOException
public static void saveResults(java.io.PrintWriter ps, java.lang.String testName, java.util.List<java.lang.String> nodeNames, java.util.List<java.lang.Object> retValues) throws java.io.IOException
java.io.IOException
public static void saveResults(java.io.PrintWriter ps, java.lang.String testName, java.util.List<java.lang.String> nodeNames, java.util.List<java.lang.Object> retValues, java.util.List<java.lang.String> charsets) throws java.io.IOException
java.io.IOException
public void saveCheckpoint()
public boolean hasChanged()
public java.lang.String getTestCaseXML()
public void confirmValid() throws java.lang.Exception
java.lang.Exception
- this should almost always be a TestDefException, but could be SAX
exception for bad XMLpublic TestCase makeTestCase(java.lang.String xml) throws TestDefException
TestDefException
public java.lang.Object getAssociatedObject(java.lang.Object key)
public java.lang.Object setAssociatedObject(java.lang.Object key, java.lang.Object val)
public java.lang.Object removeAssociatedObject(java.lang.Object key)
public void notifyNodeDelete(TestNodeInfo ni)
public void deleteStepInformation(TestNodeInfo tni)
tni
- the step to remove.public java.util.Collection<com.itko.lisa.test.StepConnection> getAllStepConnections()
public java.lang.String getId()
public java.lang.String getProjectRoot()
public boolean hasVersionConverted()
public void setHasVersionConverted(boolean hasVersionConverted)
public com.itko.lisa.test.Configuration getDefaultConfig()
public void setDeletedProps(java.util.Set<java.lang.String> deleted)
deleted
- the deleted to setpublic java.util.Set<java.lang.String> getDeletedProps()
public java.lang.String getFinalNode()
public void setFinalNode(java.lang.String node)
public com.itko.lisa.test.Configuration getConfig()
public void setConfig(com.itko.lisa.test.Configuration config)
public void addConfigListener(com.itko.lisa.editor.ConfigListener listener)
public void removeConfigListener(com.itko.lisa.editor.ConfigListener listener)
Copyright © 1998-2014 CA, Inc. All Rights Reserved.