This project demonstrates integration of Playwright testing with MCP (Model Context Protocol) for AI-powered testing of a Python Flask application.
- Flask web application with task management
- Playwright end-to-end testing
- MCP server for AI-powered test generation
- Automated test case generation based on page analysis
- Responsive design testing
- Accessibility testing
- Clone the repository
- Set up virtual environment:
python -m venv venv && source venv/bin/activate - Install dependencies:
pip install -r requirements.txt - Install Playwright browsers:
playwright install - Start the application:
python src/app.py - Run tests:
pytest tests/
The MCP server provides AI-powered testing tools that can analyze web pages and generate test cases automatically.
- Basic tests:
pytest tests/test_basic.py - AI-powered tests:
pytest tests/test_ai_powered.py - All tests:
pytest - With HTML report:
pytest --html=reports/report.html