public class TransInfo extends CompInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TRANSINFO |
debug, LISA_NODEMSG_TESTEVENT, method, STATUS_ALL, STATUS_EXTERNALERROR, STATUS_FAIL_CODES, STATUS_FAILED, STATUS_INPUTERROR, STATUS_NONFAIL_CODES, STATUS_OK_CODES, STATUS_SUCCESS, STATUS_UNKNOWN, TYPE_AGENT_CLIENT, TYPE_BW, TYPE_BW_INBOUND, TYPE_BW_OUTBOUND, TYPE_BW_WS, TYPE_EJB, TYPE_EJB_INBOUND, TYPE_EJB_OUTBOUND, TYPE_FRAMEWORK, TYPE_HTTP, TYPE_HTTP_INBOUND, TYPE_HTTP_OUTBOUND, TYPE_HTTPS, TYPE_IBM_MQ, TYPE_IBM_WPS, TYPE_JDBC, TYPE_JMS, TYPE_JMS_INBOUND, TYPE_JMS_OUTBOUND, TYPE_REST_HTTP, TYPE_RMI, TYPE_UNKNOWN, TYPE_WMBROKER, TYPE_WMBROKER_INBOUND, TYPE_WMBROKER_OUTBOUND, TYPE_WMIS, TYPE_WMIS_INBOUND, TYPE_WMIS_OUTBOUND, TYPE_WS, TYPE_WS_INBOUND, TYPE_WS_OUTBOUND
Constructor and Description |
---|
TransInfo()
Used to allow proper serialization; not used in practice
|
TransInfo(Integrator integrator,
java.lang.String transID)
Used by the Lisa Integrator to construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChildIntegrationObject(java.lang.Object o) |
void |
assertEndTest(boolean expr,
java.lang.String endMsg)
Provides a mechanism to end the Lisa test in a normal, non-failed, mode if the given
expression is false.
|
void |
assertFailTest(boolean expr,
java.lang.String failMsg)
Provides an assertion mechanism that will report to Lisa to fail the test if the assertion
is false.
|
void |
assertGotoNode(boolean expr,
java.lang.String execThisNode)
Provides a mechansim to make an assertion, and if that assertion is false, report
to Lisa that the given node must now be executed next in the workflow.
|
void |
endTest(java.lang.String endTestMsg)
The server component calls this method to notify Lisa to end this test execution.
|
void |
failTest(java.lang.String failTestMsg)
Server components can instruct Lisa to end the test running with a failure.
|
java.util.List |
getChildIntegrators() |
java.lang.String |
getEndTestMsg()
Returns the message describing why the test should end, or null if one is not provided.
|
java.lang.String |
getFailTestMsg()
Returns the message given by the server component author regarding why the test
failed, or null if one was not given
|
java.lang.String |
getForcedNode()
If the server component wanted an explicit node executed next, it is returned here.
|
Integrator |
getIntegrator()
Returns the Integrator that controls this Transaction
|
java.lang.String |
getTransID()
This will return the transaction ID given by the component author.
|
boolean |
isEndTest()
Do not use: only for serialization
|
boolean |
isFailTest() |
boolean |
isTestEnding()
Used to determine if the test has been set to end either in normal of failed modes.
|
boolean |
isTestFailed()
Returns true if the test has been set to a failed status
|
void |
readXML(org.w3c.dom.Element e) |
void |
setEndTest(boolean endTest)
Do not use: only for serialization:: use: endTest( String endTestMsg )
|
void |
setEndTestMsg(java.lang.String endTestMsg)
Do not use: only for serialization:: use: endTest(String endTestMsg)
|
void |
setFailTest(boolean failTest)
Do not use: only for serialization:: use: failTest(String message)
|
void |
setFailTestMsg(java.lang.String failTestMsg)
Do not use: only for serialization:: use: failTest(String failTestMsg)
|
void |
setForcedNode(java.lang.String forcedNode) |
void |
setIntegrator(Integrator integrator) |
void |
setNextNode(java.lang.String forcedNode)
Server component authors have the ability to instruct Lisa to execute a node of
a given name explicitly.
|
void |
setTransID(java.lang.String transID)
Allows you to set a new transaction ID for the this transaction
|
java.lang.String |
toString() |
void |
writeXML(java.io.PrintWriter pw) |
getAllChildResponses, getCurrentComp, newChildComp, toXML
addBatch, addBatch, addChild, addEjbEvent, addLoggedSql, addLogMessage, addSql, addSql, assertFailTrans, assertFailTrans, assertLog, finished, finished, getAgentId, getAgentName, getBuildStatus, getBuildStatusMsg, getBuildTime, getChildren, getClassName, getCompContent, getContentUsed, getEjbEvents, getEndTime, getException, getExceptionList, getJvmInfo, getLISAProps, getLISATestEvents, getLoggedMessages, getLoggedSqls, getMethod, getMissingContent, getName, getOutboundAddress, getParent, getPropsMissing, getPropsUsed, getReceivingAddress, getRequest, getResponse, getSqls, getStartTime, getState, getTotalExecutionTime, getTotalSqlBatchCount, getTotalSqlExecCount, getTotalSqlExecCount, getTotalSqlExecTimeMs, getTransactionId, getType, getUniqueSqls, getUnqiueId, isTransFailed, log, notifyContentMissing, notifyContentUsed, notifyPropMissing, notifyPropUsed, readIntoList, resultSetNext, sendLISATestEvent, setAgentId, setAgentName, setBuildStatus, setBuildTime, setClassName, setCompContent, setEndTime, setException, setJvmInfo, setLISAProp, setLISAProp, setMethod, setName, setOutboundAddress, setParent, setReceivingAddress, setRequest, setResponse, setStartTime, setState, setTotalExecutionTime, setTransactionid, setType, setUnqiueId, toLongString, toShortString
public static final java.lang.String TRANSINFO
public TransInfo()
public TransInfo(Integrator integrator, java.lang.String transID)
integrator
- transID
- public java.lang.String getTransID()
public void setTransID(java.lang.String transID)
transID
- the new transaction ID for this transactionpublic Integrator getIntegrator()
public void setIntegrator(Integrator integrator)
public void setNextNode(java.lang.String forcedNode)
forcedNode
- the Lisa node name that the server wants invoked next in the test casepublic void setForcedNode(java.lang.String forcedNode)
public java.lang.String getForcedNode()
public java.util.List getChildIntegrators()
public void failTest(java.lang.String failTestMsg)
failTestMsg
- a string that will be logged and used by the test case author to better
understand the reason for the failurepublic java.lang.String getFailTestMsg()
public void setFailTestMsg(java.lang.String failTestMsg)
public boolean isTestFailed()
public boolean isFailTest()
public void setFailTest(boolean failTest)
public void endTest(java.lang.String endTestMsg)
endTestMsg
- the message describing why the test is endingpublic void setEndTest(boolean endTest)
public boolean isEndTest()
public java.lang.String getEndTestMsg()
public void setEndTestMsg(java.lang.String endTestMsg)
public boolean isTestEnding()
public void assertGotoNode(boolean expr, java.lang.String execThisNode)
expr
- expression that if false will cause Lisa to execute the given node nextexecThisNode
- the node name or property key in brace-notation of the node to executepublic void assertFailTest(boolean expr, java.lang.String failMsg)
expr
- expression to evaluatefailMsg
- message to report to Lisa with the fail test command if the expression is falsepublic void assertEndTest(boolean expr, java.lang.String endMsg)
expr
- expression to evaluateendMsg
- message to report to Lisa about why the test is commanded to endpublic boolean addChildIntegrationObject(java.lang.Object o)
public void readXML(org.w3c.dom.Element e)
Copyright © 1998-2014 CA, Inc. All Rights Reserved.