MCP.so
登录

Playwright Testing Framework MCP Server

@lupusludens-se

基本信息

分类

开发工具

传输方式

stdio

作者

lupusludens-se

关于 Playwright Testing Framework MCP Server

ai_driven_test_automation_with_playwright_cursor_mcp_server

Playwright Testing Framework MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "ai_driven_test_automation_with_playwright_cursor_mcp_server": {
      "command": "npx",
      "args": [
        "playwright",
        "install"
      ]
    }
  }
}

Playwright Testing Framework MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Playwright Testing Framework?

This project contains UI and API tests for the Zeigo Network Dashboard using Playwright for end-to-end testing. It provides a structured test suite with Page Object Model files, environment-specific configurations, and both CLI and VS Code integration for running tests.

How to use Playwright Testing Framework?

Install Node.js v20 or higher, create a .env file with API_BASE_URL and UI_BASE_URL, then run npm install, npx playwright install, and npm install dotenv. Run tests via VS Code Test Explorer or command line using npx playwright test with various options (headed mode, specific browser, debug, environment-specific). Use the Playwright MCP Server by running npx playwright-mcp in a separate terminal.

Key features of Playwright Testing Framework

  • Cross-browser and cross-platform testing support
  • Multi-language support (TypeScript, JavaScript, Python, .NET, Java)
  • Parallel test execution and built-in debugging tools
  • Page Object Model (POM) structure for maintainable tests
  • Environment-specific test execution (test, preprod)
  • Integration with VS Code Test Explorer and Playwright MCP Server

Use cases of Playwright Testing Framework

  • Automating UI and API tests for the Zeigo Network Dashboard
  • Running regression tests across multiple browsers (Chrome, Safari)
  • Executing tests in CI/CD pipelines with environment variables
  • Debugging tests with headed mode, debug mode, and Codegen
  • Using MCP Servers to enhance testing with up-to-date documentation

常见问题

1

What are the prerequisites for running tests?

Node.js v20 or higher and a `.env` file with `API_BASE_URL` and `UI_BASE_URL`.

2

Can the Playwright MCP Server run simultaneously with another MCP server?

No, only one MCP Server can run per terminal session. Run them in separate terminals.

3

What test execution options are available?

Tests can be run via VS Code Test Explorer or command line with options for headed mode, specific browser, debug mode, environment-specific (test/preprod), and test name/filtering.

4

What is the purpose of the Playwright MCP Server?

It enhances Playwright capabilities for UI testing. Run it with `npx playwright-mcp`.

5

Where are test files located?

UI tests in `ui-tests/specs/`, API tests in `api-tests/specs/`, with Page Object Model files in `pages/` and utilities in `utils/`.

评论

开发工具 分类下的更多 MCP 服务器