This topic explains how to create, run, and review the results of policy enforcement tests.

Sections include:

Creating Policy Enforcement Tests

Once the policy has been defined, policy enforcement tests can be created within SOAtest to reference the related rules or assertions. From the SOAtest test creation wizard, you can create the following types of policy enforcement tests:

  • WSDL: Used to enforce policies and standards on the content of your WSDL documents including all imported WSDLs.
  • Schema: Used to enforce policies and standards on schemas referenced within your WSDL file including all imported schemas.
  • SOAP: Used to enforce policies and standards on SOAP messages sent from your web service.

To reference a policy configuration when creating tests from the WSDL test creation wizard (described in detail in Creating Tests from a WSDL):

  1. Start completing the wizard as normal.
  2. If you would like to create WSDL/Schema policy enforcement tests, enable Create tests to validate and enforce policies on the WSDL on the first wizard page.
  3. When you reach the Policy Enforcement wizard page, enable Apply Policy Configuration. This will create WSDL and functional tests that will enforce the assertions defined in the specified policy configuration.
  4. Enter or browse to the desired policy configuration file.

    • If you do not have a custom policy configuration, you can use the default policy enforcement tests that reference the default rules sets included with SOAtest. The default policy configuration, default.soapolicy, is a collection of industry-wide best practices.
  5. Click Finish.

Running Policy Enforcement Tests

You can now execute the test by clicking Run Tests on the tool bar:



Reviewing Results/Reports

Any policy violations detected will be reported as tasks in the Quality Tasks view as described in the Reviewing Results.

Alternatively, you can run the test from the command line, then import results into the SOAtest GUI as described in the Importing Results into the UI.

Once the policy enforcement tests have been run, a report can be generated in HTML or XML format which will contain all the error messages for each policy enforcement violation. To view a report, right-click the desired error message and choose View Report > Detailed/Summary/Structure. The report will appear in a Web browser.

  • No labels