Ingestion

Playwright

Send Playwright test results to RunPilotAI using the JSON reporter. Supports screenshots, traces, error messages, and stack traces.

Configure the JSON reporter

Add the JSON reporter to your playwright.config.ts:

typescript
import { defineConfig } from "@playwright/test";

export default defineConfig({
  reporter: [
    ["json", { outputFile: "playwright-results.json" }],
    ["html"],   // keep HTML report for local dev
  ],
});

Send results via curl

bash
curl -s -X POST https://runpilotai.com/api/ingest/playwright \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_INGEST_KEY" \
  -d @playwright-results.json

GitHub Actions example

yaml
- run: npx playwright test --reporter=json --output=playwright-results.json

- name: Send to RunPilotAI
  if: always()
  run: |
    curl -s -X POST https://runpilotai.com/api/ingest/playwright \
      -H "Content-Type: application/json" \
      -H "x-api-key: ${{ secrets.RUNPILOT_API_KEY }}" \
      -d @playwright-results.json

Supported fields

RunPilotAI reads suites, specs, test statuses (passed / failed / skipped), error messages, stack traces, screenshot attachment paths, and trace file paths.