|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<!-- |
| 3 | + Source: https://svn.jenkins-ci.org/trunk/hudson/dtkit/dtkit-format/dtkit-junit-model/src/main/resources/com/thalesgroup/dtkit/junit/model/xsd/junit-4.xsd |
| 4 | + |
| 5 | + This file available under the terms of the MIT License as follows: |
| 6 | + |
| 7 | + ******************************************************************************* |
| 8 | + * Copyright (c) 2010 Thales Corporate Services SAS * |
| 9 | + * * |
| 10 | + * Permission is hereby granted, free of charge, to any person obtaining a copy * |
| 11 | + * of this software and associated documentation files (the "Software"), to deal* |
| 12 | + * in the Software without restriction, including without limitation the rights * |
| 13 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * |
| 14 | + * copies of the Software, and to permit persons to whom the Software is * |
| 15 | + * furnished to do so, subject to the following conditions: * |
| 16 | + * * |
| 17 | + * The above copyright notice and this permission notice shall be included in * |
| 18 | + * all copies or substantial portions of the Software. * |
| 19 | + * * |
| 20 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * |
| 21 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * |
| 22 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * |
| 23 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * |
| 24 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,* |
| 25 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * |
| 26 | + * THE SOFTWARE. * |
| 27 | + ******************************************************************************** |
| 28 | + --> |
| 29 | +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 30 | + |
| 31 | + <xs:element name="failure"> |
| 32 | + <xs:complexType mixed="true"> |
| 33 | + <xs:attribute name="type" type="xs:string" use="optional"/> |
| 34 | + <xs:attribute name="message" type="xs:string" use="optional"/> |
| 35 | + </xs:complexType> |
| 36 | + </xs:element> |
| 37 | + |
| 38 | + <xs:element name="error"> |
| 39 | + <xs:complexType mixed="true"> |
| 40 | + <xs:attribute name="type" type="xs:string" use="optional"/> |
| 41 | + <xs:attribute name="message" type="xs:string" use="optional"/> |
| 42 | + </xs:complexType> |
| 43 | + </xs:element> |
| 44 | + |
| 45 | + <xs:element name="properties"> |
| 46 | + <xs:complexType> |
| 47 | + <xs:sequence> |
| 48 | + <xs:element ref="property" maxOccurs="unbounded"/> |
| 49 | + </xs:sequence> |
| 50 | + </xs:complexType> |
| 51 | + </xs:element> |
| 52 | + |
| 53 | + <xs:element name="property"> |
| 54 | + <xs:complexType> |
| 55 | + <xs:attribute name="name" type="xs:string" use="required"/> |
| 56 | + <xs:attribute name="value" type="xs:string" use="required"/> |
| 57 | + </xs:complexType> |
| 58 | + </xs:element> |
| 59 | + |
| 60 | + <xs:element name="skipped" type="xs:string"/> |
| 61 | + <xs:element name="system-err" type="xs:string"/> |
| 62 | + <xs:element name="system-out" type="xs:string"/> |
| 63 | + |
| 64 | + <xs:element name="testcase"> |
| 65 | + <xs:complexType> |
| 66 | + <xs:sequence> |
| 67 | + <xs:element ref="skipped" minOccurs="0" maxOccurs="1"/> |
| 68 | + <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/> |
| 69 | + <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/> |
| 70 | + <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/> |
| 71 | + <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/> |
| 72 | + </xs:sequence> |
| 73 | + <xs:attribute name="name" type="xs:string" use="required"/> |
| 74 | + <xs:attribute name="assertions" type="xs:string" use="optional"/> |
| 75 | + <xs:attribute name="time" type="xs:string" use="optional"/> |
| 76 | + <xs:attribute name="classname" type="xs:string" use="optional"/> |
| 77 | + <xs:attribute name="status" type="xs:string" use="optional"/> |
| 78 | + </xs:complexType> |
| 79 | + </xs:element> |
| 80 | + |
| 81 | + <xs:element name="testsuite"> |
| 82 | + <xs:complexType> |
| 83 | + <xs:sequence> |
| 84 | + <xs:element ref="properties" minOccurs="0" maxOccurs="1"/> |
| 85 | + <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/> |
| 86 | + <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/> |
| 87 | + <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/> |
| 88 | + </xs:sequence> |
| 89 | + <xs:attribute name="name" type="xs:string" use="required"/> |
| 90 | + <xs:attribute name="tests" type="xs:string" use="required"/> |
| 91 | + <xs:attribute name="failures" type="xs:string" use="optional"/> |
| 92 | + <xs:attribute name="errors" type="xs:string" use="optional"/> |
| 93 | + <xs:attribute name="time" type="xs:string" use="optional"/> |
| 94 | + <xs:attribute name="disabled" type="xs:string" use="optional"/> |
| 95 | + <xs:attribute name="skipped" type="xs:string" use="optional"/> |
| 96 | + <xs:attribute name="timestamp" type="xs:string" use="optional"/> |
| 97 | + <xs:attribute name="hostname" type="xs:string" use="optional"/> |
| 98 | + <xs:attribute name="id" type="xs:string" use="optional"/> |
| 99 | + <xs:attribute name="package" type="xs:string" use="optional"/> |
| 100 | + </xs:complexType> |
| 101 | + </xs:element> |
| 102 | + |
| 103 | + <xs:element name="testsuites"> |
| 104 | + <xs:complexType> |
| 105 | + <xs:sequence> |
| 106 | + <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/> |
| 107 | + </xs:sequence> |
| 108 | + <xs:attribute name="name" type="xs:string" use="optional"/> |
| 109 | + <xs:attribute name="time" type="xs:string" use="optional"/> |
| 110 | + <xs:attribute name="tests" type="xs:string" use="optional"/> |
| 111 | + <xs:attribute name="failures" type="xs:string" use="optional"/> |
| 112 | + <xs:attribute name="disabled" type="xs:string" use="optional"/> |
| 113 | + <xs:attribute name="errors" type="xs:string" use="optional"/> |
| 114 | + </xs:complexType> |
| 115 | + </xs:element> |
| 116 | + |
| 117 | + |
| 118 | +</xs:schema> |
0 commit comments