|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagBObjImpl<T> oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDoc<T> oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDocReport<TestExec> oracle.apps.fnd.appltest.diagfwk.engine.impl.TestExecImpl
public class TestExecImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants |
---|
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status |
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.facade.TestRunTreeNode |
---|
TestRunTreeNode.NodeType |
Field Summary |
---|
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDocReport |
---|
mTestReport, xmlSrcFile |
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDoc |
---|
errMsgOnLoadXML, errMsgOnValXML |
Constructor Summary | |
---|---|
TestExecImpl()
|
Method Summary | |
---|---|
void |
addChild(TestExec pChild)
Adds the given TestExec object to the list of this execution's child executions. |
boolean |
checkCanceled()
Checks (by querying the repository) if this moniterable has been canceled. |
boolean |
checkDone()
Checks (by querying the repository) if this moniterable is still running. |
void |
completeStepReport(java.lang.String pStepName)
Complets the step report for the given step |
void |
computeLinksInReport()
Computes links within this report |
void |
copy(TestExec e)
Copies contents of the given TestExec object into this object |
void |
copyT(java.lang.Object pObj)
Copies the contents of the given object into this object |
void |
fetch()
Fetches the details of a particular test execution. |
void |
fetch(boolean pFetchChildExecutions)
Fetches the details of a particular test execution. |
void |
fetch(boolean pFetchChildExecutions,
boolean bLoadReport)
Fetches the details of a particular test execution. |
protected java.util.List<DiagJAXBXMLDocReport> |
getChildList()
Returns the list of nested entities |
java.util.List<TestRunTreeNode> |
getChildren()
Gets the immediate children for this node. |
TestExecList |
getChildTestExecList()
Gets the list of child executions for this test if any |
java.lang.String |
getDiagStatus()
Gets the diagnostic status code for this node |
java.lang.String |
getDisplayName()
Gets the display name for this node. |
java.lang.String |
getElapsedTime()
Returns the difference between endTime and startTime for this node in "HH:MM:SS" format. |
java.util.Date |
getEndTime()
Gets the end time |
java.lang.String |
getExecStatus()
Gets the execution status code for this node |
java.lang.String |
getExecutionId()
Gets the test execution id |
java.lang.String |
getID()
Gets the ID for this node. |
java.lang.String |
getName()
Gets the name for this node. |
TestReportExtn |
getNodeReportObj()
Gets the report for this node. |
TestRunTreeNode.NodeType |
getNodeType()
Returns the type of the current node |
java.lang.String |
getParentExecutionId()
Gets the parent execution id if any |
java.lang.String |
getReport()
Gets the execution report in the form a XML document |
java.lang.String |
getRunBy()
Who ran the run, for now simply another accessor to the created by element. |
java.lang.String |
getRunId()
Gets the test run id |
java.util.Date |
getStartTime()
Gets the start time |
java.lang.String |
getStatus()
Gets the status of this moniterable |
java.lang.String |
getTestDisplayName()
Gets the test display name for this execution |
java.lang.String |
getTestId()
Gets the test id |
java.lang.String |
getTestName()
Gets the test name for this execution |
java.lang.Boolean |
getViewReportAllowed()
Returns a boolean representing whether the salient details of a report may be viewed. |
protected java.lang.String |
getXmlSourceIdentifier()
Returns an identifier for the current loaded XML source document |
boolean |
hasChildren()
Returns a flag to indicate if this node has any children |
boolean |
hasReport()
Checks to see if this node has a report |
void |
initializeReport(java.lang.String pTestName,
java.lang.String pTestDisplayName,
java.lang.String pTestVersion)
Initializes the test report |
void |
initializeStepReport(java.lang.String pStepName,
java.lang.String pExecName,
java.lang.String pExecType)
Initializes the step report for the given step name |
boolean |
isDone()
Returns true if the moniterable is done. |
protected void |
loadReport()
Loads report into JAXB objects from fetched report XML. |
protected void |
populate(java.lang.String pXMLMetadata)
|
void |
save()
Saves the status and contents of the moniterable to the repository. |
void |
setChildTestExecList(TestExecList childExecList)
Sets the list of child executions for this test if any |
void |
setEndTime(java.util.Date pEndTime)
Sets the end time |
void |
setExecutionId(java.lang.String pExecutionId)
Sets the execution id |
protected void |
setJAXBMetadataStr(java.lang.String pXMLStr)
Sets the marshalled XML document for the metadata in String format |
void |
setParentExecutionId(java.lang.String pParentExecutionId)
Sets the parent execution id |
void |
setReport(java.lang.String pReport)
Sets the report XML |
void |
setRunId(java.lang.String pRunId)
Sets the run id |
void |
setStartTime(java.util.Date pStartTime)
Sets the start time |
void |
setStatus(java.lang.String pStatus)
Sets the status |
void |
setTestDisplayName(java.lang.String testDisplayName)
Sets the test display name for this execution |
void |
setTestId(java.lang.String pTestId)
Sets the test id |
void |
setTestName(java.lang.String pTestName)
Sets the test name for this execution |
void |
setViewReportAllowed(java.lang.Boolean pViewReportAllowed)
|
void |
translateReport()
Translates the translatable contents of this report to user's session language. |
void |
visitAll(TestRun.TestRunVisitor pVisitor)
Traverses this Execution as well as all Exections under this Execution and invokes the appropriate "visit()" method on the TestRunVisitor for each node. |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDocReport |
---|
getErrorMsgOnLoadXmlErr, getErrorMsgOnXmlValErr, getJAXBMetadataObj, getJAXBPkg, getReportObj, performPostLoad, saveReportHTML, saveReportHTML, saveReportXML, saveReportXML, setJAXBMetadataObj, setReportObj, stripExtn, writeReport, writeReport, writeReportHTML, writeReportHTML, writeReportXML, writeReportXML |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDoc |
---|
getErrMsgOnLoadXML, getErrMsgOnValXML, load, reactToValidationEvents, saveJAXB, saveToFile, setErrMsgOnLoadXML, setErrMsgOnValXML |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagBObjImpl |
---|
copyCommon, getCreatedBy, getCreationDate, getLastUpdateDate, getLastUpdatedBy, getLastUpdateLogin, isCreatedByOracle, setCreatedBy, setCreationDate, setLastUpdateDate, setLastUpdatedBy, setLastUpdateLogin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.TestExec |
---|
getReportObj, setReportObj, writeReport, writeReport, writeReportHTML, writeReportHTML, writeReportXML, writeReportXML |
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.DiagBObj |
---|
getCreatedBy, getCreationDate, getLastUpdateDate, getLastUpdatedBy, getLastUpdateLogin, isCreatedByOracle, setCreatedBy, setCreationDate, setLastUpdateDate, setLastUpdatedBy, setLastUpdateLogin |
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.facade.TestRunTreeNode |
---|
getCreatedBy |
Constructor Detail |
---|
public TestExecImpl()
Method Detail |
---|
public java.lang.String getExecutionId()
TestExec
getExecutionId
in interface TestExec
public java.lang.String getRunId()
TestExec
getRunId
in interface TestExec
public java.lang.String getTestId()
TestExec
getTestId
in interface TestExec
public java.lang.String getTestName()
TestExec
getTestName
in interface TestExec
public java.lang.String getTestDisplayName()
TestExec
getTestDisplayName
in interface TestExec
public java.lang.String getParentExecutionId()
TestExec
getParentExecutionId
in interface TestExec
public java.lang.String getStatus()
TestMoniterable
getStatus
in interface TestRunTreeNode
getStatus
in interface TestMoniterable<TestExec>
public java.util.Date getStartTime()
TestExec
getStartTime
in interface TestRunTreeNode
getStartTime
in interface TestExec
public java.util.Date getEndTime()
TestExec
getEndTime
in interface TestRunTreeNode
getEndTime
in interface TestExec
public java.lang.String getReport()
TestExec
getReport
in interface TestExec
public java.lang.String getRunBy()
TestRunTreeNode
getRunBy
in interface TestRunTreeNode
public TestExecList getChildTestExecList()
TestExec
getChildTestExecList
in interface TestExec
public void setExecutionId(java.lang.String pExecutionId)
TestExec
setExecutionId
in interface TestExec
pExecutionId
- the execution idpublic void setRunId(java.lang.String pRunId)
TestExec
setRunId
in interface TestExec
pRunId
- the run idpublic void setTestId(java.lang.String pTestId)
TestExec
setTestId
in interface TestExec
pTestId
- the test idpublic void setTestName(java.lang.String pTestName)
TestExec
setTestName
in interface TestExec
pTestName
- the test name for this executionpublic void setTestDisplayName(java.lang.String testDisplayName)
TestExec
setTestDisplayName
in interface TestExec
testDisplayName
- the display name for the test
in this execution.public void setParentExecutionId(java.lang.String pParentExecutionId)
TestExec
setParentExecutionId
in interface TestExec
pParentExecutionId
- the parent execution idpublic void setStatus(java.lang.String pStatus)
TestExec
setStatus
in interface TestExec
pStatus
- the statuspublic void setStartTime(java.util.Date pStartTime)
TestExec
setStartTime
in interface TestExec
pStartTime
- the start timepublic void setEndTime(java.util.Date pEndTime)
TestExec
setEndTime
in interface TestExec
pEndTime
- the end timepublic void setReport(java.lang.String pReport)
TestExec
setReport
in interface TestExec
pReport
- the report XMLpublic java.lang.Boolean getViewReportAllowed()
DiagJAXBXMLDocReport
getViewReportAllowed
in interface TestRunTreeNode
getViewReportAllowed
in interface TestExec
getViewReportAllowed
in class DiagJAXBXMLDocReport<TestExec>
public void setViewReportAllowed(java.lang.Boolean pViewReportAllowed)
setViewReportAllowed
in interface TestExec
pViewReportAllowed
- new value of whether a test's execution report can
be viewedpublic void setChildTestExecList(TestExecList childExecList)
TestExec
setChildTestExecList
in interface TestExec
childExecList
- the list of child executions for this test if anypublic void copy(TestExec e)
TestExec
copy
in interface TestExec
copy
in class DiagBObjImpl<TestExec>
e
- the source TestExec object to copy frompublic void copyT(java.lang.Object pObj)
DiagBObj
copyT
in interface DiagBObj<TestExec>
pObj
- the contents of the given object into this objectpublic void save()
TestMoniterable
save
in interface TestMoniterable<TestExec>
protected void setJAXBMetadataStr(java.lang.String pXMLStr)
DiagJAXBXMLDoc
setJAXBMetadataStr
in class DiagJAXBXMLDoc<TestExec>
pXMLStr
- marshalled XML documentprotected java.lang.String getXmlSourceIdentifier()
DiagJAXBXMLDocReport
getXmlSourceIdentifier
in class DiagJAXBXMLDocReport<TestExec>
public boolean isDone()
TestMoniterable
isDone
in interface TestRunTreeNode
isDone
in interface TestMoniterable<TestExec>
public void initializeReport(java.lang.String pTestName, java.lang.String pTestDisplayName, java.lang.String pTestVersion)
TestExec
initializeReport
in interface TestExec
public void initializeStepReport(java.lang.String pStepName, java.lang.String pExecName, java.lang.String pExecType)
TestExec
initializeStepReport
in interface TestExec
pStepName
- name of the steppExecName
- name of the executable that will get executed for
the step.pExecType
- type of the executable for the step.public void completeStepReport(java.lang.String pStepName)
TestExec
completeStepReport
in interface TestExec
pStepName
- name of the step to completepublic void addChild(TestExec pChild)
TestExec
addChild
in interface TestExec
pChild
- child execution to add.public void fetch()
TestExec
fetch
in interface TestExec
public void fetch(boolean pFetchChildExecutions)
TestExec
fetch
in interface TestExec
pFetchChildExecutions
- if true, this method will additionally,
also fetch details of any child executions. Otherwise fetches
details for only the current execution.public void fetch(boolean pFetchChildExecutions, boolean bLoadReport)
TestExec
fetch
in interface TestExec
pFetchChildExecutions
- if true, this method will additionally,
also fetch details of any child executions. Otherwise fetches
details for only the current execution.bLoadReport
- if true, this method will check the view report
permission and load the test report if it is allowed.protected void loadReport()
protected void populate(java.lang.String pXMLMetadata)
protected java.util.List<DiagJAXBXMLDocReport> getChildList()
DiagJAXBXMLDocReport
getChildList
in class DiagJAXBXMLDocReport<TestExec>
public void translateReport()
translateReport
in interface TestExec
translateReport
in class DiagJAXBXMLDocReport<TestExec>
public void computeLinksInReport()
DiagJAXBXMLDocReport
computeLinksInReport
in interface TestExec
computeLinksInReport
in class DiagJAXBXMLDocReport<TestExec>
public java.lang.String getID()
TestRunTreeNode
getID
in interface TestRunTreeNode
public java.lang.String getName()
TestRunTreeNode
getName
in interface TestRunTreeNode
public java.lang.String getDisplayName()
TestRunTreeNode
getDisplayName
in interface TestRunTreeNode
public java.lang.String getExecStatus()
TestRunTreeNode
getExecStatus
in interface TestRunTreeNode
public java.lang.String getDiagStatus()
TestRunTreeNode
getDiagStatus
in interface TestRunTreeNode
public java.util.List<TestRunTreeNode> getChildren()
TestRunTreeNode
If the children are already fetch this method will not re-execute a query to the database. If the children are not yet fetched for this node, this method will fetch the children from the database.
getChildren
in interface TestRunTreeNode
public boolean hasChildren()
DiagTreeNode
hasChildren
in interface DiagTreeNode
public TestReportExtn getNodeReportObj()
TestRunTreeNode
getNodeReportObj
in interface TestRunTreeNode
public TestRunTreeNode.NodeType getNodeType()
TestRunTreeNode
getNodeType
in interface TestRunTreeNode
public boolean hasReport()
TestRunTreeNode
hasReport
in interface TestRunTreeNode
public boolean checkCanceled()
TestMoniterable
checkCanceled
in interface TestMoniterable<TestExec>
public boolean checkDone()
TestMoniterable
checkDone
in interface TestMoniterable<TestExec>
public java.lang.String getElapsedTime()
TestRunTreeNode
getElapsedTime
in interface TestRunTreeNode
public void visitAll(TestRun.TestRunVisitor pVisitor)
TestExec
This method initially invokes pVisitor.visit(TestExec) with this execution object. Subsequently, it invokes pVisitor.visit(TestExec) for each nested execution (if any).
visitAll
in interface TestExec
pVisitor
- TestRunVisitor performing the visit
on this run.
|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |