-
Notifications
You must be signed in to change notification settings - Fork 40
EARL results
rjmartell edited this page Oct 9, 2015
·
26 revisions
The listing shown below uses the RDF/XML syntax.
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:earl="http://www.w3.org/ns/earl#"
xmlns:http="http://www.w3.org/2011/http#"
xmlns:ptr="http://www.w3.org/2009/pointers#"
xmlns:dc="http://purl.org/dc/terms/">
<earl:Assertor rdf:about="http://tes.example.org/">
<dc:title xml:lang="en">TES</dc:title>
<dc:description xml:lang="en">A test execution service that runs conformance test suites.</dc:description>
</earl:Assertor>
<earl:TestSubject rdf:about="https://developers.google.com/kml/documentation/KML_Samples.kml">
<dc:title xml:lang="en">KML Samples</dc:title>
<dc:description xml:lang="en">Examples intended to support the KML tutorial.</dc:description>
</earl:TestSubject>
<earl:TestRequirement rdf:about="http://www.opengis.net/spec/KML/2.3/conf/level-1">
<dc:title xml:lang="en">KML 2.3 - Conformance Level 1</dc:title>
<dc:description xml:lang="en">Conformance Level 1 includes test cases that address
absolute requirements. A KML document must satisfy all assertions at this level to
achieve minimal conformance</dc:description>
<dc:isPartOf rdf:resource="http://docs.opengeospatial.org/ts/14-068r2/14-068r2.html"/>
</earl:TestRequirement>
<earl:TestRequirement rdf:about="http://www.opengis.net/spec/KML/2.3/conf/level-2">
<dc:title xml:lang="en">KML 2.3 - Conformance Level 2</dc:title>
<dc:description xml:lang="en">Includes all tests in Level 1, plus test cases covering
requirements that should be satisfied by a KML document. Non-conformance at this
level may hinder the utility, portability, or interoperability of the document.</dc:description>
<dc:hasPart rdf:resource="http://www.opengis.net/spec/KML/2.3/conf/level-1"/>
</earl:TestRequirement>
<earl:Assertion rdf:ID="assert-atc-101">
<earl:subject rdf:resource="http://www.example.org/placemark1.kml"/>
<earl:assertedBy rdf:resource="http://tes.example.org/"/>
<earl:mode rdf:resource="http://www.w3.org/ns/earl#automatic"/>
<earl:test>
<earl:TestCase rdf:about="http://www.opengis.net/spec/KML/2.3/conf/level-1/atc-101">
<dc:title xml:lang="en">Document element</dc:title>
<dc:isPartOf rdf:resource="http://www.opengis.net/spec/KML/2.3/conf/level-1"/>
</earl:TestCase>
</earl:test>
<earl:result>
<earl:TestResult rdf:ID="result-atc-101">
<earl:outcome rdf:resource="http://www.w3.org/ns/earl#fail"/>
<dc:date rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-09-29T11:50:00Z</dc:date>
<dc:title xml:lang="en">XML Schema validation errors found: 2</dc:title>
<dc:description xml:lang="en" rdf:parseType="Literal">
<ul xmlns="http://www.w3.org/1999/xhtml">
<li>Line 5 - cvc-datatype-valid.1.2.1: 'TRUE' is not a valid value for 'boolean'.</li>
<li>Line 5 - cvc-type.3.1.3: The value 'TRUE' of element 'kml:visibility' is not
valid.</li>
</ul>
</dc:description>
<earl:pointer>
<ptr:PointerCollection>
<ptr:xpointer>element(/1/1/2)</ptr:xpointer>
</ptr:PointerCollection>
</earl:pointer>
<earl:info rdf:parseType="Literal" xml:lang="en">
<test-method status="FAIL" signature="validate()" name="validate" duration-ms="47"
started-at="2015-09-29T11:50:00Z" finished-at="2015-09-29T11:50:00Z">
<exception class="java.lang.AssertionError">
<message>
<![CDATA[Total validation errors found: 2]]>
</message>
</exception>
</test-method>
</earl:info>
</earl:TestResult>
</earl:result>
</earl:Assertion>
</rdf:RDF>
- conformance classes/levels are denoted by
earl:TestRequirement
statements. - the earl:Software class can describe either an assertor (e.g. TE v4.3), or a test subject.
- each
earl:TestCase
is linked to (dc:isPartOf) the TestRequirement to which it belongs. Better to link via dc:hasPart. For example when defining level 2, you can relate to level 1 via dc:hasPart (note: relatively few conformance classes constitute a 'level' that includes some other class--most are independent). - include request/response message content for failing tests
From ISO 19105, A.3:
"A conformance level is a special kind of conformance class in which requirements of a higher level contain all the requirements of the lower levels."
For example, Level 2 contains Level 1 (i.e. L3 {dc:hasPart} L2 {dc:hasPart} L1
)
- Evaluation and Report Language (EARL) 1.0 Schema (W3C Working Draft)
- HTTP Vocabulary in RDF 1.0 (W3C Working Draft)
- Pointer Methods in RDF 1.0 (W3C Working Draft)
- Representing Content in RDF 1.0 (W3C Working Draft)
- DCMI Metadata Terms
- Conversion fron EARL to HTML (Warning: This is based on a very old EARL 0.95 draft from 2001)