TestProgramAction
One action of an Action block, by its name.
One action of an Action block, by its name.
Possible values: [add_tests_by_ids, add_tests_by_tags]
- add_tests_by_ids
- add_tests_by_tags
Adds the test properties and conditions it names, by Test Package ID, Test Property ID and Test Condition ID.
arguments objectrequired
At least one of packages and properties must list something, every package must list at least one
property, and every property at least one condition. Otherwise 400 (graph.schema,
reason: empty_selection).
Only what is listed is added: naming a package does not add the rest of the package.
An id that is not in the catalog is saved with the warning add_tests.not_found. When the program runs, a
package, property or condition that is missing, disabled or not visible is skipped.
packages object[]
Properties added as part of a test package. Each property must belong to that package.
Test Package ID.
Possible values: non-empty
CHM-EU-01Optional in the request; the backend writes the catalog's name on save.
properties object[]required
Possible values: >= 1
Test Property ID.
Possible values: non-empty
CHM-PB-01Optional in the request; the backend writes the catalog's name on save.
conditions object[]required
Possible values: >= 1
Test Condition ID, on the property's latest version.
Possible values: non-empty
L-01Optional in the request; the backend writes the catalog's name on save.
Whether the lab test must keep this condition. Left out or null, the condition's own setting in the catalog applies.
true: the condition cannot be removed from a lab test the program filled.
falseproperties object[]
Properties added on their own, outside any package.
Test Property ID.
Possible values: non-empty
CHM-PB-01Optional in the request; the backend writes the catalog's name on save.
conditions object[]required
Possible values: >= 1
Test Condition ID, on the property's latest version.
Possible values: non-empty
L-01Optional in the request; the backend writes the catalog's name on save.
Whether the lab test must keep this condition. Left out or null, the condition's own setting in the catalog applies.
true: the condition cannot be removed from a lab test the program filled.
falseAdds the tests whose tags match, from the catalog as it is when the program runs.
arguments objectrequired
One to three sections; with none, 400 (graph.schema, reason: empty_selection). Each section adds
tests on its own, and the block adds what all of them found.
| Section | Adds | May hold a limit |
|---|---|---|
packages | every package whose tags match, with all its properties and their conditions | properties, which may hold conditions |
properties | every property whose tags match, with all its conditions | conditions |
conditions | in every property, the conditions whose tags match | none |
A limit keeps only the properties (or conditions) of what its section found whose tags match it. A limit
anywhere else is refused (reason: invalid_level).
Only enabled, visible packages and properties are used. Each condition's Required is its catalog setting; none is Locked.
packages object
anyOf: has at least one of the tags. allOf: has every tag. noneOf: has none of the tags.
Tags are compared ignoring case and repeated spaces. An empty values is refused (reason: empty_tags).
Possible values: [anyOf, allOf, noneOf]
Possible values: >= 1
["EU","children"]properties object
Keeps only the package's properties whose tags match.
Possible values: [anyOf, allOf, noneOf]
Possible values: >= 1
["EU","children"]conditions object
Keeps only the conditions whose tags match.
Possible values: [anyOf, allOf, noneOf]
Possible values: >= 1
["EU","children"]properties object
anyOf: has at least one of the tags. allOf: has every tag. noneOf: has none of the tags.
Tags are compared ignoring case and repeated spaces. An empty values is refused (reason: empty_tags).
Possible values: [anyOf, allOf, noneOf]
Possible values: >= 1
["EU","children"]conditions object
Keeps only the conditions whose tags match.
Possible values: [anyOf, allOf, noneOf]
Possible values: >= 1
["EU","children"]conditions object
anyOf: has at least one of the tags. allOf: has every tag. noneOf: has none of the tags.
Tags are compared ignoring case and repeated spaces. An empty values is refused (reason: empty_tags).
Possible values: [anyOf, allOf, noneOf]
Possible values: >= 1
["EU","children"]{
"name": "add_tests_by_ids",
"arguments": {
"packages": [
{
"id": "CHM-EU-01",
"name": "string",
"properties": [
{
"id": "CHM-PB-01",
"name": "string",
"conditions": [
{
"id": "L-01",
"name": "string",
"required": true,
"locked": false
}
]
}
]
}
],
"properties": [
{
"id": "CHM-PB-01",
"name": "string",
"conditions": [
{
"id": "L-01",
"name": "string",
"required": true,
"locked": false
}
]
}
]
}
}