Token导航 LogoToken导航TokenDH.com
Demo Automation Project With MCP logo
开发工具stdio官方级别未说明来源级核验

Demo Automation Project With MCP

MCP Server

playwright

Playwright Project 是一个用于自动化测试的框架,支持端到端测试,包含示例测试和配置,可在本地或Docker环境中运行,并支持持续集成。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
自动化测试TypeScript开发工具

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Mufrad6502

提供方

Mufrad6502

最后核验

2026/5/17 20:21

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx playwright test

详细介绍

Playwright Project

![Playwright Tests](https://github.com/Mufrad6502/demo-automation-project-with-MCP/actions/workflows/playwright.yml)

This project is set up for automation testing using Playwright. It includes example tests and configurations to help you get started with end-to-end testing.

Project Structure

  • tests/: Contains all the test files.

- e2e/: End-to-end tests. - fixtures/: Test data and utility functions.

  • playwright.config.ts: Configuration file for Playwright.
  • package.json: Lists dependencies and scripts.
  • tsconfig.json: TypeScript configuration file.

Setup Instructions

Local Setup

  1. Clone the repository:
   git clone 
   cd playwright-project
  1. Install dependencies:
   npm install

Docker Setup

You can also run tests in Docker containers, which ensures consistent test environments and multi-browser testing:

  1. Make sure you have Docker and Docker Compose installed:
   docker --version
   docker-compose --version
  1. Build the Docker containers:
   docker-compose build
  1. Run tests in all browsers (Chrome, Firefox, and WebKit):
   docker-compose up

Or run tests in specific browsers:

   docker-compose up chrome-tests    # Run only Chrome tests
   docker-compose up firefox-tests   # Run only Firefox tests
   docker-compose up webkit-tests    # Run only WebKit tests
  1. To stop the containers:
   docker-compose down

The Docker setup provides:

  • Isolated test environment
  • Parallel test execution across browsers
  • Consistent browser versions
  • No need to install browsers locally
  1. Set up environment variables:
   cp .env.example .env

Edit the .env file with your actual credentials. You can get the test credentials from: - https://www.saucedemo.com/ (for public test users) - Your team lead or project documentation (for private credentials)

IMPORTANT: - Never commit the .env file to the repository - Never share your credentials in public - If you accidentally commit credentials, change them immediately

  1. Run the tests:
   npx playwright test

Continuous Integration

This project uses GitHub Actions for continuous integration. The workflow:

  • Runs on every push to main branch
  • Runs on every pull request to main branch
  • Installs dependencies and Playwright
  • Sets up environment variables from GitHub Secrets
  • Runs all tests
  • Uploads test reports as artifacts

Setting up GitHub Secrets

Before the CI can run tests, you need to set up these secrets in your GitHub repository:

  1. Go to your repository settings
  2. Navigate to Secrets and Variables > Actions
  3. Add the following secrets:

- STANDARD_USER - STANDARD_PASSWORD - LOCKED_USER - LOCKED_PASSWORD - PROBLEM_USER - PROBLEM_PASSWORD - PERFORMANCE_USER - PERFORMANCE_PASSWORD

Test Reports

After each test run, a test report is generated and uploaded as an artifact. You can:

  1. Go to the Actions tab in your repository
  2. Click on the workflow run
  3. Download the playwright-report artifact
  4. Extract and open playwright-report/index.html in your browser

Usage Guidelines

  • Add your test cases in the tests/e2e/ directory.
  • Use the tests/fixtures/test-data.ts file to define any mock data or utility functions needed for your tests.
  • Modify the playwright.config.ts file to adjust settings as necessary.

License

This project is licensed under the MIT License.

目录标签

目录标签

自动化测试TypeScript开发工具本地部署端到端测试持续集成Docker测试多浏览器测试

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

playwright

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP