浏览器自动化测试工具

Playwright是一个用于浏览器自动化的测试工具,支持多浏览器测试和生成Allure报告。

  • by alagamai
  • HTML
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 alagamai/playwright-pom-auto-generated-by-ai-agent-mcp

使用说明

Playwright 项目

此仓库包含一个最小化的 Playwright Test 设置。

试试看:

# install dependencies
npm install

# install browsers
npx playwright install

# run tests
npm test

# view html report
npm run test:report

Allure reporting (macOS):

Install the Allure CLI (recommended via Homebrew):

```bash
# install brew if you don't have it: https://brew.sh/
brew install allure

运行测试后,生成并打开Allure报告:

# run tests (this will create allure-results via the allure-playwright reporter)
npm test

# generate the HTML report
npm run allure:generate

# open the report in your browser
npm run allure:open