| 
 | Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.apps.fnd.appltest.diagfwk.api.AbstractDiagTest
public abstract class AbstractDiagTest
Provides an abstract base class for all diagnostic tests. All clients writing Java test classes should extend from this class. The clients would need to implement the following abstract APIs:
init() - perform any required initialization such as
  collecting and validating input parameters.
  runTest() - all test execution logic should go in this
 method. The logic in this method performs the tests and updates the
 report with the results. Additionally, at the end it will also set the
 result on the context.
  cleanup() - perform any cleanup that is required
  after the test execution is completed. The diagnostic framework will
  call this API in a finally block so that cleanup can be performed
  even if runTest() method fails.
 This base class stores the execution context for the test and additionally provides convenience APIs for getting input parameters and setting output parameters.
| Constructor Summary | |
|---|---|
| AbstractDiagTest() | |
| Method Summary | |
|---|---|
| protected  void | addOutputParam(java.lang.String pParamName,
               java.lang.Boolean pParamVal)Adds an output parameter to the context that is of Boolean type | 
| protected  void | addOutputParam(java.lang.String pParamName,
               java.util.Date pParamVal)Adds an output parameter to the context that is of Date type | 
| protected  void | addOutputParam(java.lang.String pParamName,
               java.lang.Double pParamVal)Adds an output parameter to the context that is of Double type | 
| protected  void | addOutputParam(java.lang.String pParamName,
               java.lang.Float pParamVal)Adds an output parameter to the context that is of Float type | 
| protected  void | addOutputParam(java.lang.String pParamName,
               java.lang.Integer pParamVal)Adds an output parameter to the context that is of Integer type | 
| protected  void | addOutputParam(java.lang.String pParamName,
               java.lang.Long pParamVal)Adds an output parameter to the context that is of Long type | 
| protected  void | addOutputParam(java.lang.String pParamName,
               java.lang.String pParamVal)Adds an output parameter to the context that is of String type | 
| protected abstract  void | cleanup()Performs any cleanup required. | 
| protected  oracle.jbo.ApplicationModule | createApplicationModule(java.lang.String appModName,
                        java.lang.String configName)creates an application module by the given appModule name and connects to the am by global datasource, "jdbc/ApplicationDBDS" | 
| protected  oracle.jbo.ApplicationModule | createApplicationModule(java.lang.String appModName,
                        java.lang.String configName,
                        java.lang.String ds)creates an application module by the given appModule name, configuration name and connect to the am by the given datasource string | 
| protected  java.lang.Boolean | getBooleanInputParam(java.lang.String pParamName)Gets the value for an input parameter that is of Boolean type. | 
| protected  java.lang.ClassLoader | getBundleClassLoader()return a ClassLoader for accessing resource bundles located in diagfwk.diagnostic.test.location. | 
| protected  DiagContext | getContext()Returns the current execution context. | 
| protected  java.util.Date | getDateInputParam(java.lang.String pParamName)Gets the value for an input parameter that is of Date type. | 
| protected  java.lang.Double | getDoubleInputParam(java.lang.String pParamName)Gets the value for an input parameter that is of Double type. | 
| protected  java.lang.Float | getFloatInputParam(java.lang.String pParamName)Gets the value for an input parameter that is of Float type. | 
| protected  java.lang.Integer | getIntegerInputParam(java.lang.String pParamName)Gets the value for an input parameter that is of Integer type. | 
| protected  java.lang.Long | getLongInputParam(java.lang.String pParamName)Gets the value for an input parameter that is of Long type. | 
| protected  java.lang.String | getStringInputParam(java.lang.String pParamName)Gets the value for an input parameter that is of String type | 
| protected abstract  void | init()Performs any initialization activities prior to executing the test logic. | 
| protected  void | releaseApplicationModule(oracle.jbo.ApplicationModule am)Releases an application module. | 
| protected abstract  void | runTest()Performs the execution logic for the test. | 
|  void | runTest(DiagContext pContext)Executes the logic for the diagnostic test. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AbstractDiagTest()
| Method Detail | 
|---|
public void runTest(DiagContext pContext)
 This API calls the following APIs in the given order:
 
init()
  runTest()
  cleanup()
 
runTest in interface DiagTestpContext - the current execution context.
protected oracle.jbo.ApplicationModule createApplicationModule(java.lang.String appModName,
                                                               java.lang.String configName)
appModName - the name of the application module to be createdconfigName - the name of the configuration
protected oracle.jbo.ApplicationModule createApplicationModule(java.lang.String appModName,
                                                               java.lang.String configName,
                                                               java.lang.String ds)
appModName - the name of the application module to be createdconfigName - the name of the configurationds - the name of the datasource to connectprotected void releaseApplicationModule(oracle.jbo.ApplicationModule am)
am - the application module to be releasedprotected DiagContext getContext()
protected java.lang.String getStringInputParam(java.lang.String pParamName)
protected java.lang.Integer getIntegerInputParam(java.lang.String pParamName)
protected java.lang.Boolean getBooleanInputParam(java.lang.String pParamName)
protected java.lang.Float getFloatInputParam(java.lang.String pParamName)
protected java.lang.Double getDoubleInputParam(java.lang.String pParamName)
protected java.lang.Long getLongInputParam(java.lang.String pParamName)
protected java.util.Date getDateInputParam(java.lang.String pParamName)
protected void addOutputParam(java.lang.String pParamName,
                              java.lang.String pParamVal)
pParamName - - name of the output parameterpParamVal - - value for the output parameter
protected void addOutputParam(java.lang.String pParamName,
                              java.lang.Integer pParamVal)
pParamName - - name of the output parameterpParamVal - - value for the output parameter
protected void addOutputParam(java.lang.String pParamName,
                              java.lang.Boolean pParamVal)
pParamName - - name of the output parameterpParamVal - - value for the output parameter
protected void addOutputParam(java.lang.String pParamName,
                              java.lang.Float pParamVal)
pParamName - - name of the output parameterpParamVal - - value for the output parameter
protected void addOutputParam(java.lang.String pParamName,
                              java.lang.Double pParamVal)
pParamName - - name of the output parameterpParamVal - - value for the output parameter
protected void addOutputParam(java.lang.String pParamName,
                              java.lang.Long pParamVal)
pParamName - - name of the output parameterpParamVal - - value for the output parameter
protected void addOutputParam(java.lang.String pParamName,
                              java.util.Date pParamVal)
pParamName - - name of the output parameterpParamVal - - value for the output parameterprotected java.lang.ClassLoader getBundleClassLoader()
protected abstract void init()
protected abstract void runTest()
DiagContext with the
 results collected. Finally, the method will also update the context
 with the result of the test.
protected abstract void cleanup()
runTest() method in a finally block to ensure that the
 cleanup activities occur even if runTest() failed.
| 
 | Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||