TestProgramActionBlock
Adds tests to the lab test when the run reaches it. It has no exits: a wire cannot leave an Action block, and it can never be the starting block. A block reached by several wires runs once.
Possible values: non-empty
a_euPossible values: [action]
The block's name on the page and in messages. Two blocks may not have the same name, ignoring case and spaces at the ends. Left out, messages name the block by its id.
EU baselineactions object[]required
What the block adds. A block holds each action at most once (graph.schema, reason: duplicate_action), so it can hold one add_tests_by_ids and one add_tests_by_tags.
- AddTestsByIdsAction
- AddTestsByTagsAction
Adds the test properties and conditions it names, by Test Package ID, Test Property ID and Test Condition ID.
Possible values: [add_tests_by_ids]
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.
falseposition object
Where the page draws the block. Optional; kept as sent.
{
"id": "a_eu",
"type": "action",
"title": "EU baseline",
"description": "string",
"actions": [
{
"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
}
]
}
]
}
},
{
"name": "add_tests_by_tags",
"arguments": {
"packages": {
"operator": "anyOf",
"values": [
"EU",
"children"
],
"properties": {
"operator": "anyOf",
"values": [
"EU",
"children"
],
"conditions": {
"operator": "anyOf",
"values": [
"EU",
"children"
]
}
}
},
"properties": {
"operator": "anyOf",
"values": [
"EU",
"children"
],
"conditions": {
"operator": "anyOf",
"values": [
"EU",
"children"
]
}
},
"conditions": {
"operator": "anyOf",
"values": [
"EU",
"children"
]
}
}
}
],
"position": {
"x": 0,
"y": 0
}
}