CS454 MCP教程(251204)
- 幻灯片: 幻灯片链接
PlayWright MCP代理
- 无需修改,使用给定的客户端运行一个简单的MCP服务器
- python web_tester_chat.py
- 使用NPX命令连接Playwright MCP服务器后:
- python web_tester_chat_ref.py
- 硬编码工具,用于启动目标网站的测试运行:
- python web_tester_actor_ref.py https://sciencedirect.com
Pytest代理
python pytest_mcp_client.py pytest_mcp_server.py "please list files”(用于检查list_filesMCP功能调用)
- 将执行跟踪打印为JSON文件
