qaautomate
v1.1.17
Published
AI powered QA script generator and executor CLI
Maintainers
Readme
qaautomate
AI powered QA script generator. Write tests once, run with Playwright or Cypress.
Installation
```bash npm install -g qaautomate ```
Prerequisites
You need an Anthropic API key to use this tool. Get one at: https://console.anthropic.com
```bash export ANTHROPIC_API_KEY=your_api_key_here ```
Getting Started
1. Initialize a project
```bash qaautomate init ```
2. Create a test
```bash qaautomate create "Go to google and verify the title" ? Test name: google-test ✓ Saved → <'test directory provided by user'>/google-test.test.ts ```
3. Run with any framework
```bash qaautomate run -f playwright <'specfilename'> qaautomate run -f cypress <'specfilename'> ```
Your Test Syntax
```ts import { qa } from 'qaautomate';
qa.goto('https://google.com'); qa.verifyTitle('Google'); qa.click('#search'); qa.type('#search', 'laptops'); qa.verifyVisible('#results'); ```
Supported Actions
| Action | Description |
|---|---|
| qa.goto(url) | Navigate to URL |
| qa.click(selector) | Click element |
| qa.type(selector, text) | Type into input |
| qa.verifyTitle(text) | Verify page title |
| qa.verifyVisible(selector) | Verify element visible |
| qa.verifyText(selector, text) | Verify element text |
| qa.verifyUrl(url) | Verify current URL |
| qa.wait(ms) | Wait milliseconds |
Supported Frameworks
| Framework | Languages | |---|---| | Playwright | TypeScript, JavaScript | | Cypress | TypeScript, JavaScript |
How It Works
``` You write ONE test file using qa.xxx() syntax ↓ qaautomate translates it to Playwright or Cypress ↓ Runs the test and shows results ↓ Temp files deleted automatically ```
Commands
| Command | Description |
|---|---|
| qaautomate init | Initialize a new project |
| qaautomate create "prompt" | Generate a test script |
| qaautomate run -f <framework> <name> | Run a test |
License
MIT
