自动化测试工具

使用Playwright进行API和UI自动化测试的工具,适用于软件开发中的测试流程。

  • by RahulVarma23
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 RahulVarma23/mcp-playwright-trial

使用说明

剧作家MCP审判

这个项目演示了使用Playwright的API和UI自动化。

结构

  • tests/api/ -API测试(GET、PUT、DELETE等)
  • tests/ui/ -UI自动化测试
  • playwright.config.ts -剧作家配置
  • test-results/ -测试输出

运行测试

安装依赖项:

npm install

运行所有测试:

npx playwright test

运行特定测试:

npx playwright test tests/api/petstore-api.spec.ts

添加API自动化

  • 在中添加新的API测试 tests/api/.
  • 示例端点:petstore API的GET、PUT、DELETE。

资源