1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
/* Copyright 2004 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">
<xs:complexType name="environmentType">
<xs:sequence>
<xs:element name="env-attribute" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="hosttype" type="xs:string"/>
<xs:attribute name="primary" default="TRUE">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="TRUE"/>
<xs:enumeration value="FALSE"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:element name="test-result-container">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="test-result" type="test-result-type"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="test-log">
<xs:complexType>
<xs:sequence>
<xs:element name="environment" type="environmentType" minOccurs="0"/>
<xs:element name="header-info">
<xs:complexType>
<xs:attribute name="checksum" type="xs:string"/>
<xs:attribute name="resultcount" type="xs:string"/>
<xs:attribute name="execaccount" type="xs:string" use="required"/>
<xs:attribute name="execdate" type="xs:string" use="required"/>
<xs:attribute name="harnesstype" type="xs:string" use="required"/>
<xs:attribute name="testruntype" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="harness-info" minOccurs="0">
<xs:complexType>
<xs:attribute name="processconfig" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="test-result" type="test-result-type" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="runid" type="xs:string" use="required"/>
<xs:attribute name="testtype" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="AUTOMATED"/>
<xs:enumeration value="MANUAL"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="release" type="xs:string" use="required"/>
<xs:attribute name="branch" type="xs:string"/>
<xs:attribute name="hostname" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:complexType name="test-result-type">
<xs:sequence>
<xs:element name="test-case">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="testcasename" type="xs:string" use="required"/>
<xs:attribute name="testunit" type="xs:string"/>
<xs:attribute name="testpath" type="xs:string"/>
<xs:attribute name="testowner" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="environment" type="environmentType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="test-parameters" type="xs:string" minOccurs="0"/>
<xs:element name="execution-output" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="output-details" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="errorname" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="exectime" type="xs:string" use="required"/>
<xs:attribute name="duration" type="xs:string"/>
<xs:attribute name="result" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="TIMEOUT"/>
<xs:enumeration value="ABORT"/>
<xs:enumeration value="FRAMEABORT"/>
<xs:enumeration value="SKIP"/>
<xs:enumeration value="FAILURE"/>
<xs:enumeration value="SUCCESS"/>
<xs:enumeration value="TEST_NOT_FOUND"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="isdone" default="TRUE">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="TRUE"/>
<xs:enumeration value="FALSE"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="logicalname" type="xs:string"/>
</xs:complexType>
</xs:schema>
|