Getting started
Install
terminal
npx aitp initThis creates aitp.config.yaml and a tests/ folder with one example spec.
Write a test
Create tests/login.test.yaml:
yaml
1name: Log in with email2url: https://staging.example.com3steps:4 - Click "Log in"5 - Type EMAIL into the email field6 - Type PASSWORD into the password field7 - Click "Continue"8 - assert: The dashboard shows the account nameRun it
terminal
npx aitp run tests/login.test.yamlExit code 0 means pass, 1 fail, 2 healed steps waiting for review. The report is at .aitp/last-run.json.
Run in CI
yaml
1- name: Run E2E2 run: npx aitp run --tag smoke --cloud3 env:4 AITP_TOKEN: ${{ secrets.AITP_TOKEN }}