Script file top-level fields
json
{
"firmware": "reference",
"on_error": "skip",
"loop": 1,
"loop_infinite": false,
"same_line": false,
"channel_a": { "enabled": true, "transport": "tcp", "ip": "127.0.0.1", "port": 502,
"role": "master", "slave_id": 1, "timeout_ms": 1000, "retry": 1 },
"channel_b": { "enabled": false, "transport": "tcp", "ip": "127.0.0.1", "port": 502,
"role": "master", "slave_id": 1, "timeout_ms": 1000, "retry": 1 },
"cases": [ { "test": "Case name", "steps": [ ... ] } ],
"subroutines": [ ... ]
}| Field | Meaning |
|---|---|
firmware | Firmware version text on the report (Firmware, bottom left of the screen) |
on_error | On a communication failure: skip (default, skip the rest of this case) or continue. See Concepts › 4. |
loop | Number of rounds. 0 means no limit |
loop_infinite | true means no limit (∞ on screen) |
same_line | When true, channel B shares channel A's line (the same serial port or TCP connection) and only uses its own Slave ID |
channel_a / channel_b | Channel settings, fields in the next table |
cases | List of cases. Each has test (the name, up to 63 characters) and steps |
subroutines | List of subroutines, see Subroutine |
Channel settings:
| Field | Meaning |
|---|---|
enabled | Whether the channel is used |
transport | tcp or rtu |
ip, port | TCP address and port |
device, baud, parity, data_bits, stop_bits | RTU serial settings. parity is N, E or O |
role | master (sends requests) or slave (answers requests) |
slave_id | Unit ID |
timeout_ms, retry | Response timeout and number of retries |
