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

E22565-02

oracle.apps.fnd.appltest.diagfwk.engine
Class UTestDiagCmdExtractReport

java.lang.Object
  extended by oracle.apps.fnd.appllcm.sdk.common.TestBaseLCM
      extended by oracle.apps.fnd.appltest.diagfwk.TestBaseDiagfwk
          extended by oracle.apps.fnd.appltest.diagfwk.engine.UTestDiagCmdExtractReport

public class UTestDiagCmdExtractReport
extends TestBaseDiagfwk

Test suite for the extract report command

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/test/oracle/apps/fnd/appltest/diagfwk/engine/UTestDiagCmdExtractReport.java /main/10 2009/07/09 11:41:29 ppradhan Exp $
Author:
ppradhan

Field Summary
 
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.TestBaseDiagfwk
SYSPROP_ORACLE_ADR_BASE, SYSPROP_ORACLE_ADR_HOME, SYSPROP_ORACLE_ADR_INSTANCE_ID, SYSPROP_ORACLE_ADR_PRODUCT_ID, SYSPROP_TEST_DIR
 
Fields inherited from class oracle.apps.fnd.appllcm.sdk.common.TestBaseLCM
mWorkingDir
 
Constructor Summary
UTestDiagCmdExtractReport()
           
 
Method Summary
static void main(java.lang.String[] args)
          For testing standalone (outside of the build)
protected  TestRun runModuleKey(java.lang.String pModuleKey, int pExpectedExecsTopLevel, int pExpectedExecsNested)
           
protected  TestRun runTest(java.lang.String pTestName)
           
protected  TestRun runTest(java.lang.String pTestName, int pExpectedTopLevelExecs, int pExpectedNestedExecs)
           
 void setUp()
           
static void setUpClass()
           
static junit.framework.Test suite()
          For compatibility with old (pre junit 4.0) junit runners
 void tearDown()
           
static void tearDownClass()
           
 void testInvalidDestDirFile()
           
 void testInvalidDestDirParentPermission()
           
 void testInvalidDestDirPermission()
           
 void testInvalidExactOneReqParamRunIdExecId()
           
 void testInvalidExactOneReqParamRunIdRunName()
           
 void testInvalidExactOneReqParamRunNameExecId()
           
 void testInvalidExactOneReqParamRunNameExecIdRunId()
           
 void testInvalidExecId()
           
 void testInvalidExecIdNoReport()
           
 void testInvalidExtractReportNoRunIdRunNameExecIdParamsSpecified()
           
 void testInvalidFormat()
           
 void testInvalidNoViewReportPrivExecIdHTML()
           
 void testInvalidRunId()
           
 void testInvalidRunIdNoReport()
           
 void testInvalidRunName()
           
 void testInvalidRunNameNoReport()
           
 void testValidNoViewReportPrivRunIdHTML()
           
 void testValidRunMultiRunIdHTML()
           
 void testValidRunMultiRunIdHTMLNoChildren()
           
 void testValidRunMultiRunIdXML()
           
 void testValidRunNestedExecIdHTML()
           
 void testValidRunNestedExecIdXML()
           
 void testValidRunNestedExecWithNoReport()
           
 void testValidRunNestedExecWithNoReportXML()
           
 void testValidRunSingleExecExecIdHTML()
           
 void testValidRunSingleExecExecIdXML()
           
 void testValidRunSingleExecRunIdHTML()
           
 void testValidRunSingleExecRunIdHTMLNoNLSBundleSpecified()
           
 void testValidRunSingleExecRunIdXML()
           
 void testValidRunSingleExecRunIdXMLConsecutive()
           
 void testValidRunSingleExecRunIdXMLConsecutive3Times()
           
protected static void verifyExtractedReport(TestExec pExec, DiagCmdExtractReport.ReportWrapper pCmdResult, java.lang.String pFormat)
           
protected static void verifyExtractedReport(TestRun pRun, DiagCmdExtractReport.ReportWrapper pCmdResult, java.lang.String pFormat)
           
protected static void verifyExtractedReport(TestRun pRun, DiagCmdExtractReport.ReportWrapper pCmdResult, java.lang.String pFormat, boolean pCheckChildren)
           
protected static void verifyExtractedReportsExist(java.lang.String pMsg, TestExec pExec, java.lang.String pFormat)
          Verifies that the report for the given execution along with reports for all the nested executions exists.
protected static void verifyExtractedReportsExist(java.lang.String pMsg, TestExec pExec, java.lang.String pFormat, java.lang.String pSubDir)
          Verifies that the report for the given execution along with reports for all the nested executions exists.
protected static void verifyExtractedReportsExist(java.lang.String pMsg, TestRun pRun, java.lang.String pFormat)
          Verifies that the run report for the given run along with reports for all the nested executions exist
protected static void verifyExtractedReportsExist(java.lang.String pMsg, TestRun pRun, java.lang.String pFormat, boolean pCheckChildren)
          Verifies that the run report for the given run along with reports for all the nested executions exist
 
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.TestBaseDiagfwk
addSummaryMsg, assertCount, assertCountActiveInputParams, assertCountActiveOutputParams, assertCountActivePrereqs, assertCountActiveTagValues, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsListSize, assertFileContains_s, assertFileContainsUnderWorkDir, assertInputSetExists, assertListContents, assertNestedExecsForRun, assertNotTagValueAssocInTest, assertRunExists, assertRunNotExists, assertRunNotExistsById, assertSingeTestGotCreated, assertTagExists, assertTagIdNotExists, assertTagValueAssocExists, assertTagValueExists, assertTagValueIdNotExists, assertTestDefExists, assertTestDefExists, assertTestDefNotExists, assertTestExecExists, assertTestExecs, assertTestMetadataDoesNotReferenceTagValueId, assertTestParamExists, assertTestParamExists, assertTestsGotCreated, checkTagExists, cleanPSRConnectionPool, clearAdrSystemProperties, createIncident, createIncident, createInputSet, createPSRConnectionPool, delete, deleteDir, deleteFileUnderWorkDir_s, deleteFNDMessage, deleteInputSet, deleteModuleId, deleteModuleIdByModKeys, deleteProfileValue, deleteProfileValueAtSiteLevel, deleteRun, deleteTag, deleteTagValue, deleteTaxModules, deleteTestDef, deleteTestExec, doLoginAsSpecificUser, fetchTestRun, getConnection, getDefaultADRBase, getFileContents, getSysGuid, getTestPassword, getTestPasswordAsArg, getTestUserName, getTestUserNameAsArg, getWorkDir, grantAllTagPrivs, grantAllTagPrivsByName, grantAllTestPrivs, grantAllTestPrivsByName, grantTestUpdateAllowed, insertFNDMessage, insertModuleDelHeirarchy, insertModuleId, insertModuleId, insertModuleId, insertModuleId, insertModuleId, insertModuleId, insertTag, insertTag, insertTagValue, insertTagValue, insertTagValue, insertTagValueHeirarchy, insertTagValuePrereq, insertTagValuePrereq, insertTagValueWithParent, loadTaxModuleHeirarchy, loadTaxModules, loadTests, loadTests, loginAsAdmin, loginAsAdvancedUser, loginAsAnonymous, loginAsDefault, loginAsRegularUser, loginAsViewer, lookupModuleIdForKey, makeDescriptiveHeader, makeErrorInfo, makeFixInfo, makeHeader, makeMessage, makeMessageLinkExternal, makeMessageLinkInternal, makeMsgList, makeNameValue, makeSection, makeStepReportExtn, makeSummaryInfo, makeTable, makeTestReportExtn, removeCycleSrcIdPrereqId, returnConnection, runTest, runTests, runTests, saveProfileValue, saveProfileValueAtSiteLevel, setAdrSystemProperties, setTestPassword, setTestUserName, setUpBaseDiag, setUpBaseDiagClass, tearDownBaseDiag, tearDownBaseDiagClass, toList, verifyExtractedReportsExist, verifyExtractedReportsExist, verifyExtractedReportsExist, verifyFileExists, verifyTestRun, writeFile, writeFile
 
Methods inherited from class oracle.apps.fnd.appllcm.sdk.common.TestBaseLCM
assertFileContains, deleteFilesUnderDir, deleteFilesUnderDir, deleteFileUnderDir, deleteFileUnderWorkDir, getWorkingDir, setUpBase, setWorkingDir, tearDownBase, writeFileUnderDir, writeFileUnderWorkDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTestDiagCmdExtractReport

public UTestDiagCmdExtractReport()
Method Detail

setUpClass

public static void setUpClass()

setUp

public void setUp()

testInvalidNoViewReportPrivExecIdHTML

public void testInvalidNoViewReportPrivExecIdHTML()

testInvalidExtractReportNoRunIdRunNameExecIdParamsSpecified

public void testInvalidExtractReportNoRunIdRunNameExecIdParamsSpecified()

testInvalidRunId

public void testInvalidRunId()

testInvalidRunIdNoReport

public void testInvalidRunIdNoReport()

testInvalidRunName

public void testInvalidRunName()

testInvalidRunNameNoReport

public void testInvalidRunNameNoReport()

testInvalidExecId

public void testInvalidExecId()

testInvalidExecIdNoReport

public void testInvalidExecIdNoReport()

testInvalidExactOneReqParamRunIdRunName

public void testInvalidExactOneReqParamRunIdRunName()

testInvalidExactOneReqParamRunIdExecId

public void testInvalidExactOneReqParamRunIdExecId()

testInvalidExactOneReqParamRunNameExecId

public void testInvalidExactOneReqParamRunNameExecId()

testInvalidExactOneReqParamRunNameExecIdRunId

public void testInvalidExactOneReqParamRunNameExecIdRunId()

testInvalidFormat

public void testInvalidFormat()

testInvalidDestDirFile

public void testInvalidDestDirFile()

testInvalidDestDirParentPermission

public void testInvalidDestDirParentPermission()

testInvalidDestDirPermission

public void testInvalidDestDirPermission()

testValidNoViewReportPrivRunIdHTML

public void testValidNoViewReportPrivRunIdHTML()

testValidRunSingleExecRunIdXML

public void testValidRunSingleExecRunIdXML()

testValidRunSingleExecExecIdXML

public void testValidRunSingleExecExecIdXML()

testValidRunSingleExecRunIdHTML

public void testValidRunSingleExecRunIdHTML()

testValidRunSingleExecRunIdHTMLNoNLSBundleSpecified

public void testValidRunSingleExecRunIdHTMLNoNLSBundleSpecified()

testValidRunSingleExecExecIdHTML

public void testValidRunSingleExecExecIdHTML()

testValidRunMultiRunIdXML

public void testValidRunMultiRunIdXML()

testValidRunMultiRunIdHTML

public void testValidRunMultiRunIdHTML()

testValidRunMultiRunIdHTMLNoChildren

public void testValidRunMultiRunIdHTMLNoChildren()

testValidRunNestedExecIdXML

public void testValidRunNestedExecIdXML()

testValidRunNestedExecIdHTML

public void testValidRunNestedExecIdHTML()

testValidRunSingleExecRunIdXMLConsecutive

public void testValidRunSingleExecRunIdXMLConsecutive()

testValidRunSingleExecRunIdXMLConsecutive3Times

public void testValidRunSingleExecRunIdXMLConsecutive3Times()

testValidRunNestedExecWithNoReport

public void testValidRunNestedExecWithNoReport()

testValidRunNestedExecWithNoReportXML

public void testValidRunNestedExecWithNoReportXML()

verifyExtractedReport

protected static void verifyExtractedReport(TestRun pRun,
                                            DiagCmdExtractReport.ReportWrapper pCmdResult,
                                            java.lang.String pFormat)

verifyExtractedReport

protected static void verifyExtractedReport(TestRun pRun,
                                            DiagCmdExtractReport.ReportWrapper pCmdResult,
                                            java.lang.String pFormat,
                                            boolean pCheckChildren)

verifyExtractedReport

protected static void verifyExtractedReport(TestExec pExec,
                                            DiagCmdExtractReport.ReportWrapper pCmdResult,
                                            java.lang.String pFormat)

verifyExtractedReportsExist

protected static void verifyExtractedReportsExist(java.lang.String pMsg,
                                                  TestRun pRun,
                                                  java.lang.String pFormat)
Verifies that the run report for the given run along with reports for all the nested executions exist

Parameters:
pRun - run for which to verify reports are extracted
pFormat - the expected format for the report.

verifyExtractedReportsExist

protected static void verifyExtractedReportsExist(java.lang.String pMsg,
                                                  TestRun pRun,
                                                  java.lang.String pFormat,
                                                  boolean pCheckChildren)
Verifies that the run report for the given run along with reports for all the nested executions exist

Parameters:
pRun - run for which to verify reports are extracted
pFormat - the expected format for the report.

verifyExtractedReportsExist

protected static void verifyExtractedReportsExist(java.lang.String pMsg,
                                                  TestExec pExec,
                                                  java.lang.String pFormat)
Verifies that the report for the given execution along with reports for all the nested executions exists.

Parameters:
pExec - execution for which to verify reports are extracted
pFormat - the expected format for the report.

verifyExtractedReportsExist

protected static void verifyExtractedReportsExist(java.lang.String pMsg,
                                                  TestExec pExec,
                                                  java.lang.String pFormat,
                                                  java.lang.String pSubDir)
Verifies that the report for the given execution along with reports for all the nested executions exists.

Parameters:
pExec - execution for which to verify reports are extracted
pFormat - the expected format for the report.
pSubDir - if not null, uses this as the expected subdirectory. If null, uses the execution's run id as the expected subdirectory for this execution. Otherwise expects the sub directory to be the execution id.

runTest

protected TestRun runTest(java.lang.String pTestName)

runTest

protected TestRun runTest(java.lang.String pTestName,
                          int pExpectedTopLevelExecs,
                          int pExpectedNestedExecs)

runModuleKey

protected TestRun runModuleKey(java.lang.String pModuleKey,
                               int pExpectedExecsTopLevel,
                               int pExpectedExecsNested)

tearDown

public void tearDown()

tearDownClass

public static void tearDownClass()

suite

public static junit.framework.Test suite()
For compatibility with old (pre junit 4.0) junit runners


main

public static void main(java.lang.String[] args)
For testing standalone (outside of the build)


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

E22565-02

Copyright © 2011 Oracle. All Rights Reserved.