Files
ofbiz-framework/framework/testtools/dtd/test-suite.xsd
T
Jacopo Cappellato 91f39d9712 License change from MIT to ASL2.0 for the files of the testtools component.
Thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423840 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 08:59:10 +00:00

89 lines
3.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2006-2006 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<!--
==================================================
========== The Simple Methods Section ==========
==================================================
(see further down for the Simple Map Processor Section)
-->
<!-- Reusable artifacts (abstract elements, groups, attributeGroups -->
<xs:element name="TestCaseTypes" abstract="true"/>
<xs:group name="AllTestCaseTypes">
<xs:choice>
<xs:element ref="TestCaseTypes"/>
</xs:choice>
</xs:group>
<!-- ELEMENTS start here -->
<xs:element name="test-suite">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="test-case"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.test-suite"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.test-suite">
<xs:attribute type="xs:string" name="suite-name" use="required"/>
<xs:attribute type="xs:string" name="delegator-name" default="test"/>
<xs:attribute type="xs:string" name="dispatcher-name" default="test-dispatcher"/>
</xs:attributeGroup>
<xs:element name="test-case">
<xs:annotation><xs:documentation></xs:documentation></xs:annotation>
<xs:complexType>
<xs:group minOccurs="1" maxOccurs="1" ref="AllTestCaseTypes"/>
<xs:attributeGroup ref="attlist.test-case"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.test-case">
<xs:attribute type="xs:string" name="case-name" use="required"/>
</xs:attributeGroup>
<xs:element name="junit-test-suite" substitutionGroup="TestCaseTypes">
<xs:annotation><xs:documentation>Used for JUnit test suites written as a Java class.</xs:documentation></xs:annotation>
<xs:complexType>
<xs:attributeGroup ref="attlist.junit-test-suite"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.junit-test-suite">
<xs:attribute type="xs:string" name="class-name" use="required">
<xs:annotation><xs:documentation>Should extend the junit.framework.TestCase class.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:element name="service-test" substitutionGroup="TestCaseTypes">
<xs:complexType>
<xs:attributeGroup ref="attlist.service-test"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.service-test">
<xs:attribute type="xs:string" name="service-name" use="required"/>
</xs:attributeGroup>
<xs:element name="jython-test" substitutionGroup="TestCaseTypes">
<xs:complexType>
<xs:attributeGroup ref="attlist.jython-test"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.jython-test">
<xs:attribute type="xs:string" name="script-location" use="required"/>
</xs:attributeGroup>
</xs:schema>