This document describes the process for generating the WSDL 2.0 Document Test Case Coverage Report.
The coverage report is generated by a series of four XSLT transformations as illustrated in the following diagram:
These transformations are invoked by the Ant build script build-test-coverage.xml.
The goal of the document test suite is to ensure that each important aspect of a WSDL 2.0 document occurs a few times. Examples of important aspects are elements, attributes, and enumerated attribute values. Each such aspect is described by an XPath expression that is listed in the input data file wsdl-xpaths.xml. The xpaths2coverage.xsl transform converts this list into an XSLT transform, wsdl-coverage.xsl, that counts the occurence of each XPath in an input WSDL 2.0 document.
The wsdl-coverage.xsl transform is applied to each WSDL 2.0 document in the test suite and generates a document coverage report for each document. The document coverage report lists of the count of each XPath in the input WSDL 2.0 document. These are stored in the reports directory and the file extension is *.xml instead of *.wsdl.
This step depends on step A.
The set of all WSDL 2.0 documents in the test suite is listed in the test-suite.xml data file. The test-suite-reports.xsl transform generates a list of all the corresponding document coverage reports in the output data file test-suite-reports.xml.
Finally the test-suite-coverage-summary.xsl transform aggregates all the individual document coverage reports that are listed in test-suite-reports.xml into the summary coverage report test-suite-coverage-summary.xml that sums the counts of each XPath for all the documents in the test suite. This is the default target of the build script.
The step depends and steps B and C.