Developers
Everything the console does, from code.
Write tests as YAML next to your firmware, run them from any CI with one line, and gate releases on pass criteria and baselines.
Interfaces
REST API
Everything under
/api/v1, with an OpenAPI description at/api/v1/openapi.json, interactive docs and API tokens.Python SDK
Sync and async clients:
pip install dipolescope. Scripts and notebooks in a few lines.dscope CLI
Runs, endpoints, exports, compare, schedules and licences. CI exit codes and JUnit XML.
Tests as code
YAML or JSON with a JSON Schema, validated with line numbers in the console editor.
$${param}overrides.
schema_version: 1
name: ax-5g-80mhz-dl-tcp
description: Downlink TCP and a voice call through the AP under test
labels: { dut: ap-under-test, band: 5g }
duration: 120s
warmup: 5s
params:
dl_streams: 4 # dscope run --set dl_streams=8
endpoints:
ap_side: { id: ep-lab-server-01, interface: eth1 }
sta1: { id: ep-laptop-07, interface: wlan0 }
flows:
- name: dl-be-tcp
source: ap_side
sink: sta1
profile: { type: tcp_bulk, streams: "${dl_streams}" }
- name: voice
source: sta1
sink: ap_side
bidirectional: true
profile: { type: voip, codec: G.711, ptime: 20ms }
qos: { wmm_ac: VO }
telemetry:
wifi: { sta1: true } # signal, MCS, NSS, width, retries, roams
pass_criteria:
- { flow: dl-be-tcp, metric: throughput_mbps.p50, op: ">=", value: 600 }
- { flow: voice, direction: both, metric: mos.min, op: ">=", value: 4.0 }
- { endpoint: sta1, metric: wifi.signal_dbm.mean, op: ">", value: -67 }
regression:
baseline: "last:5" # compare with the last five runs
tolerance: 5 # percent
fail_on_regression: true schema_version: 1
name: ax-5g-80mhz-dl-tcp
description: Downlink TCP and a voice call through the AP under test
labels: { dut: ap-under-test, band: 5g }
duration: 120s
warmup: 5s
params:
dl_streams: 4 # dscope run --set dl_streams=8
endpoints:
ap_side: { id: ep-lab-server-01, interface: eth1 }
sta1: { id: ep-laptop-07, interface: wlan0 }
flows:
- name: dl-be-tcp
source: ap_side
sink: sta1
profile: { type: tcp_bulk, streams: "${dl_streams}" }
- name: voice
source: sta1
sink: ap_side
bidirectional: true
profile: { type: voip, codec: G.711, ptime: 20ms }
qos: { wmm_ac: VO }
telemetry:
wifi: { sta1: true } # signal, MCS, NSS, width, retries, roams
pass_criteria:
- { flow: dl-be-tcp, metric: throughput_mbps.p50, op: ">=", value: 600 }
- { flow: voice, direction: both, metric: mos.min, op: ">=", value: 4.0 }
- { endpoint: sta1, metric: wifi.signal_dbm.mean, op: ">", value: -67 }
regression:
baseline: "last:5" # compare with the last five runs
tolerance: 5 # percent
fail_on_regression: true # .github/workflows/wifi-regression.yml (any CI works the same way)
jobs:
wifi-regression:
runs-on: [self-hosted, wifi-lab]
steps:
- uses: actions/checkout@v4
- run: pip install "dipolescope[cli]"
- name: Run the Wi-Fi test on the bench
env:
DSCOPE_URL: ${{ vars.DSCOPE_URL }}
DSCOPE_TOKEN: ${{ secrets.DSCOPE_TOKEN }}
run: |
dscope run tests/ax-5g-80mhz-dl-tcp.yaml \
--label build=${{ github.sha }} \
--junit results.xml
# exit code: 0 pass, 1 criteria failed, 2 run error, 3 invalid test, 4 unreachable # .github/workflows/wifi-regression.yml (any CI works the same way)
jobs:
wifi-regression:
runs-on: [self-hosted, wifi-lab]
steps:
- uses: actions/checkout@v4
- run: pip install "dipolescope[cli]"
- name: Run the Wi-Fi test on the bench
env:
DSCOPE_URL: ${{ vars.DSCOPE_URL }}
DSCOPE_TOKEN: ${{ secrets.DSCOPE_TOKEN }}
run: |
dscope run tests/ax-5g-80mhz-dl-tcp.yaml \
--label build=${{ github.sha }} \
--junit results.xml
# exit code: 0 pass, 1 criteria failed, 2 run error, 3 invalid test, 4 unreachable from pathlib import Path
from dipolescope import Client
with Client("https://dscope.lab.example", token=TOKEN) as c:
run = c.runs.start(
source=Path("ax-5g-80mhz-dl-tcp.yaml").read_text(),
params={"dl_streams": 8},
labels={"build": "2026.11.3"},
)
run = c.wait(run.id, timeout=900)
print(run.state, run.verdict)
summary = c.runs.summary(run.id) # flows, criteria, diagnosis
csv = c.runs.export(run.id, fmt="csv") from pathlib import Path
from dipolescope import Client
with Client("https://dscope.lab.example", token=TOKEN) as c:
run = c.runs.start(
source=Path("ax-5g-80mhz-dl-tcp.yaml").read_text(),
params={"dl_streams": 8},
labels={"build": "2026.11.3"},
)
run = c.wait(run.id, timeout=900)
print(run.state, run.verdict)
summary = c.runs.summary(run.id) # flows, criteria, diagnosis
csv = c.runs.export(run.id, fmt="csv") CI exit codes
With --wait (or --junit), the exit code of dscope run is the verdict, so any CI system can gate on it.
| Code | Meaning | When |
|---|---|---|
| 0 | pass | Every pass criterion met (and no regression, if the test asks for it). |
| 1 | fail | The run finished, and at least one criterion failed. |
| 2 | run error | The run could not complete. |
| 3 | invalid test | The test file or the command line is not valid. |
| 4 | unreachable | The controller could not be reached. |
JUnit and webhooks
Pass criteria become JUnit test cases, so results land in Jenkins, GitLab or GitHub like any other test. Run events can also be POSTed to a URL, signed with HMAC-SHA256.
dscope run test.yaml --wait --junit out.xml
dscope endpoints list
dscope results export <run-id> --format csv
dscope compare <run-a> <run-b>
dscope sweep ... # drive your attenuator, record every stepSet DSCOPE_URL and DSCOPE_TOKEN once; every command uses them.