Prefix Statement
Using prefixes it is possible to abbreviate class and operation identifiers by removing the namespace URIs.
Syntax
- Prefix step must appear before any other steps at the top of a scenario document
- Unlike prefixes in SPARQL or Turtle, the DSL allows slashes
Usage
PREFIX api: <http://example.com/vocab#>
With Operation api:CreateTask {
Invoke {
Expect Status 201
}
}
With Class api:Task {
With Operation api:CancelTask {
Invoke {
Expect Status 204
}
}
}