To automatically create a test suite from an XML schema, complete the following:

  1. Choose the SOA> XML Schema option in one of the available test creation wizards. For details on accessing the wizards, see:
  2. In the XML Schema wizard page, specify the location of the schema from which you want to generate tests.
  3. Select the type of test you’d like to create:
  4. For creating test clients that use HTTP, enter the URL of the web service endpoint in the Endpoint field, then click the Next button.
  5. In the Elements page, select one or more elements from which to generate your tests, then click the Next button. SOAtest only recognizes element definitions defined at the top level ( the child of the root schema element).

  6. Specify whether you want to reference an existing environment or create a new one.
  7. Click Next. The Policy Enforcement dialog opens.

  8. Select the Apply Policy Configuration check box. This will create WSDL and functional tests that will enforce the assertions defined in the specified policy configuration.
  9. Click the Next button to advance to the Layout dialog.
  10. (Optional) Select the Organize as Positive and Negative Unit Tests checkbox to create both positive and negative tests for each operation since it is important to test situations where we send expected data as well as unexpected data to the server. The default value is configured to Sort Tests Alphabetically.
  11. (Optional) Select the Asynchronous radio button and choose Parlay, Parlay X, SCP, or WS-Addressing to create asynchronous test suites. For more information on asynchronous testing, see Creating Asynchronous Tests.

Click the Finish button. SOAtest will generate a new test suite is created based on the XML Schema and functional test type you selected.