Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

oracle.apps.fnd.appltest.diagfwk.engine.impl
Class TestRunTreeNodeStepImpl

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.TestRunTreeNodeStepImpl
All Implemented Interfaces:
DiagConstants, DiagTreeNode, TestRunTreeNode

public class TestRunTreeNodeStepImpl
extends java.lang.Object
implements TestRunTreeNode, DiagConstants

Provides implementation for the TestRunTreeNode interface for a single step within a test execution. These nodes are the leaf nodes within a test run tree.

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/src/oracle/apps/fnd/appltest/diagfwk/engine/impl/TestRunTreeNodeStepImpl.java /main/8 2009/04/28 20:16:24 ilawler Exp $
Author:
ppradhan

Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.facade.TestRunTreeNode
TestRunTreeNode.NodeType
 
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status
 
Field Summary
 
Fields inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants
APPS_MSG_ID_TAG_NAME, CFG_ADR_PROVIDER_CLASS, CFG_CACHE_PROVIDER_CLASS, CFG_CRED_PROVIDER_CLASS, CFG_DAO_FACTORY_CLASS, CFG_DB_CONN_INFO_PROVIDER_CLASS, CFG_DB_CONN_PROVIDER_CLASS, CFG_NLS_PROVIDER_CLASS, CFG_PLSQL_PROVIDER_CLASS, CFG_PROFILE_PROVIDER_CLASS, CFG_SECURITY_PROVIDER_CLASS, CFG_SESSION_INFO_PROVIDER_CLASS, CFG_URL_PROVIDER_FACTORY_CLASS, CFG_WLS_MBEANSRV_CONNINFO_PROVIDER_CLASS, DATA_SECURITY_PERMISSION_ALLOWED, DATA_SECURITY_PERMISSION_NOT_ALLOWED, DELIM_URL, EXEC_MODE_CLI, EXEC_MODE_ESS, EXEC_MODE_INCIDENT, EXEC_MODE_JAVA, EXEC_MODE_UI, EXECUTABLE_TYPE_JAVA, EXECUTABLE_TYPE_PLSQL, EXECUTABLE_TYPE_TESTREF, FORMAT_HTML, FORMAT_XML, GUID_ORACLE_MINUS1, GUID_ORACLE_ZERO, INPUTS_STATUS_ALL_OPT_INPUTS, INPUTS_STATUS_NO_INPUTS, INPUTS_STATUS_REQ_INPUTS_NO_DEFAULTS, INPUTS_STATUS_REQ_INPUTS_W_DEFAULTS, IO_FLAG_I, IO_FLAG_O, JMX_API_BASE_OBJECT_NAME, LINK_EXTERNAL, LINK_INTERNAL, LINK_METALINK, N, NLS_BUNDLE_JAVA_RES, NLS_BUNDLE_MSG_SVC, NLS_BUNDLE_RES_REF, NLS_BUNDLE_XLIFF, NO, NULL, ODF_MBEAN_DOMAIN_NAME, PARAM_MON_INTERVAL, PLSQL_DEBUG_ENABLED_SYSTEM_PROP, PREREQ_TYPE_TAG_VALUE, PREREQ_TYPE_TEST, SECONDS_IN_ONE_DAY, SECONDS_IN_ONE_HOUR, STATUS_CANCELED, STATUS_EXECERROR, STATUS_FAILURE, STATUS_RUNNING, STATUS_SUCCESS, STATUS_WARNING, SYS_PROP_MAX_MONITOR_INTERNVAL, SYS_PROP_MAX_NUM_THREADS, SYSPROP_APPCONNFILE, SYSPROP_DIAG_CONFIG_FILE, TAG_TYPE_DIAG, TAG_TYPE_TAXONOMY, TEST_TYPE_DECL, TEST_TYPE_JAVA, USER_NAME, WEB_APP_NAME_TAG_NAME, Y, YES
 
Constructor Summary
TestRunTreeNodeStepImpl()
           
TestRunTreeNodeStepImpl(java.lang.String pId, java.lang.String pName, java.util.Date pStartTime, java.util.Date pEndTime, java.lang.String pStatusCode)
           
 
Method Summary
 java.util.List<TestRunTreeNode> getChildren()
          Gets the immediate children for this node.
 java.lang.String getCreatedBy()
          Returns the created by user id
 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 for this node.
 java.lang.String getExecStatus()
          Gets the execution status code for this node
 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 getRunBy()
          Who ran the run, for now simply another accessor to the created by element.
 java.util.Date getStartTime()
          Gets the start time for this node.
 java.lang.String getStatus()
          Gets the status code for this node.
 java.lang.Boolean getViewReportAllowed()
           
 boolean hasChildren()
          Returns a flag to indicate if this node has any children
 boolean hasReport()
          Checks to see if this node has a report
 boolean isDone()
          Returns true if this run/execution is complete.
 void setCreatedBy(java.lang.String pCreatedBy)
           
 void setEndTime(java.util.Date pEndTime)
           
 void setId(java.lang.String pId)
           
 void setName(java.lang.String pName)
           
 void setStartTime(java.util.Date pStartTime)
           
 void setStatus(java.lang.String pStatus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRunTreeNodeStepImpl

public TestRunTreeNodeStepImpl()

TestRunTreeNodeStepImpl

public TestRunTreeNodeStepImpl(java.lang.String pId,
                               java.lang.String pName,
                               java.util.Date pStartTime,
                               java.util.Date pEndTime,
                               java.lang.String pStatusCode)
Method Detail

getID

public java.lang.String getID()
Description copied from interface: TestRunTreeNode
Gets the ID for this node. This is normally the run ID for a test run or the execution ID for a test execution.

Specified by:
getID in interface TestRunTreeNode
Returns:
the ID for this node

getName

public java.lang.String getName()
Description copied from interface: TestRunTreeNode
Gets the name for this node. This is the run name for a test run and the test name for a test execution.

Specified by:
getName in interface TestRunTreeNode
Returns:
the name for this node

getStartTime

public java.util.Date getStartTime()
Description copied from interface: TestRunTreeNode
Gets the start time for this node. This is the date and time when this run or execution started.

Specified by:
getStartTime in interface TestRunTreeNode
Returns:
the start time for this node.

getEndTime

public java.util.Date getEndTime()
Description copied from interface: TestRunTreeNode
Gets the end time for this node. This is the date/time when this run or execution completed.

Specified by:
getEndTime in interface TestRunTreeNode
Returns:
the end time for this node.

getStatus

public java.lang.String getStatus()
Description copied from interface: TestRunTreeNode
Gets the status code for this node.

Specified by:
getStatus in interface TestRunTreeNode
Returns:
the status code for this node.

getExecStatus

public java.lang.String getExecStatus()
Description copied from interface: TestRunTreeNode
Gets the execution status code for this node

Specified by:
getExecStatus in interface TestRunTreeNode
Returns:
the execution status code for this node.

getDiagStatus

public java.lang.String getDiagStatus()
Description copied from interface: TestRunTreeNode
Gets the diagnostic status code for this node

Specified by:
getDiagStatus in interface TestRunTreeNode
Returns:
the diagnostic status code for this node

getNodeReportObj

public TestReportExtn getNodeReportObj()
Description copied from interface: TestRunTreeNode
Gets the report for this node. The report is the run report for a run node and the execution report for a test execution node.

Specified by:
getNodeReportObj in interface TestRunTreeNode
Returns:
the report for this node.

getChildren

public java.util.List<TestRunTreeNode> getChildren()
Description copied from interface: TestRunTreeNode
Gets the immediate children for this node. For a run node this is the list of child executions. For an execution node, this is the list of nested child executions (if any).

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.

Specified by:
getChildren in interface TestRunTreeNode
Returns:
the children for this node.

hasChildren

public boolean hasChildren()
Description copied from interface: DiagTreeNode
Returns a flag to indicate if this node has any children

Specified by:
hasChildren in interface DiagTreeNode
Returns:
true if the node has children. returns false otherwise.

setId

public void setId(java.lang.String pId)

setName

public void setName(java.lang.String pName)

setStartTime

public void setStartTime(java.util.Date pStartTime)

setEndTime

public void setEndTime(java.util.Date pEndTime)

setStatus

public void setStatus(java.lang.String pStatus)

getNodeType

public TestRunTreeNode.NodeType getNodeType()
Description copied from interface: TestRunTreeNode
Returns the type of the current node

Specified by:
getNodeType in interface TestRunTreeNode

hasReport

public boolean hasReport()
Description copied from interface: TestRunTreeNode
Checks to see if this node has a report

Specified by:
hasReport in interface TestRunTreeNode
Returns:
true if a report exists for this node. Otherwise returns false.

getViewReportAllowed

public java.lang.Boolean getViewReportAllowed()
Specified by:
getViewReportAllowed in interface TestRunTreeNode
Returns:
true if the current user is allowed to view the report for this node

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: TestRunTreeNode
Gets the display name for this node. This is the run name for a test run. For a test execution node, this is the test display name. For a step node, this is just the step name.

Specified by:
getDisplayName in interface TestRunTreeNode
Returns:
the display name for this node.

getElapsedTime

public java.lang.String getElapsedTime()
Description copied from interface: TestRunTreeNode
Returns the difference between endTime and startTime for this node in "HH:MM:SS" format. If end time is not yet available (e.g. in cases where the run or execution is still in progress) then difference between the current system time and the start time is returned.

Specified by:
getElapsedTime in interface TestRunTreeNode
Returns:
the elapsed time between start time and end time (if end time exists) or between start time and current time in "HH:MM:SS" format.

isDone

public boolean isDone()
Description copied from interface: TestRunTreeNode
Returns true if this run/execution is complete. Returns false otherwise.

Specified by:
isDone in interface TestRunTreeNode
Returns:
true if this run/execution is complete. Returns false otherwise.

getCreatedBy

public java.lang.String getCreatedBy()
Description copied from interface: TestRunTreeNode
Returns the created by user id

Specified by:
getCreatedBy in interface TestRunTreeNode
Returns:
the user guid for the user who created this entity

setCreatedBy

public void setCreatedBy(java.lang.String pCreatedBy)

getRunBy

public java.lang.String getRunBy()
Description copied from interface: TestRunTreeNode
Who ran the run, for now simply another accessor to the created by element.

Specified by:
getRunBy in interface TestRunTreeNode
Returns:
the user identifier for who ran this Run

Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.