robos:TestSuite

Validation shape for robos:TestSuite nodes in the testing package group.

Details

   
Class robos:TestSuite
Also matches oslc_qm:TestSuite
Shape id urn:robos:shape:TestSuiteShape
Package Testing, Quality & BDD (robos.testing) (testing)
Classification Testing & behavior
Schema.org type schema:ItemList
Domain standard OSLC QM

Properties

Count is the minimum and maximum number of values (* means no maximum). The validator enforces both. The type column is documentation only; the validator does not check types.

Property Count Type Rule or description
dcterms:title 1..* xsd:string Test Suite must have a title.
robos:testFramework 1..* xsd:string Test Suite must specify testing framework or runner.

Example node

This node comes from .robos/kgraphs/testing/package.jsonld in the RobOS repository. That graph holds sample data for a fictional company, so treat the values as illustrations.

{
  "@id": "urn:robos:test-suite:billing-api-bdd",
  "@type": [
    "robos:TestSuite",
    "oslc_qm:TestSuite",
    "schema:ItemList"
  ],
  "dcterms:title": "Billing API Cucumber BDD Test Suite",
  "dcterms:description": "Automated Cucumber test suite running BDD acceptance scenarios against billing API staging cluster.",
  "robos:testFramework": "cucumber",
  "robos:inTestPlan": "urn:robos:test-plan:q3-release-regression",
  "robos:package": "testing",
  "robos:namespace": "robos.testing",
  "robos:refersFrom": "http://open-services.net/ns/qm#TestSuite",
  "robos:schemaOrgType": "https://schema.org/ItemList",
  "robos:domainStandard": "http://open-services.net/ns/qm#TestSuite",
  "robos:testsService": "urn:robos:service:billing-api",
  "robos:testingType": "BDD Acceptance"
}

Validate the example

Save the example as node.json in the repository root, then run:

node -e "const { SHACLValidator } = require('./packages/robos-graph/lib/shacl-validator'); console.log(new SHACLValidator().validate([require('./node.json')]).conforms)"

The command prints true when the node meets every rule for its types.