Autonomous QA Documentation
Learn how to deploy Testiva AI's multi-agent swarm into your staging environment or CI/CD pipeline in under 5 minutes. Zero brittle CSS selectors, zero manual test scripts.
5-Minute Quickstart
Install the Testiva CLI globally or as a dev dependency in your repository, authenticate with your workspace API key, and point the swarm at any local or staging URL.
# 1. Install the Testiva AI CLI
npm install -D @testiva/cli
# 2. Authenticate with your testiva.xyz workspace
npx testiva auth login --token $TESTIVA_API_KEY
# 3. Dispatch the 5-agent swarm against your staging URL
npx testiva swarm --url https://staging.your-app.com --agents all --auto-pr
Swarm Configuration (`testiva.config.ts`)
Customize which autonomous agents run, set your concurrency limits, and configure automatic Pull Request remediation. Toggle the switches below to generate your custom configuration file:
VLM Self-Healing Vision Engine
Unlike Playwright or Cypress, Testiva AI does not bind assertions to brittle CSS classes or XPath selectors. Instead, our Vision-Language Model computes a multi-modal semantic anchor combining visual bounding boxes, accessibility trees, and surrounding layout context.
// Breaks whenever Tailwind classes or DOM IDs change
await page.locator('div.checkout-bar > button#btn-pay-v2').click();
// Self-heals across complete UI redesigns
await agent.act("Click the primary payment confirmation button");
OAuth, 2FA & Session Seeding
To test authenticated dashboards, multi-tenant RBAC roles, and 2FA-protected routes, provide encrypted vault credentials or inject a pre-authenticated `storageState` token header.
personas:
- role: "tenant_admin"
loginUrl: "https://staging.acme.xyz/login"
email: "${VAULT_ADMIN_EMAIL}"
password: "${VAULT_ADMIN_PASSWORD}"
totpSecret: "${VAULT_ADMIN_TOTP_SEED}" # Auto-generates 6-digit 2FA codes
- role: "readonly_member"
# Used by Security Agent to verify zero IDOR privilege escalation
injectHeaders:
Authorization: "Bearer ${VAULT_READONLY_JWT}"
Auto-PR Code Remediation
When the Hunter or Security agent reproduces a failure twice (eliminating false positives), our Remediation Engine correlates the browser stack trace with your repository AST and opens a side-branch Pull Request containing the minimal verified fix.
CI/CD Pipeline Integration
Trigger Testiva AI automatically on every Pull Request preview deployment.
name: Testiva Autonomous QA Swarm
on: [pull_request]
jobs:
autonomous-qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Testiva AI Swarm against Preview URL
uses: testiva-ai/swarm-action@v4
with:
api-key: ${{ secrets.TESTIVA_API_KEY }}
target-url: ${{ steps.deploy.outputs.preview_url }}
agents: "explorer,hunter,security,perf"
fail-on-severity: "high"
auto-open-pr: true
Trigger Swarm via REST API
Dispatch an autonomous test run programmatically from any custom deployment orchestrator. Click Send Test Request below to simulate a live API call:
{
"target_url": "https://staging.acme.xyz",
"concurrency": 15,
"agents": ["explorer", "hunter", "security"],
"webhook_url": "https://acme.xyz/hooks/qa"
}
// Click "Send Test Request" to inspect live response...
Self-Hosted Kubernetes & VPC Runners
For air-gapped staging environments, deploy the stateless Testiva Runner Helm chart directly inside your AWS, GCP, or Azure Kubernetes cluster.
helm repo add testiva https://charts.testiva.xyz
helm install testiva-runner testiva/swarm-enclave \
--namespace testiva-system --create-namespace \
--set runner.enclaveToken=$TESTIVA_ENCLAVE_TOKEN \
--set runner.zeroDataRetention=true