Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

oracle.apps.fnd.appltest.diagfwk.engine
Class DiagCmdRunTests.ExecArg

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.engine.DiagCmdRunTests.ExecArg
All Implemented Interfaces:
DiagConstants, DiagCmdConstants
Direct Known Subclasses:
DiagCmdRunTests.TestArg, DiagCmdRunTests.TVIArg
Enclosing class:
DiagCmdRunTests

public abstract static class DiagCmdRunTests.ExecArg
extends java.lang.Object
implements DiagCmdConstants

Internal class to model an argument name value pair that represents an executable entity.


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status
 
Field Summary
protected  DiagCmdRunTests.ChainedTestListSet mChainedTestListSet
           
protected  java.lang.Boolean mHasTestRequiringApplicationCode
           
protected  java.util.List<java.util.concurrent.Future> mLastSubmitted
           
protected  java.lang.String mOrgArgName
           
protected  java.lang.String mOrgArgValue
           
protected  TagDAO mTagDAO
           
protected  TestDefDAO mTestDefDAO
           
 
Fields inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.DiagCmdConstants
DELIM_VALUE, PARAM_APP, PARAM_CHILD_REPORTS, PARAM_CONNECT_STR, PARAM_DB_PWD, PARAM_DB_UN, PARAM_DESTDIR, PARAM_DIR, PARAM_EXEC_MODE, PARAM_EXECID, PARAM_FORMAT, PARAM_HELP, PARAM_LANG, PARAM_MAKESUBDIR, PARAM_MODID, PARAM_MODKEY, PARAM_NTHREADS, PARAM_PREREQ, PARAM_PRINTTOCONSOLE, PARAM_PRINTTREE, PARAM_PWD, PARAM_QUERY, PARAM_RECURSE, PARAM_REGISTER, PARAM_REPORT, PARAM_RUN_LOCALLY, PARAM_RUN_NAME, PARAM_RUNID, PARAM_RUNTEST, PARAM_STATUS, PARAM_TEST, PARAM_TESTFILE, PARAM_TOKEN_INPUT, PARAM_TOKEN_TAG, PARAM_TRANSLATE, PARAM_USERNAME, PARAM_VALIDATE_ONLY, PARAM_WAITFORCOMPLETION, PARAM_WRITETOFILE, PRE_POPULATED_EXECID
 
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
DiagCmdRunTests.ExecArg()
           
 
Method Summary
 void executeNextSet(java.util.concurrent.ExecutorService pExecThreadPool, java.util.concurrent.ExecutorService pMonThreadPool, TestRun pRun, java.util.Map<java.lang.String,NameValueList> pInputs, boolean pWorkerMode, boolean pRunLocally, java.lang.String pExecMode, DiagCmdRunTests.TestDefCacheHandler handler)
          Executes the next set of tests if available
 java.lang.String getOrgArgName()
          Gets the original argument name
 java.lang.String getOrgArgValue()
          Gets the original argument value
 boolean hasMoreSets()
          Returns true if there are more sets to be executed.
 boolean hasTestRequiringApplicationCode(DiagCmdRunTests.TestDefCacheHandler handler)
           
protected  void init(java.lang.String pOrgArgName, java.lang.String pOrgArgValue)
           
 boolean isReady()
          Checks if this argument is ready for execution of the next set of tests
static java.util.List<? extends DiagCmdRunTests.ExecArg> makeExecArgs(NameValue pParam)
          Given a NameValue parameter (to the run command) converts it to a list of ExecArg elements.
 DiagCmdRunTests.TestListSet nextSet()
          Returns the next set of test lists that can be executed for this arg.
abstract  void resolveIdentifier()
          Based on the original argument value, resolves the arg value to an identifier for an executable entity i.e.
abstract  void resolveTests(boolean prereqs, boolean recurse, DiagCmdRunTests.TestDefCacheHandler handler)
          Resolves the tests that would need to be run when executing this argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mOrgArgName

protected java.lang.String mOrgArgName

mOrgArgValue

protected java.lang.String mOrgArgValue

mChainedTestListSet

protected DiagCmdRunTests.ChainedTestListSet mChainedTestListSet

mLastSubmitted

protected java.util.List<java.util.concurrent.Future> mLastSubmitted

mTagDAO

protected TagDAO mTagDAO

mTestDefDAO

protected TestDefDAO mTestDefDAO

mHasTestRequiringApplicationCode

protected java.lang.Boolean mHasTestRequiringApplicationCode
Constructor Detail

DiagCmdRunTests.ExecArg

public DiagCmdRunTests.ExecArg()
Method Detail

init

protected void init(java.lang.String pOrgArgName,
                    java.lang.String pOrgArgValue)

getOrgArgName

public java.lang.String getOrgArgName()
Gets the original argument name


getOrgArgValue

public java.lang.String getOrgArgValue()
Gets the original argument value


nextSet

public DiagCmdRunTests.TestListSet nextSet()
Returns the next set of test lists that can be executed for this arg. Returns null if nothing is left.


hasMoreSets

public boolean hasMoreSets()
Returns true if there are more sets to be executed. Otherwise returns false.

Returns:
true if there are more sets to be executed. Otherwise returns false.

isReady

public boolean isReady()
Checks if this argument is ready for execution of the next set of tests


hasTestRequiringApplicationCode

public boolean hasTestRequiringApplicationCode(DiagCmdRunTests.TestDefCacheHandler handler)

executeNextSet

public void executeNextSet(java.util.concurrent.ExecutorService pExecThreadPool,
                           java.util.concurrent.ExecutorService pMonThreadPool,
                           TestRun pRun,
                           java.util.Map<java.lang.String,NameValueList> pInputs,
                           boolean pWorkerMode,
                           boolean pRunLocally,
                           java.lang.String pExecMode,
                           DiagCmdRunTests.TestDefCacheHandler handler)
Executes the next set of tests if available


resolveIdentifier

public abstract void resolveIdentifier()
Based on the original argument value, resolves the arg value to an identifier for an executable entity i.e. either a test name or a tag value id.


resolveTests

public abstract void resolveTests(boolean prereqs,
                                  boolean recurse,
                                  DiagCmdRunTests.TestDefCacheHandler handler)
Resolves the tests that would need to be run when executing this argument. This process will normally perform any prerequisite analysis and determine the list of prerequisites (if required) as well as the list of top level tests that are to be run.

Parameters:
prereqs - - indicates whether or not prerequisites should be included during the resolution process
recurse - - indicates whether or not tests should be resolved recursively. This flag applies to exec arguments that represent tag values.
handler - - to get the TestDef from the cache for the current test run

makeExecArgs

public static java.util.List<? extends DiagCmdRunTests.ExecArg> makeExecArgs(NameValue pParam)
Given a NameValue parameter (to the run command) converts it to a list of ExecArg elements. For example if the NameValue represents test=T1,T2,T3 this method will return a list containing 3 ExecArg objects.


Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

Copyright © 2011 Oracle. All Rights Reserved.