Run a Scripted Test
runTestRun a saved scripted test now: nopaque calls the number and checks each step. Takes testConfigId (from createTestConfig or listTestConfigs). Returns the run at once; read the outcome with getRunResults, which is usually ready after a minute or two. This uses the workspace's minutes or credit and cannot be undone; when a person is present, get a yes first. Use when: a scripted test should be run, for example after a change to the phone system has been deployed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"testConfigId": "<testConfigId>"
},
"name": "runTest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testConfigId | Yes | The ID of the test configuration to execute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| status | Yes | ||
| carrier | No | Bring-your-own-carrier (invite-only): the carrier route this run was dialled through, recorded when the run was dispatched. It still names that route after the config's `carrierRouteId` is changed or removed. Absent when the run was dialled normally. See `GET /testing/carrier-integrations` for the route's name and settings. | |
| outcome | No | Unified run outcome — see MissionTestRun.outcome. Optional/nullable for historical rows pre-backfill. | |
| createdAt | No | ||
| lateStart | No | Load-test calls: true when the system under test first spoke later after answer than the test's late-answer threshold (6 s by default), on passed and failed calls alike. Absent when nothing measured it. | |
| startedAt | Yes | ||
| completedAt | No | ||
| phoneNumber | No | ||
| verdictNote | No | Passed with note: why a call (or step) that failed on its hold check counts as passed. `hold_unconfirmed`: the call reached hold and the line had sound on it, but the live check could not confirm music (set by the tester, `by: live`). `hold_music_rechecked`: after the run, the hold detector heard music in the call's recording (`by: recheck`). `outcome` is `PASS` and `originalOutcome` keeps the outcome before the note. Absent on calls and steps without a note. | |
| workspaceId | Yes | ||
| testConfigId | No | ||
| callTelemetry | No | Call-level telemetry captured during an IVR test call, nested onto `TestRun.callTelemetry`. Populated for standard, mission and compliance runs by the tester / mission-tester containers. nopaque's own carrier cost is internal and is never returned. | |
| carrierDetail | No | Telnyx's record of this call, fetched once a few minutes after the call ends and stored on the run (absent until then). `status` is `not_found` when Telnyx had no record after three tries. Give `sipCallId` to your carrier or SBC team to find this exact call in their logs. | |
| carrierEvents | No | What the carrier's event log and the call recording say about this call, derived once a few minutes after the call ends and stored on the run (absent until then). Times named `...Secs` are seconds after the call was answered. `status` is `not_found` when the carrier had no events for the call after three tries, `error` when they could not be read. A source that could not be read is named in `errors`; the others are still filled. | |
| failurePattern | No | Load-test calls that did not pass: why the call failed, as a named pattern with an owner and the values that put it there (`evidence`). Absent on passed calls, and on calls not yet classified. `rulesVersion` says which version of the rules produced it. | |
| originalOutcome | No | Passed with note: the call's outcome before a `verdictNote` changed it to `PASS`. Absent unless a note changed the outcome. | |
| callDurationSecs | No | Real call duration in seconds (post-answer → last node), surfaced from `callMetadata.callDurationSecs`. Preferred over the wall-clock diff (`completedAt − startedAt`), which inflates by 100–150s+ from queue wait, container start, ringing and post-call stashing. Same field billing meters on. Rows with no tester duration (mission runs) report the container's computed call length here instead. |