How harikch2209/aitestagent works
AI Test Agent turns plain-language web or mobile scenarios into executable tests, runs them against real browsers or native devices, and returns live progress and results. The main web flow is coordinated by the chat service; a separate agent mode performs autonomous browser exploration. The platform also manages projects, cases, suites, stories, schedules, authentication, and CI integrations. The README documents these capabilities, but sampled excerpts do not expose every route-to-service call, so uncertain wiring is omitted.
Main entry points: chatService.ts Chat orchestration · server.ts Web server · agentService.ts Agent service · actionHandler.ts Action handler
Components 26
Test execution
- Web server
web/server.ts - Chat orchestration
web/services/chatService.ts - AI engine
src/ai/aiEngine.ts - Test parser
src/parser/markdownParser.ts - Page scanner
src/scanner/pageScanner.ts - Step executor
src/executor/stepExecutor.ts - Action handler
src/executor/actionHandler.ts - Locator healing
src/locators/selfHealer.ts - Agent service
web/services/agentService.ts - Autonomous agent
src/agent/webAgent.ts
Team platform
- Product APIs
web/routes - Scheduled runs
web/services/scheduler.ts - Webhook delivery
web/services/webhookService.ts
Runtime integrations
- LLM providers
src/ai/providers/index.ts - Browser drivers
src/drivers/playwrightDriver.ts - Web browsers
- Mobile lifecycle
src/mobile/deviceManager.ts - Appium driver
src/drivers/appiumDriver.ts - iOS and Android apps
- CI systems
- LLM services
Persistence and results
- Run reports
src/reporter/htmlReporter.ts - Database service
web/services/dbService.ts - Local settings store
web/services/sqliteStore.ts - Application database
Other components
- Tester
Connections 28
- Tester → Web server: starts session
- Web server → Chat orchestration: dispatches chat
- Chat orchestration → AI engine: requests plans
- AI engine → LLM providers: selects provider
- LLM providers → LLM services: sends prompts
- Chat orchestration → Test parser: parses tests
- Chat orchestration → Page scanner: scans pages
- Chat orchestration → Step executor: runs steps
- Step executor → Action handler: dispatches actions
- Action handler → Locator healing: heals locators
- Action handler → Browser drivers: uses driver
- Browser drivers → Web browsers: controls browser
- Chat orchestration → Mobile lifecycle: manages devices
- Chat orchestration → Appium driver: runs mobile steps
- Appium driver → iOS and Android apps: controls app
- Chat orchestration → Run reports: produces results
- Tester → Agent service: starts exploration
- Agent service → AI engine: interprets goal
- Agent service → Autonomous agent: runs agent
- Agent service → Web browsers: launches browser
- Tester → Product APIs: manages tests
- Product APIs → Database service: uses persistence
- Database service → Application database: reads and writes
- Web server → Local settings store: stores settings
- Scheduled runs → Chat orchestration: starts scheduled runs
- Web server → Scheduled runs: stops schedules
- CI systems → Product APIs: triggers runs
- Chat orchestration → Webhook delivery: notifies completion