| name | atr-behavior |
| description | Run behavior tests, run browser tests, execute .test.txt files, run e2e tests with ATR, natural language browser testing, AI browser tests, behavior-driven browser testing, or run browser-based behavior tests using ATR with natural language test specifications. |
ATR Behavior Testing Skill
This skill enables running browser-based behavior tests using ATR's AI-driven automation. Write tests in natural language in .test.txt files and let the AI execute them.
Overview
Unlike traditional browser testing that requires precise selectors and step-by-step code, ATR uses an AI agent to:
- Read natural language test specifications
- Interpret what actions to perform
- Execute using browser automation
- Analyze failures and provide recommendations
Basic Usage
Run Single Test
atr run --behavior tests/login.test.txt
Run Directory of Tests
atr run --behavior tests/e2e/
All .test.txt files in the directory are executed.
With Base URL
atr run --behavior tests/e2e/ --browser-url http://localhost:3000
The base URL is used for relative navigation paths.
Command Options
| Flag | Description | Default |
|---|
--behavior <path> | Test file or directory | (required) |
--browser-url <url> | Base URL for tests | from config |
--headless | Run browser headless |