AI测试自动化框架

一个集成了AI代理的测试自动化框架,支持智能测试生成、维护和优化,适用于Web应用的自动化测试和持续集成。

  • by jivanshirpurkar
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 jivanshirpurkar/playwright-mcp-agent

使用说明

AI-Powered Test Automation Framework 🚀

🌟 Features

🤖 MCP AI Agent Integration

  • Intelligent test generation and maintenance
  • Context-aware test optimization
  • Automated test healing capabilities
  • Dynamic test data management

Features

  • MCP Server integration for AI-driven test automation
  • Playwright test execution and browser control
  • GitHub Actions CI/CD pipeline
  • Automated test reporting

Setup

  1. Install dependencies:
npm install
  1. Install Playwright browsers:
npx playwright install
  1. Start the MCP agent:
npm start

Running Tests

  • Run tests headless:
npm test
  • Run tests with browser visible:
npm run test:headed

CI/CD

The project includes GitHub Actions workflows that:

  • Run tests on every push and pull request
  • Generate and upload test reports
  • Start the MCP agent for AI-driven testing

Project Structure

playwright-mcp-agent/
├── src/
│   ├── agents/          # MCP agent implementation
│   ├── tests/           # Playwright tests
│   └── index.js         # Entry point
├── .github/
│   └── workflows/       # GitHub Actions configuration
└── playwright.config.js # Playwright configuration

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request