剧作家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。
