public abstract class TestNodeInfo extends ControllerBase implements NamedObject
NamedObject.NameType
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
cat |
static java.lang.String |
copyrightNotice |
java.util.Vector<Controller> |
dataSets |
com.itko.util.GenericEventSink |
evMgr |
java.util.Vector<Controller> |
filters |
int |
graphx |
int |
graphy |
java.util.Vector<RandSet> |
randList |
static java.lang.String |
RESULT_PANEL_KEY |
java.util.Vector<Controller> |
results |
protected int |
version |
Constructor and Description |
---|
TestNodeInfo() |
Modifier and Type | Method and Description |
---|---|
void |
addAssertion(Controller assertionController) |
boolean |
confirmDelete()
You can question/challenge/prevent deletes
|
java.lang.String |
createUniqueName(java.lang.String calculatedName)
This method ensures the uniqueness of the input name.
|
void |
destroy()
When we're shutting down the whole thing, we'll want to clean up model and viewer.
|
static TestNodeInfo |
factory(java.lang.Class<?> nodeClass) |
void |
fillValidationErrors(TestCaseInfo tc,
java.util.Collection errors) |
void |
gatherOtherConnections(java.util.Collection<com.itko.lisa.test.StepConnection> stepConnections)
This method should be overridden by subclasses to provide any step connections beyond
the standard "next" step connection.
|
void |
gatherStepConnections(java.util.Collection<com.itko.lisa.test.StepConnection> stepConnections)
This method is used for gathering information used in graphing and realizing who's
talking to whom.
|
java.lang.String |
generateName()
Get an default name for the element.
|
java.util.Collection<Controller> |
getAssertions() |
java.lang.Object |
getAttribute(java.lang.String key) |
com.itko.lisa.editor.ControllerFactory |
getControllerFactory()
This is the factory for controllers of this type.
|
static java.lang.String |
getDisplayLabelForStepName(java.lang.String stepName) |
java.lang.String |
getDisplayName()
Fashion for us a short name for use in trees and lists
|
java.lang.String |
getDocs() |
java.lang.String |
getElementName()
If renaming is allowed, then the framework might call this method to fetch the name.
|
java.lang.String |
getElseNode() |
ParameterList |
getExtraInfo()
This method is used to return any extra information for public consumption from a VSE
for this step.
|
java.util.Collection<com.itko.lisa.editor.FullTypeExplain> |
getFavoriteCheckResults() |
java.util.Collection<com.itko.lisa.editor.FullTypeExplain> |
getFavoriteFilters() |
java.util.Vector<Controller> |
getFilters() |
org.w3c.dom.Document |
getHTMLDOMOnResult() |
com.itko.lisa.editor.Intersections |
getIntersections()
LISA has a dynamic way to hook test case elements with their Controller and Editors.
|
static com.itko.lisa.editor.Intersections |
getInts() |
javax.swing.Icon |
getLargeIcon() |
java.lang.String |
getLog() |
java.lang.String |
getName()
On object that implement this interface, this method is called to fetch
the name of the object
|
NamedObject.NameType |
getNameType()
Returns the type of Element Name.
|
TestNodeInfo |
getNextNode() |
java.util.Collection<java.lang.String> |
getPropertiesReferenced()
Will tell us all the properties that are referenced during the processing of this element
|
java.util.Collection<java.lang.String> |
getPropertiesSet()
Will tell us all the properties that are set/updated during the processing of this element
|
TestNodeInfo |
getReferrerNode() |
java.lang.String |
getRemoteServer() |
java.lang.String |
getResponseCharset() |
java.lang.Object |
getRet() |
java.lang.String |
getSecondaryReferenceChangesDeniedReason(com.itko.lisa.test.StepConnection connection)
This method should return the text of a message explaining why the specified secondary
connection cannot be directly edited.
|
javax.swing.Icon |
getSmallIcon() |
void |
getStateParameters(ParameterList state) |
java.util.Collection<com.itko.lisa.test.StepConnection> |
getStepConnections() |
static java.lang.String |
getStepNameForDisplayLabel(java.lang.String displayLabel)
This is a helper method to return the actual name of step if a different label is used to display
it in areas like NodeListDropDown etc.
|
TestCaseInfo |
getTestCaseInfo() |
TestNodeInfo |
getTestNode()
So that your subclasses and editors know the node you are related to
|
java.lang.String |
getThinkSpec() |
java.lang.String |
getToolTipText() |
java.lang.String |
getType() |
java.lang.String |
getTypeName() |
static ParameterList |
getTypeToNameMap() |
java.lang.String |
getUid() |
abstract void |
initNewOne() |
static boolean |
isDisplayLabelForEndTypeNode(java.lang.String displayLabel) |
boolean |
isGeneratedName(java.lang.String name) |
boolean |
isMigrated() |
boolean |
isNewTMCreated() |
boolean |
isNodeEndType() |
boolean |
isNodeEndTypeOnly() |
boolean |
isNodeFailedType() |
boolean |
isPseudoNode()
This is a node type that represents an action or event that happens as a result of executing a true node (test step).
|
boolean |
isQuiet() |
boolean |
isRemoteAllowed()
Tells the editors and others whether we can allow remote exec of the Node.
|
boolean |
isRenamingAllowed()
Can be renamed?
|
boolean |
isUseFilters() |
boolean |
isUsing(com.itko.lisa.editor.DataSetController ds) |
java.lang.String |
loadLargeIcon()
Deprecated.
|
java.lang.String |
loadSmallIcon()
Deprecated.
|
protected static TestNodeInfo |
makeAbortNode(TestCaseInfo tc) |
CustomEditor |
makeEditor()
You are responsible for telling us what UI editor to use, so please give it
here.
|
protected static TestNodeInfo |
makeErrorNode(TestCaseInfo tc) |
static TestNodeInfo |
makeFinalNode(TestCaseInfo tc) |
static void |
migrate(java.util.Map ns,
TestCaseInfo tc) |
void |
migrate(TestCaseInfo tc,
java.lang.String name) |
void |
migrate(TestNode tn,
TestCaseInfo tc) |
static void |
migrate(java.util.Vector proxyNodes,
TestCaseInfo tc,
java.lang.String appendTo) |
static void |
primeTestCase(TestCaseInfo tc) |
void |
putAttribute(java.lang.String key,
java.lang.Boolean value) |
void |
putAttribute(java.lang.String key,
CloneImplemented na) |
void |
putAttribute(java.lang.String key,
java.lang.Integer value) |
void |
putAttribute(java.lang.String key,
java.lang.String value) |
void |
putTransientAttribute(java.lang.String key,
java.lang.Object value) |
void |
removeAttribute(java.lang.String key) |
void |
renameElement(java.lang.String newName)
Here is how you can rename the element from the framework level
|
static void |
resolveReferences(java.util.List<TestNodeInfo> allNodes) |
void |
secondaryStepReferenceChanged(com.itko.lisa.test.StepConnection connection,
java.lang.String newTargetStep)
This method is used to inform the step controller that a secondary step connection needs
to be updated.
|
void |
setDocs(java.lang.String docs) |
void |
setEditorTarget(TestCaseInfo tc,
TestNodeInfo ni)
Called on this object by the framework to let you know what test case
you are scoped into and the test node.
|
void |
setElseNode(java.lang.String elseNode) |
void |
setExtraInfo(ParameterList extras)
This method is used to set any extra information for public consumption from a VSE for
this step.
|
void |
setHTMLDOMOnResult(org.w3c.dom.Document doc) |
void |
setIsNewTMCreated(boolean b) |
void |
setLog(java.lang.String l) |
void |
setName(java.lang.String newName)
This method is called to set the name of the object
|
void |
setNameType(NamedObject.NameType type)
Sets the element name-type.
|
void |
setNextNode(TestNodeInfo nextNode) |
void |
setQuiet(boolean b) |
void |
setRefererNode(TestNodeInfo refererNode) |
void |
setRemoteServer(java.lang.String remoteServer) |
void |
setRemoteServerAllowed(boolean allowed) |
void |
setResponseCharset(java.lang.String responseCharset) |
void |
setRet(java.lang.Object ret) |
void |
setTestCaseInfo(TestCaseInfo tc) |
void |
setThinkSpec(java.lang.String spec)
Set the think spec based on a string value.
|
void |
setThinkTime(long thinkFrom,
long thinkTo)
This method is used to set the think time specification for the step.
|
void |
setType(java.lang.String type)
When initially constructed for a new test element (no migration), the framework will
call this to tell you what type of object you own.
|
void |
setUid(java.lang.String uid) |
void |
setUseFilters(boolean useFilters) |
void |
stepReferenceChanged(com.itko.lisa.test.StepConnection connection,
java.lang.String newTargetStep)
This method is used to update the appropriate step reference in this step when it has
been changed by the user.
|
void |
subFillPropsReferenced(java.util.Collection<java.lang.String> c)
Feel free to override this method to do it yourself.
|
void |
subFillPropsSet(java.util.Collection<java.lang.String> c)
Feel free to override this method to do it yourself.
|
java.lang.String |
toString() |
abstract void |
writeSubXML(java.io.PrintWriter pw) |
void |
writeXML(java.io.PrintWriter pw)
When it's time for you to stream your XML representation to the output stream.
|
adjustName, clearEditor, createUniqueName, defaultMakeNewOne, destroy, exportAssets, getBaseCalculatedNameFromUniqueName, getEditor, getEditorName, getLastErrorMessage, getNewName, hasChanged, isEditorCompact, isEditorValid, isInInvalidState, migrate, objectDeleted, refreshEditor, save, setLastErrorMessage, setNameType, showEditor
public static final java.lang.String copyrightNotice
protected static org.apache.commons.logging.Log cat
public static final java.lang.String RESULT_PANEL_KEY
protected int version
public int graphx
public int graphy
public java.util.Vector<Controller> filters
public java.util.Vector<Controller> results
public java.util.Vector<RandSet> randList
public java.util.Vector<Controller> dataSets
public com.itko.util.GenericEventSink evMgr
public static ParameterList getTypeToNameMap()
public static void migrate(java.util.Map ns, TestCaseInfo tc) throws TestDefException
TestDefException
public static void migrate(java.util.Vector proxyNodes, TestCaseInfo tc, java.lang.String appendTo)
public static TestNodeInfo makeFinalNode(TestCaseInfo tc)
public static void primeTestCase(TestCaseInfo tc)
protected static TestNodeInfo makeErrorNode(TestCaseInfo tc)
protected static TestNodeInfo makeAbortNode(TestCaseInfo tc)
public void migrate(TestCaseInfo tc, java.lang.String name)
public void migrate(TestNode tn, TestCaseInfo tc) throws TestDefException
TestDefException
public com.itko.lisa.editor.ControllerFactory getControllerFactory()
Controller
getControllerFactory
in interface Controller
public void destroy()
ControllerBase
super.destroy()
or you'll cause resource
leakage. So behave!destroy
in interface Controller
destroy
in class ControllerBase
public boolean confirmDelete()
Controller
confirmDelete
in interface Controller
confirmDelete
in class ControllerBase
public boolean isMigrated()
public void putAttribute(java.lang.String key, CloneImplemented na)
public void putAttribute(java.lang.String key, java.lang.String value)
public void putAttribute(java.lang.String key, java.lang.Integer value)
public void putAttribute(java.lang.String key, java.lang.Boolean value)
public void putTransientAttribute(java.lang.String key, java.lang.Object value)
public java.lang.Object getAttribute(java.lang.String key)
public void removeAttribute(java.lang.String key)
public java.lang.String getName()
ControllerBase
getName
in interface NamedObject
getName
in class ControllerBase
public TestCaseInfo getTestCaseInfo()
getTestCaseInfo
in class ControllerBase
public void setTestCaseInfo(TestCaseInfo tc)
public java.lang.String getType()
public java.lang.String getTypeName()
public boolean isNodeEndType()
public boolean isNodeEndTypeOnly()
public boolean isNodeFailedType()
public boolean isPseudoNode()
true
if this node is a "fake" one (i.e., one of the
continue nodes) or false
otherwise.public java.util.Vector<Controller> getFilters()
public java.lang.Object getRet()
public void setRet(java.lang.Object ret)
public java.lang.String getResponseCharset()
public void setResponseCharset(java.lang.String responseCharset)
public TestNodeInfo getReferrerNode()
public void setRefererNode(TestNodeInfo refererNode)
public java.lang.String getDocs()
public void setDocs(java.lang.String docs)
public void setLog(java.lang.String l)
public java.lang.String getLog()
public boolean isUseFilters()
public void setUseFilters(boolean useFilters)
public java.lang.String getThinkSpec()
public void setThinkTime(long thinkFrom, long thinkTo)
thinkFrom
- The lower range value think time.thinkTo
- The upper range value think time.public void setThinkSpec(java.lang.String spec)
spec
- eg "5s-10s", "{{someprop}}", "500t-1s", etc..public boolean isQuiet()
public void setQuiet(boolean b)
public boolean isRenamingAllowed()
isRenamingAllowed
in interface Controller
isRenamingAllowed
in class ControllerBase
public java.lang.String getElementName()
getElementName
in interface Controller
getElementName
in class ControllerBase
public void renameElement(java.lang.String newName)
renameElement
in interface Controller
renameElement
in class ControllerBase
public java.lang.String generateName()
generateName
in interface com.itko.lisa.test.NameGenerator
generateName
in class ControllerBase
public boolean isGeneratedName(java.lang.String name)
isGeneratedName
in interface com.itko.lisa.test.NameGenerator
isGeneratedName
in class ControllerBase
public java.lang.String createUniqueName(java.lang.String calculatedName)
NamedObject
createUniqueName
in interface NamedObject
createUniqueName
in class ControllerBase
public NamedObject.NameType getNameType()
getNameType
in interface NamedObject
getNameType
in class ControllerBase
public void setNameType(NamedObject.NameType type)
setNameType
in interface NamedObject
setNameType
in class ControllerBase
type
- the name-type to start using.public java.lang.String getRemoteServer()
public void setRemoteServer(java.lang.String remoteServer)
public boolean isRemoteAllowed()
public void setRemoteServerAllowed(boolean allowed)
public void setHTMLDOMOnResult(org.w3c.dom.Document doc)
public org.w3c.dom.Document getHTMLDOMOnResult()
public void setType(java.lang.String type)
Controller
setType
in interface Controller
type
- the class name of the element we are making for you to edit, like
"com.itko.lisa.test.URLTrans"public void setName(java.lang.String newName)
ControllerBase
setName
in interface NamedObject
setName
in class ControllerBase
public ParameterList getExtraInfo()
null
.public void setExtraInfo(ParameterList extras)
extras
- the new collection of interesting information or null
.public final java.util.Collection<com.itko.lisa.test.StepConnection> getStepConnections()
public final void gatherStepConnections(java.util.Collection<com.itko.lisa.test.StepConnection> stepConnections)
gatherStepConnections
in interface Controller
gatherStepConnections
in class ControllerBase
stepConnections
- the collection to add all the step connections this editor knows
about as StepConnection
objects to.StepConnection
public void gatherOtherConnections(java.util.Collection<com.itko.lisa.test.StepConnection> stepConnections)
stepConnections
- the collection to add new connections to.public void stepReferenceChanged(com.itko.lisa.test.StepConnection connection, java.lang.String newTargetStep)
connection
- the connection whose target step is being changed.newTargetStep
- the name of the new target step for the connection.public java.lang.String getSecondaryReferenceChangesDeniedReason(com.itko.lisa.test.StepConnection connection)
null
(which we do
here) the editor framework will expect calls to secondaryStepReferenceChanged()
to work.connection
- the step connection to test.null
.public void secondaryStepReferenceChanged(com.itko.lisa.test.StepConnection connection, java.lang.String newTargetStep)
connection
- the connection whose target step is being changed.newTargetStep
- the name of the new target step for the connection.public final java.util.Collection<java.lang.String> getPropertiesReferenced()
Controller
getPropertiesReferenced
in interface Controller
public final java.util.Collection<java.lang.String> getPropertiesSet()
Controller
getPropertiesSet
in interface Controller
public void subFillPropsReferenced(java.util.Collection<java.lang.String> c)
c
- the collection to populate.Controller.getPropertiesReferenced()
public void subFillPropsSet(java.util.Collection<java.lang.String> c)
c
- the collection to populate.Controller.getPropertiesSet()
public static void resolveReferences(java.util.List<TestNodeInfo> allNodes)
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getStepNameForDisplayLabel(java.lang.String displayLabel)
displayLabel
- the display label to start with.public static java.lang.String getDisplayLabelForStepName(java.lang.String stepName)
public static boolean isDisplayLabelForEndTypeNode(java.lang.String displayLabel)
public boolean isUsing(com.itko.lisa.editor.DataSetController ds)
public void getStateParameters(ParameterList state)
public abstract void writeSubXML(java.io.PrintWriter pw)
public final void writeXML(java.io.PrintWriter pw)
Controller
writeXML
in interface Controller
writeXML
in interface com.itko.lisa.model.IWriteXML
writeXML
in class ControllerBase
pw
- the output writer to push your data intopublic void fillValidationErrors(TestCaseInfo tc, java.util.Collection errors)
public void setIsNewTMCreated(boolean b)
public boolean isNewTMCreated()
public TestNodeInfo getNextNode()
public void setNextNode(TestNodeInfo nextNode)
public java.lang.String getElseNode()
public void setElseNode(java.lang.String elseNode)
public javax.swing.Icon getSmallIcon()
public javax.swing.Icon getLargeIcon()
@Deprecated public java.lang.String loadSmallIcon()
@Deprecated public java.lang.String loadLargeIcon()
public java.util.Collection<com.itko.lisa.editor.FullTypeExplain> getFavoriteFilters()
public java.util.Collection<com.itko.lisa.editor.FullTypeExplain> getFavoriteCheckResults()
public abstract void initNewOne()
public void setUid(java.lang.String uid)
public java.lang.String getUid()
public final void setEditorTarget(TestCaseInfo tc, TestNodeInfo ni)
Controller
setEditorTarget
in interface Controller
setEditorTarget
in class ControllerBase
public TestNodeInfo getTestNode()
Controller
getTestNode
in interface Controller
getTestNode
in class ControllerBase
public static TestNodeInfo factory(java.lang.Class<?> nodeClass)
public CustomEditor makeEditor()
Controller
makeEditor
in interface Controller
makeEditor
in class ControllerBase
public com.itko.lisa.editor.Intersections getIntersections()
Controller
getIntersections
in interface Controller
public static com.itko.lisa.editor.Intersections getInts()
public java.lang.String getDisplayName()
Controller
getDisplayName
in interface Controller
getDisplayName
in class ControllerBase
public java.util.Collection<Controller> getAssertions()
public void addAssertion(Controller assertionController)
public java.lang.String getToolTipText()
Copyright © 1998-2014 CA, Inc. All Rights Reserved.