Run test
run_testExecute agent-generated JavaScript against a saved spec. HTTP (default) uses fetch(); browser uses env.PAGE (goto, click, fill, screenshot, getText, waitForSelector, waitForURL, press, selectOption, check, uncheck, hover, reload, url, getAttribute, isVisible, count). Do not import Playwright. Website login is stored once and reused. Pass unauthenticated: true for public pages. browserEngine: kitesurf | chromium.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | ID of the saved spec to test against | |
| runtime | No | http (default) or browser | |
| testCode | Yes | JavaScript to execute. HTTP: fetch(). Browser: env.PAGE (goto, click, fill, screenshot, getText, waitForSelector, waitForURL, press, selectOption, check, uncheck, hover, reload, url, getAttribute, isVisible, count). | |
| testType | Yes | Categorization label | |
| timeoutMs | No | HTTP default 30000ms, browser 90000ms (cap 120000) | |
| browserEngine | No | Default kitesurf if unauthenticated, chromium if logging in | |
| credentialLabel | No | Which stored credential to use | |
| unauthenticated | No | Browser only: skip login for a public page |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| runId | Yes | ||
| status | Yes | ||
| summary | No | ||
| evidence | Yes |