public interface CustJavaNodeInterface
extends java.io.Serializable
CustJavaNode
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
executeNodeLogic(TestExec ts,
java.util.Map params)
This is the biggy.
|
ParameterList |
getParameters()
This important method defines the parameter set that is needed by your custom compoennt.
|
void |
initialize(TestCase test,
org.w3c.dom.Element node)
This method is called during TestCase construction, only once for each CustJavaNode
that is executed.
|
void initialize(TestCase test, org.w3c.dom.Element node) throws TestDefException
test
- the TestCase XML documentnode
- the CustJavaNode's Node element w/i the TestCase document.TestDefException
- throw this if you have a fatal problem with the XML objects you are sent.ParameterList getParameters()
java.lang.Object executeNodeLogic(TestExec ts, java.util.Map params) throws TestRunException
ts
- the TestExec object that provides you with access to get and modify the state of the currently
running test execution. For example, use ts.setNextNode() to tell LISA what TestNode to execute
immediately after this Node finishes.params
- these are the parameters that have been provided by the Test Case author for you to use
while executing your test logic. They are in a Map, ie., key/value pairs. The keys come
directly from the Test Case XML document, and the values are either the constants provided
in the TestCase document or are the values substituted for the keys that were specified in
TestCase document. For example "uid={{current.user.id}}" would have a Map entry of "uid=u001".TestRunException
- if you cannot execute your custom node logic for some reason and you want to
end the test because of this, then throw this exception. Less dramatic ways to notify the
test executor of an error are to use the log output and TestEvent facilities that are accessible
from the TestExec object.CustJavaNode
,
TestEvent
Copyright © 1998-2014 CA, Inc. All Rights Reserved.