public interface FilterInterface extends com.itko.util.test.FilterInterface, com.itko.lisa.model.IWriteXML, java.io.Serializable, NamedType
<Filter> type="com.itko.lisa.FilterGetAttribute"/>Filters can be placed either as a direct child of the TestCase itself, in which case the filter will execute on every node that is not set to ignore filters, or at the Node level in which case the filter will fire every time that node is executed. TestCase level nodes are executed first, then Node level ones.
FilterVectorOfTags
,
FilterGetAttribute
,
FilterXMLGetTagAttribute
Modifier and Type | Method and Description |
---|---|
void |
gatherFilterStepConnections(java.lang.String stepName,
ParameterList params,
java.util.Collection<com.itko.lisa.test.StepConnection> stepConnections)
If this Filter might attempt to pass execution off to a specific node, return a
Collection of ways that might happen.
|
ParameterList |
getParameters()
Method called by interactive test case editors to find out what the parameters
for a given filter are
|
java.lang.String |
getValueToFilterPropKey()
This method is used by the framework to get the value to use for Filter execution.
|
void |
initialize(org.w3c.dom.Element e)
This method is called during the construction of a Filter.
|
boolean |
isGlobalFilter()
Identifies if this instance of the filter as being defined at the Test Case (global) level,
and not specific to the step (Test Node).
|
boolean |
isScopeGlobal()
This method returns a flag indicating whether the scope of this Filter is global to the entire test case or not.
|
boolean |
isScopeLocal()
This method returns a flag indicating whether the scope of this Filter is Local to the test step or not.
|
void |
markFilterAsGlobal(boolean isGlobal)
Identifies this instance of the filter as being defined at the Test Case level,
and not specific to the step (Test Node).
|
boolean |
postFilter(TestExec ts)
This method is called on your filter after execution of the TestNode's
custom "execute()" method.
|
boolean |
preFilter(TestExec ts)
This method is called by LISA after the currently executing TestNode
has prepared for the test Node's actual execution but before so doing.
|
void |
setValueToFilterPropKey(java.lang.String propKey) |
boolean |
supportsDesignTimeExecution()
Used to determine if this filter wants to allow itself to be executed in the editor via the button.
|
boolean |
supportsDynamicResponseToFilter()
Used by the framework to show the editor to change the response
|
getTypeName
void initialize(org.w3c.dom.Element e) throws TestDefException
e
- is the XML DOM for the FilterTestDefException
- when you cannot under any circumstances workboolean preFilter(TestExec ts) throws TestRunException
ts
- is the TestExec (test execution object) that holds the current
state.
TestRunException
- when you need to report some kind of fatal error
that should halt test execution
TestExec
boolean postFilter(TestExec ts) throws TestRunException
ts
- for the TestExec (our state)TestRunException
- when you need to report some kind of fatal error
that should halt test execution
TestExec
ParameterList getParameters()
void gatherFilterStepConnections(java.lang.String stepName, ParameterList params, java.util.Collection<com.itko.lisa.test.StepConnection> stepConnections)
stepName
- the name of the step that owns the filter, if any.params
- the parameters for the filter.stepConnections
- the collection to add new step connections to.java.lang.String getValueToFilterPropKey()
void setValueToFilterPropKey(java.lang.String propKey)
boolean supportsDesignTimeExecution()
boolean supportsDynamicResponseToFilter()
void markFilterAsGlobal(boolean isGlobal)
isGlobal
- boolean if true, set this filter at test case level.boolean isGlobalFilter()
boolean isScopeLocal()
boolean isScopeGlobal()
Copyright © 1998-2014 CA, Inc. All Rights Reserved.