Skip to main content

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.

idstringrequired

Possible values: non-empty

Example: a_eu
typestringrequired

Possible values: [action]

titlestring

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.

Example: EU baseline
descriptionstring
actions 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.

  • Array [
  • oneOf

    Adds the test properties and conditions it names, by Test Package ID, Test Property ID and Test Condition ID.

    namestringrequired

    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.

  • Array [
  • idstringrequired

    Test Package ID.

    Possible values: non-empty

    Example: CHM-EU-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    properties object[]required

    Possible values: >= 1

  • Array [
  • idstringrequired

    Test Property ID.

    Possible values: non-empty

    Example: CHM-PB-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    conditions object[]required

    Possible values: >= 1

  • Array [
  • idstringrequired

    Test Condition ID, on the property's latest version.

    Possible values: non-empty

    Example: L-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    requiredbooleannullable

    Whether the lab test must keep this condition. Left out or null, the condition's own setting in the catalog applies.

    lockedboolean

    true: the condition cannot be removed from a lab test the program filled.

    Default value: false
  • ]
  • ]
  • ]
  • properties object[]

    Properties added on their own, outside any package.

  • Array [
  • idstringrequired

    Test Property ID.

    Possible values: non-empty

    Example: CHM-PB-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    conditions object[]required

    Possible values: >= 1

  • Array [
  • idstringrequired

    Test Condition ID, on the property's latest version.

    Possible values: non-empty

    Example: L-01
    namestring

    Optional in the request; the backend writes the catalog's name on save.

    requiredbooleannullable

    Whether the lab test must keep this condition. Left out or null, the condition's own setting in the catalog applies.

    lockedboolean

    true: the condition cannot be removed from a lab test the program filled.

    Default value: false
  • ]
  • ]
  • ]
  • position object

    Where the page draws the block. Optional; kept as sent.

    xnumber
    ynumber
    TestProgramActionBlock
    {
    "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
    }
    }