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

E22565-06

oracle.apps.fnd.appltest.diagfwk.api.external
Interface DiagnosticsTestFrameworkMXBean

All Known Implementing Classes:
DiagnosticsTestFrameworkMXBeanImpl

@MBeanRequiredCustomSecurityGroups(value={"FUSION_APPS_CRM_DIAGNOSTICS_APPID","FUSION_APPS_FSCM_DIAGNOSTICS_APPID","FUSION_APPS_HCM_DIAGNOSTICS_APPID"})
public interface DiagnosticsTestFrameworkMXBean

JMX API MXBean Interface. This interface is intended for consuming code which is running outside of the WLS container, otherwise the DiagnosticsTestFramework Java API should be used.

Since:
11.1.1.0.0
Version:
$Date: 2011/09/19 09:15:58 $ $Author: cshare $
Author:
viramac

Method Summary
 java.lang.String getDiagnosticStatusByRunId(java.lang.String runId)
          Get the diagnostic status of a test run given its id
 java.lang.String getDiagnosticStatusByRunName(java.lang.String runName)
          Get the diagnostic status of a test run given its name
 java.lang.String getExecutionStatusByRunId(java.lang.String runId)
          Get the execution status of a test run given its id
 java.lang.String getExecutionStatusByRunName(java.lang.String runName)
          Get the execution status of a test run given its name
 java.util.Map<java.lang.String,java.lang.String[]> getInputParameters(java.lang.String testName)
          get input parameters of a given test.
 java.lang.String getODFDashboardURL()
          Gets the URL to the Diagnostics Dashboard UI application.
 java.lang.String getTestRunReportURL(java.lang.String runId)
          Gets the URL to the Run report for the given run ID.
 TestRunStatusSummary[] getTestRunStatusesByRunName(java.lang.String runName)
          Get an array of test status summary for the matched test runs givn the run name
 java.lang.Boolean isTestRunnable(java.lang.String testName)
          Check if a test can be run.
 java.util.Map<java.lang.String,java.lang.String[]> queryListofTestDef()
          get list of diagnostic tests.
 java.lang.String run(java.lang.String[] testNames, java.lang.String[] products, java.lang.String[] moduleIds, java.lang.String[] moduleKeys, java.lang.String[] tagNames, java.lang.String[] tagValues, java.lang.String runName, java.lang.Boolean recurse, java.lang.Boolean runPrereq, java.lang.Integer monitorInterval, java.lang.Integer numThreads, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams, java.lang.Boolean asynchronous)
          Run tests specified by test names, product, module id, module key, and/or tag name/value pair (one of those must not be null) with the given settings.
 java.lang.String runByModuleId(java.lang.String[] moduleIds, java.lang.String runName, java.lang.Boolean recurse, java.lang.Boolean runPrereq, java.lang.Integer monitorInterval, java.lang.Integer numThreads, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams, java.lang.Boolean asynchronous)
          Run tests specified by the module id with the given settings.
 java.lang.String runByModuleKey(java.lang.String[] moduleKeys, java.lang.String runName, java.lang.Boolean recurse, java.lang.Boolean runPrereq, java.lang.Integer monitorInterval, java.lang.Integer numThreads, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams, java.lang.Boolean asynchronous)
          Run tests specified by the module key with the given settings.
 java.lang.String runByProduct(java.lang.String[] products, java.lang.String runName, java.lang.Boolean recurse, java.lang.Boolean runPrereq, java.lang.Integer monitorInterval, java.lang.Integer numThreads, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams, java.lang.Boolean asynchronous)
          Run tests specified by the product with the given settings.
 java.lang.String runByTag(java.lang.String[] tagNames, java.lang.String[] tagValues, java.lang.String runName, java.lang.Boolean recurse, java.lang.Boolean runPrereq, java.lang.Integer monitorInterval, java.lang.Integer numThreads, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams, java.lang.Boolean asynchronous)
          Run tests specified by the tag name/value pair with the given settings.
 java.util.Map<java.lang.String,java.lang.String[]> runByTestName(java.lang.String[] testNames, java.lang.Boolean runPrereq, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams, java.lang.String ADR_Home, java.lang.String incidentID)
          Run tests specified by test names with the given settings and copy the reports to the managed server's ADR location."
 java.lang.String runByTestName(java.lang.String[] testNames, java.lang.String runName, java.lang.Boolean recurse, java.lang.Boolean runPrereq, java.lang.Integer monitorInterval, java.lang.Integer numThreads, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams, java.lang.Boolean asynchronous)
          Run tests specified by the test names with the given settings.
 

Method Detail

queryListofTestDef

java.util.Map<java.lang.String,java.lang.String[]> queryListofTestDef()
get list of diagnostic tests.

Returns:
test names and test definition attributes in this format: <$TestName, [$DisplayName, $TestID, $Description, $OwnerModuleID, $InputCount, $PrereqTestCount]> The first entry in the map will be a header entry which indicates the meaning of each field. Subsequent entries contains actual test definitions.
Throws:
java.lang.RuntimeException - if testNames is null or empty or if error occurs

getInputParameters

java.util.Map<java.lang.String,java.lang.String[]> getInputParameters(java.lang.String testName)
get input parameters of a given test.

Parameters:
testName - Name of the test to be checked, must not be null or empty.
Returns:
parameterName and attributes in this format: <$InputParameterName, [$Description, $DataType, $DefaultValue, $IsRequired]>
Throws:
java.lang.RuntimeException - if testNames is null or empty or if error occurs

isTestRunnable

java.lang.Boolean isTestRunnable(java.lang.String testName)
Check if a test can be run.

Parameters:
testName - Name of the test to be checked, must not be null or empty.
Returns:
true if the test can be run; false if not.
Throws:
java.lang.RuntimeException - if testNames is null or empty or if error occurs

runByTestName

java.util.Map<java.lang.String,java.lang.String[]> runByTestName(java.lang.String[] testNames,
                                                                 java.lang.Boolean runPrereq,
                                                                 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams,
                                                                 java.lang.String ADR_Home,
                                                                 java.lang.String incidentID)
Run tests specified by test names with the given settings and copy the reports to the managed server's ADR location."

Parameters:
testNames - List of one or more names of the tests to run, must not be null or empty.
runPrereq - If TRUE, performs a prerequisite analysis to identify any prerequisite tests and runs those prior to running the specified tests. If FALSE, runs only the specified tests. If null, defaults to FALSE
inputParams - For each test, a set of parameter values can be fed. Can be null.
ADR_Home - used to construct the ADR location to where the reports will be written.
incidentID - used to construct the ADR location to where the reports will be written.
Returns:
RunId and list of report files generated for that run, in a map
Throws:
java.lang.RuntimeException - if testNames is null or empty or if error occurs

runByTestName

java.lang.String runByTestName(java.lang.String[] testNames,
                               java.lang.String runName,
                               java.lang.Boolean recurse,
                               java.lang.Boolean runPrereq,
                               java.lang.Integer monitorInterval,
                               java.lang.Integer numThreads,
                               java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams,
                               java.lang.Boolean asynchronous)
Run tests specified by the test names with the given settings.

Parameters:
testNames - List of one or more names of the tests to run, must not be null or empty.
runName - The name of the test run, if null, this will be generated.
recurse - If TRUE, runs all tests associated with the specified taxonomy modules and/or diagnostic tags. If FALSE, runs only the tests immediately associated with the specified taxonomy modules and/or diagnostic tags. If null, defaults to TRUE.
runPrereq - If TRUE, performs a prerequisite analysis to identify any prerequisite tests and runs those prior to running the specified tests. If FALSE, runs only the specified tests. If null, defaults to FALSE
monitorInterval - The monitoring interval in seconds. This parameter specifies the interval in which the status of the run is uploaded to the test repository. If null, defaults to 30 seconds.
numThreads - The number of parallel threads that should be spawned to execute tests in this run. Specifying a value of 1 for this parameter will execute the tests serially. The value must be between 1 and the value specified in the system property "oracle.odf.run.maxthreads", or 100 if the system property is not set. If null, defaults to 5.
inputParams - For each test, a set of parameter values can be fed. Can be null.
asynchronous - If TRUE, tests are run asynchronously. Otherwise, they are run synchronously. If null, defaults to TRUE
Returns:
RunId of the test run
Throws:
java.lang.RuntimeException - if testNames is null or empty or if error occurs

runByProduct

java.lang.String runByProduct(java.lang.String[] products,
                              java.lang.String runName,
                              java.lang.Boolean recurse,
                              java.lang.Boolean runPrereq,
                              java.lang.Integer monitorInterval,
                              java.lang.Integer numThreads,
                              java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams,
                              java.lang.Boolean asynchronous)
Run tests specified by the product with the given settings.

Parameters:
products - List of products whose associated tests to run, must not be null or empty.
runName - The name of the test run, if null, this will be generated.
recurse - If TRUE, runs all tests associated with the specified taxonomy modules and/or diagnostic tags. If FALSE, runs only the tests immediately associated with the specified taxonomy modules and/or diagnostic tags. If null, defaults to TRUE.
runPrereq - If TRUE, performs a prerequisite analysis to identify any prerequisite tests and runs those prior to running the specified tests. If FALSE, runs only the specified tests. If null, defaults to FALSE
monitorInterval - The monitoring interval in seconds. This parameter specifies the interval in which the status of the run is uploaded to the test repository. If null, defaults to 30 seconds.
numThreads - The number of parallel threads that should be spawned to execute tests in this run. Specifying a value of 1 for this parameter will execute the tests serially. The value must be between 1 and the value specified in the system property "oracle.odf.run.maxthreads", or 100 if the system property is not set. If null, defaults to 5.
inputParams - For each test, a set of parameter values can be fed. Can be null.
asynchronous - If TRUE, tests are run asynchronously. Otherwise, they are run synchronously. If null, defaults to TRUE
Returns:
RunId of the test run
Throws:
java.lang.RuntimeException - if product is null or empty or if error occurs during test execution

runByModuleId

java.lang.String runByModuleId(java.lang.String[] moduleIds,
                               java.lang.String runName,
                               java.lang.Boolean recurse,
                               java.lang.Boolean runPrereq,
                               java.lang.Integer monitorInterval,
                               java.lang.Integer numThreads,
                               java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams,
                               java.lang.Boolean asynchronous)
Run tests specified by the module id with the given settings.

Parameters:
moduleIds - List of module ids whose associated tests to run, must not be null or empty.
runName - The name of the test run, if null, this will be generated.
recurse - If TRUE, runs all tests associated with the specified taxonomy modules and/or diagnostic tags. If FALSE, runs only the tests immediately associated with the specified taxonomy modules and/or diagnostic tags. If null, defaults to TRUE.
runPrereq - If TRUE, performs a prerequisite analysis to identify any prerequisite tests and runs those prior to running the specified tests. If FALSE, runs only the specified tests. If null, defaults to FALSE
monitorInterval - The monitoring interval in seconds. This parameter specifies the interval in which the status of the run is uploaded to the test repository. If null, defaults to 30 seconds.
numThreads - The number of parallel threads that should be spawned to execute tests in this run. Specifying a value of 1 for this parameter will execute the tests serially. The value must be between 1 and the value specified in the system property "oracle.odf.run.maxthreads", or 100 if the system property is not set. If null, defaults to 5.
inputParams - For each test, a set of parameter values can be fed. Can be null.
asynchronous - If TRUE, tests are run asynchronously. Otherwise, they are run synchronously. If null, defaults to TRUE
Returns:
RunId of the test run
Throws:
java.lang.RuntimeException - if moduleId is null or invalid or if error occurs during test execution

runByModuleKey

java.lang.String runByModuleKey(java.lang.String[] moduleKeys,
                                java.lang.String runName,
                                java.lang.Boolean recurse,
                                java.lang.Boolean runPrereq,
                                java.lang.Integer monitorInterval,
                                java.lang.Integer numThreads,
                                java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams,
                                java.lang.Boolean asynchronous)
Run tests specified by the module key with the given settings.

Parameters:
moduleKeys - List of module keys whose associated tests to run, must not be null or empty.
runName - The name of the test run, if null, this will be generated.
recurse - If TRUE, runs all tests associated with the specified taxonomy modules and/or diagnostic tags. If FALSE, runs only the tests immediately associated with the specified taxonomy modules and/or diagnostic tags. If null, defaults to TRUE.
runPrereq - If TRUE, performs a prerequisite analysis to identify any prerequisite tests and runs those prior to running the specified tests. If FALSE, runs only the specified tests. If null, defaults to FALSE
monitorInterval - The monitoring interval in seconds. This parameter specifies the interval in which the status of the run is uploaded to the test repository. If null, defaults to 30 seconds.
numThreads - The number of parallel threads that should be spawned to execute tests in this run. Specifying a value of 1 for this parameter will execute the tests serially. The value must be between 1 and the value specified in the system property "oracle.odf.run.maxthreads", or 100 if the system property is not set. If null, defaults to 5.
inputParams - For each test, a set of parameter values can be fed. Can be null.
asynchronous - If TRUE, tests are run asynchronously. Otherwise, they are run synchronously. If null, defaults to TRUE
Returns:
RunId of the test run
Throws:
java.lang.RuntimeException - if moduleKey is null or if error occurs during test execution

runByTag

java.lang.String runByTag(java.lang.String[] tagNames,
                          java.lang.String[] tagValues,
                          java.lang.String runName,
                          java.lang.Boolean recurse,
                          java.lang.Boolean runPrereq,
                          java.lang.Integer monitorInterval,
                          java.lang.Integer numThreads,
                          java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams,
                          java.lang.Boolean asynchronous)
Run tests specified by the tag name/value pair with the given settings.

Parameters:
tagNames - List of tag names whose associated tests to run, must not be null or empty. The size of tagNames must be equal to that of tagValues
tagValues - List of tag value whose associated tests to run, must not be null or empty. The size of tagNames must be equal to that of tagValues
runName - The name of the test run, if null, this will be generated.
recurse - If TRUE, runs all tests associated with the specified taxonomy modules and/or diagnostic tags. If FALSE, runs only the tests immediately associated with the specified taxonomy modules and/or diagnostic tags. If null, defaults to TRUE.
runPrereq - If TRUE, performs a prerequisite analysis to identify any prerequisite tests and runs those prior to running the specified tests. If FALSE, runs only the specified tests. If null, defaults to FALSE
monitorInterval - The monitoring interval in seconds. This parameter specifies the interval in which the status of the run is uploaded to the test repository. If null, defaults to 30 seconds.
numThreads - The number of parallel threads that should be spawned to execute tests in this run. Specifying a value of 1 for this parameter will execute the tests serially. The value must be between 1 and the value specified in the system property "oracle.odf.run.maxthreads", or 100 if the system property is not set. If null, defaults to 5.
inputParams - For each test, a set of parameter values can be fed. Can be null.
asynchronous - If TRUE, tests are run asynchronously. Otherwise, they are run synchronously. If null, defaults to TRUE
Returns:
RunId of the test run
Throws:
java.lang.RuntimeException - if tagName or tagValue is null or if error occurs during test execution

run

java.lang.String run(java.lang.String[] testNames,
                     java.lang.String[] products,
                     java.lang.String[] moduleIds,
                     java.lang.String[] moduleKeys,
                     java.lang.String[] tagNames,
                     java.lang.String[] tagValues,
                     java.lang.String runName,
                     java.lang.Boolean recurse,
                     java.lang.Boolean runPrereq,
                     java.lang.Integer monitorInterval,
                     java.lang.Integer numThreads,
                     java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> inputParams,
                     java.lang.Boolean asynchronous)
Run tests specified by test names, product, module id, module key, and/or tag name/value pair (one of those must not be null) with the given settings.

Parameters:
testNames - List of one or more names of the tests to run.
products - List of products whose associated tests to run.
moduleIds - List of module ids whose associated tests to run.
moduleKeys - List of module keys whose associated tests to run.
tagNames - List of tag names whose associated tests to run. The size of tagNames must be equal to that of tagValues
tagValues - List of tag values whose associated tests to run. The size of tagNames must be equal to that of tagValues
runName - The name of the test run, if null, this will be generated.
recurse - If TRUE, runs all tests associated with the specified taxonomy modules and/or diagnostic tags. If FALSE, runs only the tests immediately associated with the specified taxonomy modules and/or diagnostic tags. If null, defaults to TRUE.
runPrereq - If TRUE, performs a prerequisite analysis to identify any prerequisite tests and runs those prior to running the specified tests. If FALSE, runs only the specified tests. If null, defaults to FALSE
monitorInterval - The monitoring interval in seconds. This parameter specifies the interval in which the status of the run is uploaded to the test repository. If null, defaults to 30 seconds.
numThreads - The number of parallel threads that should be spawned to execute tests in this run. Specifying a value of 1 for this parameter will execute the tests serially. The value must be between 1 and the value specified in the system property "oracle.odf.run.maxthreads", or 100 if the system property is not set. If null, defaults to 5.
inputParams - For each test, a set of parameter values can be fed. Can be null.
asynchronous - If TRUE, tests are run asynchronously. Otherwise, they are run synchronously. If null, defaults to TRUE
Returns:
RunId of the test run
Throws:
java.lang.RuntimeException - if all of the test-specifying parameters {testNames, product, moduleId, moduleKey, tagName/Value} are null or invalid, or if the run name is already used, or if the monitor interval is less than 0 or greater than 1 day or if the number of threads is less than 0 or greater than 100 or if error occurs during test execution

getDiagnosticStatusByRunId

java.lang.String getDiagnosticStatusByRunId(java.lang.String runId)
Get the diagnostic status of a test run given its id

Parameters:
runId -
Returns:
one of SUCCESS, FAILURE, WARNING, UNKNOWN

getDiagnosticStatusByRunName

java.lang.String getDiagnosticStatusByRunName(java.lang.String runName)
Get the diagnostic status of a test run given its name

Parameters:
runName -
Returns:
one of SUCCESS, FAILURE, WARNING, UNKNOWN if exactly one matching run is found; null if no matches or more than one match are found for the given run name.

getTestRunStatusesByRunName

TestRunStatusSummary[] getTestRunStatusesByRunName(java.lang.String runName)
Get an array of test status summary for the matched test runs givn the run name

Parameters:
runName - Can contain one or more wild cards(i.e. %)
Returns:
an array of TestRunStatusSummary. If no matches are found, it returns an empty array

getExecutionStatusByRunId

java.lang.String getExecutionStatusByRunId(java.lang.String runId)
Get the execution status of a test run given its id

Parameters:
runId -
Returns:
RUNNING, SUCCESS, ERROR, CANCELED, UNKNOWN;

getExecutionStatusByRunName

java.lang.String getExecutionStatusByRunName(java.lang.String runName)
Get the execution status of a test run given its name

Parameters:
runName -
Returns:
one of RUNNING, SUCCESS, ERROR, CANCELED, UNKNOWN if exactly one matching run is found; null if no matches or more than one match are found for the given run name.

getTestRunReportURL

java.lang.String getTestRunReportURL(java.lang.String runId)
Gets the URL to the Run report for the given run ID.

Parameters:
runId - Run ID for which to get the run report URL.
Returns:
The URL to the run report for the given run ID. Returns null if the runId is invalid.
Throws:
DiagfwkException - when it is not able to construct the URL eventhough the runId is valid. This might happen in case the DIAGNOSTICS_DASHBOARD_URL profile option is not set or set to an invalid value.

getODFDashboardURL

java.lang.String getODFDashboardURL()
Gets the URL to the Diagnostics Dashboard UI application.

Returns:
the URL to the Diagnostics Dashboard UI application. The URL is determined by reading the value of the DIAGNOSTICS_DASHBOARD_URL profile option

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

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.