Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EARL report does not contain the Test information. #172

Closed
keshavnangare opened this issue Jul 12, 2016 · 5 comments
Closed

EARL report does not contain the Test information. #172

keshavnangare opened this issue Jul 12, 2016 · 5 comments
Assignees
Milestone

Comments

@keshavnangare
Copy link
Contributor

keshavnangare commented Jul 12, 2016

Following Test information is require in HTML report:

  1. Test Name:
  2. Time:
  3. Test Artifact:
    4.Over all Result:

We have to add this information in the EARL report.

@rjmartell
Copy link
Contributor

The latest release (4.7.1) now adds a cite:TestRun resource to the EARL results that provides summary information about the test run. For example:

<cite:TestRun>
    <dct:extent rdf:datatype="http://www.w3.org/2001/XMLSchema#duration">PT2M26.453S</dct:extent>
    <cite:testsSkipped rdf:datatype="http://www.w3.org/2001/XMLSchema#int">7</cite:testsSkipped>
    <cite:testsFailed rdf:datatype="http://www.w3.org/2001/XMLSchema#int">19</cite:testsFailed>
    <cite:testsPassed rdf:datatype="http://www.w3.org/2001/XMLSchema#int">171</cite:testsPassed>
    <dct:identifier>f9409eb2-457e-4e39-9624-05be82aa3f63</dct:identifier>
    <dct:created>2016-07-12T22:38:43.378Z</dct:created>
    <dct:title>wfs20-1.23-SNAPSHOT</dct:title>
  </cite:TestRun>

@keshavnangare
Copy link
Contributor Author

One element is missing in above information i.e. "Test Artifact:".

The "Test Artifact:" is the input URL to Test.

E.G. Test Artifact:**INPUT: http://localhost:8080/teamengine/test-input.xml

@bermud
Copy link
Contributor

bermud commented Jul 15, 2016

@keshav-nangare, thank you for looking into it. Please @rjmartell make changes to include the artifact that was tested.

@rjmartell
Copy link
Contributor

rjmartell commented Oct 5, 2016

The test run arguments could be added in a container such as rdf:Bag (order doesn't matter). Another extension property (cite:inputs) would be needed, since EARL doesn't offer anything like this,

The most economical way to represent an input argument is as a blank node:

<rdf:Description>
  <dct:title>wfs</dct:title>
  <dct:description>http://ogctestbed12.lat-lon.de/deegree/services/wfs?service=WFS&request=GetCapabilities</dct:description>
</rdf:Description

Alternatively, define a cite:TestInput resource if an existing vocabulary cannot be reused.

@rjmartell
Copy link
Contributor

We end up with this in the EARL report:

<cite:TestRun>
  <cite:inputs>
    <rdf:Bag>
      <rdf:li rdf:parseType="Resource">
        <dct:description>http://ogctestbed12.lat-lon.de/deegree/services/wfs?service=WFS&amp;request=GetCapabilities</dct:description>
        <dct:title>wfs</dct:title>
      </rdf:li>
      <rdf:li rdf:parseType="Resource">
        <dct:description>http://ogctestbed12.lat-lon.de/deegree/services/wfs?service=WFS&amp;version=2.0.0&amp;request=DescribeFeatureType</dct:description>
        <dct:title>xsd</dct:title>
      </rdf:li>
    </rdf:Bag>
  </cite:inputs>
  ...

@bermud bermud added this to the 4.9 milestone Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants