
Playwright MCP Project

2025.04.06
0
HTML浏览器自动化测试持续集成浏览器自动化开发效率
Playwright MCP Project 是一个演示如何在 Jenkins 管道中使用 Playwright MCP 服务器的项目。它主要用于自动化浏览器测试,支持在持续集成环境中运行测试并生成报告。
View on GitHub
Overview
基本能力
产品定位
Playwright MCP Project 主要用于浏览器自动化测试,特别适用于需要在持续集成(CI)环境中运行测试的场景。
核心功能
- 自动化浏览器测试
- 支持 Playwright MCP 服务器
- 与 Jenkins 管道集成
- 生成并发布测试报告
适用场景
- 自动化测试
- 持续集成(CI)
- 浏览器兼容性测试
工具列表
npx playwright test
: 运行测试@playwright/mcp@latest
: Playwright MCP 服务器
常见问题解答
无
使用教程
使用依赖
- Node.js
- npm (Node Package Manager)
安装命令:
# 安装 Node.js 和 npm
# 请参考 Node.js 官方文档进行安装
安装教程
-
克隆仓库:
git clone https://github.com/vikaskumarprofessional92/playwright-mcp-project.git cd playwright-mcp-project
-
安装依赖:
npm install
-
设置 Playwright MCP 服务器:
- 确保
settings.json
中配置了 MCP 服务器:json { "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest", "--vision" ] } } }
调试方式
运行测试:
npx playwright test