Tests
Edit on GitHubCreate and manage test scripts
Tests are reusable scripts that validate your application. Create browser, API, database, custom, or performance tests.

Test Types
Browser Test
Playwright-based UI testing for user flows
API Test
HTTP and GraphQL endpoint validation
Database Test
SQL queries and data validation
Custom Test
Node.js scripts for any scenario
Performance Test
k6 load testing from multiple regions
Create Test
- Go to Create and select test type
- Write script in the Playground
- Use AI Create to generate from natural language
- Use Templates to start with pre-built scripts
- Click Run to validate
- Save when passing
AI Features
- AI Create — Generate tests from plain English descriptions
- AI Fix — Automatically fix failing tests by analyzing errors
- Templates — Pre-built scripts for common scenarios
See Playground for details.
Browser Test Example
import { test, expect } from '@playwright/test';
test('login flow', async ({ page }) => {
await page.goto('https://app.example.com/login');
await page.fill('#email', 'user@example.com');
await page.fill('#password', 'password');
await page.click('button[type="submit"]');
await expect(page).toHaveURL('/dashboard');
});API Test Example
const response = await fetch('https://api.example.com/users', {
headers: { 'Authorization': `Bearer ${getSecret('API_KEY')}` }
});
expect(response.status).toBe(200);Database Test Example
SELECT COUNT(*) as user_count FROM users WHERE active = true;
-- Assertion: user_count > 0Features
- Playground — Interactive editor with AI assistance
- Variables — Project-scoped secrets and config
- Reports — Screenshots, traces, and logs
- Multi-region — Performance tests from US, EU, APAC