Skip to content

Introduction

Autonoma is an agentic end-to-end testing platform. Users create and run automated tests for web, iOS, and Android applications using natural language. The system executes tests on real devices and emulators, with AI models handling element selection, assertions, self-healing, and agentic decision-making.

What you need to integrate

To connect your application with Autonoma, you need to implement the Environment Factory — a single POST endpoint that Autonoma calls to create and destroy isolated test environments before and after E2E tests.

The endpoint handles three actions:

ActionWhen it’s calledWhat you do
discoverWhen Autonoma connectsReturn a list of available scenarios (e.g., “standard”, “empty”)
upBefore each test runCreate data in your database, generate auth credentials, return both
downAfter each test runVerify the request is legitimate, then delete the data you created

How it works

Before each test run:

  1. Autonoma calls your endpoint with action: "up" and a scenario name
  2. Your endpoint creates isolated test data and returns auth credentials
  3. Autonoma uses those credentials to log in and run the test
  4. After the test, Autonoma calls action: "down" with signed refs
  5. Your endpoint verifies the signature and deletes only the data it created

The signed refs mechanism ensures teardown can never delete data it didn’t create — even if someone gains access to your endpoint.

Next steps

Environment Factory Guide

Full protocol, security model, and implementation details for any language or framework.

Read the guide →

Next.js Example

Complete working example with Next.js + Prisma + PostgreSQL, including integration tests.

See the example →