-
Notifications
You must be signed in to change notification settings - Fork 0
/
scenario.xsd
41 lines (41 loc) · 1.79 KB
/
scenario.xsd
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified" targetNamespace="https://github.com/simkuenzi/webplay/scenario.xsd"
xmlns="https://github.com/simkuenzi/webplay/scenario.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="scenario" type="scenarioType"/>
<xs:complexType name="headerType">
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
<xs:complexType name="requestType">
<xs:sequence>
<xs:element type="headerType" name="header" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute type="xs:string" name="urlPath"/>
<xs:attribute type="xs:string" name="method"/>
</xs:complexType>
<xs:complexType name="assertionType">
<xs:choice>
<xs:element type="expectedTextType" name="expectedText"/>
<xs:element type="expectedAttrType" name="expectedAttr"/>
</xs:choice>
<xs:attribute type="xs:string" name="selector"/>
</xs:complexType>
<xs:complexType name="testType">
<xs:sequence>
<xs:element type="requestType" name="request"/>
<xs:element type="assertionType" name="assertion"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="scenarioType">
<xs:sequence>
<xs:element type="testType" name="test" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="expectedAttrType">
<xs:attribute type="xs:string" name="name"/>
<xs:attribute type="xs:string" name="value"/>
</xs:complexType>
<xs:complexType name="expectedTextType">
<xs:attribute type="xs:string" name="text"/>
</xs:complexType>
</xs:schema>