Parameter types every pack can use.
Every project has it, and every pack builds on it.
Parameter types
Section titled “Parameter types”| Parameter | Takes | Values | For example |
|---|---|---|---|
{duration} |
a duration in seconds (s) or minutes (m) |
5s, 2m |
|
{filepath} |
a file of the project: a path relative to the feature file’s directory, the resources directories or axx.yaml’s directory (looked for in that order), or an absolute path, quoted when it has a space |
seeds/parcels.yaml, kafka/scan-delivered.json, "seeds/day one.yaml" |
|
{mimeType} |
a content type | application/json, text/json, application/problem+json, application/x-www-form-urlencoded |
application/json |
{ordinal} |
a position, counting from 1; an optional ordinal left out is the first | 1st, 2nd, 3rd |
|
{path} |
a path in a folder or a store, like manifests/M-1/report.csv, quoted when it has a space. A * stands for any characters but a slash, for a name a check cannot know (snap-*.json, named by the time): the path then names the one file it matches |
manifests/M-KESTREL-0412/report.csv, "Parcels/Depot desk/arrivals.json", snap-*.json |
|
{pattern} |
a regular expression (Java syntax) with no spaces, which matches the whole value | PX-\d{4}, [A-Z]{2}-\d+ |