public interface CompanionInterface extends NamedType, com.itko.lisa.model.IWriteXML
<Companion> type="com.itko.lisa.test.BrowserSelection">After the above, the Companion of the given type will read whatever XML it needs to initialize itself (see the BrowserSelection Companion for an example of this). Of course, then finally close the Element with </Companion>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPANION_TAG
The constant for the tag name for every companion you define in XML
|
static java.lang.String |
TYPE_TAG
The constant for the type attribute of the Companion tag to determine what
kind of Companion you want
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCustomParams()
This method shows if this particular companion require some custom settings to migrate
it to a companion controller.
|
void |
initialize(org.w3c.dom.Element e)
This method is called during the construction of a Companion.
|
void |
initialize(org.w3c.dom.Element e,
java.util.Map<java.lang.String,java.lang.Object> launchState)
This method is called during the construction of a Companion.
|
void |
testEnded(TestExec ts)
Thisi is the mirror of the testStarted method; the Test has completed execution,
including sending the final event that would normally be sent to all the TestEvent
listeners.
|
void |
testStarting(TestExec ts)
This method is called by LISA after the TestCase has been loaded and
the state object for the given test execution has been initialized, but
before the test has begun.
|
getTypeName
static final java.lang.String COMPANION_TAG
static final java.lang.String TYPE_TAG
void initialize(org.w3c.dom.Element e) throws TestDefException
e
- is the XML DOM for the FilterTestDefException
void initialize(org.w3c.dom.Element e, java.util.Map<java.lang.String,java.lang.Object> launchState) throws TestDefException
e
- is the XML DOM for the FilterlaunchState
- the launch state of the test case, so that these properties can be parsed.
For example, the launchState
contains the value of the keyLISA_TC_PATH
.TestDefException
void testStarting(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
void testEnded(TestExec ts) throws TestRunException
ts
- is the TestExec object for the test that just endedTestRunException
- when you want the world to know something terribly wrong
has happened.java.lang.Object getCustomParams()
Copyright © 1998-2014 CA, Inc. All Rights Reserved.