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.

ax-5g-80mhz-dl-tcp.yaml
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

CI exit codes

With --wait (or --junit), the exit code of dscope run is the verdict, so any CI system can gate on it.

CodeMeaningWhen
0passEvery pass criterion met (and no regression, if the test asks for it).
1failThe run finished, and at least one criterion failed.
2run errorThe run could not complete.
3invalid testThe test file or the command line is not valid.
4unreachableThe 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
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 step

Set DSCOPE_URL and DSCOPE_TOKEN once; every command uses them.

Wire it into your pipeline.