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

E22565-02

oracle.apps.fnd.appltest.diagfwk.api
Interface DiagContext

All Known Subinterfaces:
DiagContextExtn
All Known Implementing Classes:
DiagContextExtnImpl

public interface DiagContext

Models the execution context for a single text. A diagnostic test can use this context in order to get its inputs, to set its outputs and also to get a handle on the current report in order to log its results.


Method Summary
 void addOutputParam(java.lang.String pParamName, java.lang.Object pParamValue)
          Sets the value of the given output parameter for this test.
 java.sql.Connection getConnection()
          Returns a Connection to the Applications database
 java.lang.Object getInputParam(java.lang.String pParamName)
          Returns the value of the given input parameter for this test step.
 java.util.List<java.lang.String> getInputParamNames()
          Returns the list of names of input parameters that are available for the current test step.
 StepReport getStepReport()
          Returns the report for the current step
 TestReport getTestReport()
          Returns the overall report for the current test
 

Method Detail

getInputParam

java.lang.Object getInputParam(java.lang.String pParamName)
Returns the value of the given input parameter for this test step.

Parameters:
pParamName - the name of the input parameter
Returns:
the value of the given input parameter.

getInputParamNames

java.util.List<java.lang.String> getInputParamNames()
Returns the list of names of input parameters that are available for the current test step.

Returns:
the list of names of input parameters that are available for the current test step.

addOutputParam

void addOutputParam(java.lang.String pParamName,
                    java.lang.Object pParamValue)
Sets the value of the given output parameter for this test.

Parameters:
pParamName - the name of the output parameter
pParamValue - the value for the output parameter.

getTestReport

TestReport getTestReport()
Returns the overall report for the current test

Returns:
the report for the current test.

getStepReport

StepReport getStepReport()
Returns the report for the current step

Returns:
the report for the current step.

getConnection

java.sql.Connection getConnection()
Returns a Connection to the Applications database

Returns:
a Connection to the Applicatoins database.

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

E22565-02

Copyright © 2011 Oracle. All Rights Reserved.