Using the Sun Data Mashup Engine

Testing the Deployment of a Composite Application

This topic leads you through the steps to test the deployment of a composite application.

ProcedureTo Test the Composite Application Deployment

Before You Begin

Before you can test the deployment of a composite application, the NetBeans IDE must be running and you must have created a Data Mashup project, set the join conditions, created and deployed a composite application using the SOAP WSDL port, and be connected to the virtual database. For additional information about these tasks, see:

For this procedure to succeed, you must have used the soap WSDL binding and not the http WSDL binding when creating the WSDL port.

  1. In the NetBeans IDE Projects window, right-click Test under the composite application you want to test and then click New Test Case.

    The New Test Case Wizard appears.

  2. Enter a name for the test case and click Next.

    For this exercise, use the name SOAPTestCase1.

  3. In the New Test Case window, expand the directory structure for the composite application process files and then select the WSDL file.

  4. Click Next.

  5. In the New Test Case window, select execute for the operation you want to test and click Finish.

    For this exercise, select casaPort2 (Binding=”casaBinding2”).

  6. Click Finish.

    A file named Input.xml is created and appears in the XML Editor.

  7. In the XML Editor, replace the ?string? variables with a numeral.

    For example, 0.

  8. Under the Test node in the Projects pane, right–click the SOAP test case and choose Run.

    For this exercise, the SOAP test case is SOAPTestCase1.

  9. The first time you run the test, the status of the test is Failed and a message appears asking if you want to save the output. Click Yes.

    Subsequent test runs should pass.

  10. To verify the test output, double-click Output under the test case.

    The output text appears in XML format in the XML Editor.

Next Steps

See Configuring and Viewing the Data for steps that must be performed before you can view your data on a browser.