Recovering from SOA Composite Application Faults in the Application Home Page

Managing SOA Composite Applications 8-41 ■ Section 1.2.4, Introduction to Service Components and Service Component Instances ■ Section 1.4.3.1, Introduction to Fault Recovery ■ Section 8.5.1, Examples of Fault Recovery for BPEL Processes ■ Section 8.5.3, Examples of Fault Recovery for Oracle Mediator

8.7 Automating the Testing of SOA Composite Applications

You can create, deploy, and run test cases that automate the testing of SOA composite applications. Test cases enable you to simulate the interaction between a SOA composite application and its web service partners before deployment in a production environment. This helps to ensure that a process interacts with web service partners as expected by the time it is ready for deployment to a production environment. You create test cases in Oracle JDeveloper and include them in a SOA composite application that is then deployed and administered from Oracle Enterprise Manager Fusion Middleware Control. To automate the testing of SOA composite applications: 1. Access this page through one of the following options: The test cases that are displayed were designed in Oracle JDeveloper and included in a deployed SOA composite application.

2. Select the entire test suite or individual tests of a suite to run, and click Execute.

Note: Before testing SOA composite applications from Oracle Enterprise Manager Fusion Middleware Control, see Oracle Fusion Middleware Developers Guide for Oracle SOA Suite for instructions on creating test cases. From the SOA Infrastructure Menu... From the SOA Folder in the Navigator... From the SOA Composite Menu... 1. Select Home. 2. Select Deployed Composites . 3. In the Composite section, select a specific SOA composite application. 4. Click the Unit Tests tab. 1. Under soa-infra, select a specific SOA composite application beneath the partition. 2. Click the Unit Tests tab. 1. Select Unit Test. 8-42 Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite You are prompted to create a test.

3. Enter the following values, and click OK.

The Test Runs page is automatically displayed for tracking the running tests. The Test Runs page enables you to track running test cases and view test results. Test suites consist of a logical collection of one or more test cases. Each test case contains a set of commands to perform as the test instance is executed. The execution of a test suite is known as a test run. Field Description Test Run Name Enter a name for the test instance. When testing is complete, report details are captured under this name. Timeout Enter a value in seconds in which to complete this test. If the test does not complete within this time limit, then testing is terminated. Number of Concurrent Test Instances Enter the number of test instances to create. Managing SOA Composite Applications 8-43

4. In the Test Run Name column, click a specific test run to display details in the

Results of Test Run section. If you want to create more test runs, you can switch back to the Test Cases page at any time. The Results of Test Run section displays details about the executed test run, such as a test summary and the success rate. Click the Help icon for additional details.

5. View assertion details at the bottom of the page. Assertions enable you to verify

variable data or process flow. 6. Click a composite instance number to view specific test details. The composite instances created by executing unit test runs are displayed with a yellow square next to the instance ID in the Instances page of a SOA composite application and in the Recent Instances tables of the SOA Infrastructure and SOA composite application. This yellow box distinguishes these instances from test instances created on the Test Web Service page or automatically created by external consumers of the application. For more information, see the following documentation: 8-44 Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite ■ Section 1.4.3.4, Introduction to SOA Composite Application Automated Testing ■ Oracle Fusion Middleware Developers Guide for Oracle SOA Suite for instructions on creating test cases in Oracle JDeveloper

8.8 Managing SOA Composite Application Policies

You can attach or detach security policies to and from currently deployed SOA composite applications. Policies apply security to the delivery of messages. To manage SOA composite application policies: 1. Access this page through one of the following options: The Policies page enables you to attach and detach policies to and from BPEL process service components. The policies table displays the attached policy name, the component to which the policy is attached, the policy reference status enabled or disabled that you can toggle, the category Management, Reliable Messaging, MTOM Attachment, Security, or WS-Addressing, the violations, and the authentication, authorization, confidentiality, and integrity failures since the SOA Infrastructure was last restarted. Note: Before attaching policies, see Oracle Fusion Middleware Security and Administrators Guide for Web Services for definitions of available policies and details about which ones to use in your environment. From the SOA Infrastructure Menu... From the SOA Folder in the Navigator... From the SOA Composite Menu... 1. Select Home. 2. Select Deployed Composites . 3. In the Composite section, select a specific SOA composite application. 4. Click the Policies tab. 1. Under soa-infra, select a specific SOA composite application beneath the partition. 2. Click the Policies tab. 1. Select Policies.