MCP.so
登录

šŸŽ­ Playwright Test Automation Framework

@GoldiSaini

å…³äŗŽ šŸŽ­ Playwright Test Automation Framework

šŸŽ­ Modern E2E Testing Framework | Playwright + TypeScript + MCP Server | Data-Driven POM Architecture | Advanced Test Recording & Playback

基本俔息

åˆ†ē±»

开发巄具

čæč”Œę—¶

node

ä¼ č¾“ę–¹å¼

stdio

å‘åøƒč€…

GoldiSaini

é…ē½®

ä½æē”Øäø‹é¢ēš„é…ē½®,å°†ę­¤ęœåŠ”å™Øę·»åŠ åˆ°ä½ ēš„ MCP å®¢ęˆ·ē«Æć€‚

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

å·„å…·

ęœŖę£€ęµ‹åˆ°å·„å…·

å·„å…·ę˜Æä»Ž README äø­č‡ŖåŠØęå–ēš„ć€‚ē»“ęŠ¤č€…åÆä»„åœØ ## Tools ę ‡é¢˜äø‹åˆ—å‡ŗå·„å…·,å³åÆå”«å……čæ™éƒØåˆ†å†…å®¹ć€‚

ę¦‚č§ˆ

What is šŸŽ­ Playwright Test Automation Framework?

A data-driven test automation framework built with Playwright and TypeScript, leveraging the @executeautomation/playwright-mcp-server for enhanced test recording and playback. It uses the Page Object Model design pattern for scalable and maintainable automated testing.

How to use šŸŽ­ Playwright Test Automation Framework?

Clone the repository, install dependencies with npm install, and install Playwright browsers with npx playwright install. Run all tests with npx playwright test; run a specific file with npx playwright test tests/specs/registration.spec.ts; use headed mode with --headed.

Key features of šŸŽ­ Playwright Test Automation Framework

  • šŸ—ļø Page Object Model architecture for clean test design
  • šŸ“Š Data-driven testing with external test data
  • šŸ”§ TypeScript support for robust type checking
  • ā™»ļø Reusable components via base classes
  • šŸŽ„ MCP Server integration for recording and playback
  • šŸ“ˆ Scalable design for adding new scenarios easily

Use cases of šŸŽ­ Playwright Test Automation Framework

  • Automated UI testing for web applications
  • Data-driven registration and login flow validation
  • Rapid test creation using playback and script generation
  • Maintaining a scalable test suite with centralized locators and data

FAQ from šŸŽ­ Playwright Test Automation Framework

How do I set up the framework?

Clone the repository, run npm install to install dependencies, then run npx playwright install to download Playwright browsers.

How do I run tests?

Execute all tests with npx playwright test. Run a specific test file using npx playwright test tests/specs/registration.spec.ts. Use --headed to run tests in headed browser mode.

How do I add new test scenarios?

Add a new data object to tests/data/testData.ts following the TestScenario interface pattern. The test suite will automatically execute for the new scenario.

What are the key dependencies?

Playwright, TypeScript, Node.js, @executeautomation/playwright-mcp-server, and @playwright/test.

What programming language does the framework use?

TypeScript, with strong typing and better IDE support.

评论

开发巄具 åˆ†ē±»äø‹ēš„ę›“å¤š MCP ęœåŠ”å™Ø