Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

e2e-test-automation端到端测试自动化

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

233

周安装

10

GitHub Stars

3

下载量

82
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:e2e-test-automation(端到端测试自动化)
来源仓库:https://github.com/oldwinter/skills
仓库路径:skills/e2e-test-automation
安装命令:
npx skills add https://github.com/oldwinter/skills --skill e2e-test-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oldwinter/skills --skill e2e-test-automation

简介

自动化执行 Web 应用的端到端测试,支持 Chrome/Chromium 浏览器控制。

  • 可解析 Markdown 格式测试用例,捕获截图与视频并生成详细报告。
  • 集成 Cursor 内置浏览器能力,实现无缝测试流程与结果反馈。
  • 需提前准备测试规范文件,注意权限与资源占用问题。
  • e2e-test-automation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

E2E Test Automation

Overview

Automate end-to-end testing for web applications by launching Chrome/Chromium browser, executing predefined test cases, capturing evidence (screenshots/videos), and generating detailed test reports. This skill integrates with Cursor's built-in browser capabilities and MCP browser servers to provide seamless automated testing.

Core Capabilities

1. Test Case Management

  • Parse test case specifications from markdown files
  • Support structured test case format with operation steps, expected results, and common issues
  • Organize test cases by priority (P0, P1, P2) and category (functional, performance, usability)

2. Automated Browser Testing

  • Launch Chrome/Chromium browser automatically using MCP browser servers
  • Execute test cases sequentially with clear logging
  • Support login/authentication flows
  • Handle dynamic content loading and async operations
  • Capture screenshots for each critical step

3. Intelligent Validation

  • Verify expected outcomes against actual results
  • Detect common issues: timeouts, missing elements, incorrect content, broken links
  • Identify UX problems and potential bugs
  • Validate performance metrics (loading time < 60s, etc.)

4. Comprehensive Reporting

  • Generate structured test reports in markdown format
  • Include pass/fail status, execution time, and failure reasons
  • Attach screenshots for failed cases
  • Highlight bugs and UX issues with severity levels
  • Provide recommendations for fixes

Workflow

Step 1: Load Test Cases

Read test case specifications from the provided markdown file or reference. Test cases should follow this structure:

## Test Case Title
- 操作步骤 (Operation Steps)
  - Step 1
  - Step 2
- 预期反馈 (Expected Results)
  - Expected outcome 1
  - Expected outcome 2
- 常见问题 (Common Issues)
  - Known issue 1
  - Known issue 2

If no test cases are provided, use the default test suite from references/default_test_cases.md.

Step 2: Prepare Test Environment

  1. Check if browser MCP servers are available:

- cursor-browser-extension - cursor-ide-browser

  1. Launch browser using the appropriate MCP server tools
  2. If test requires authentication:

- Navigate to login page - Input credentials (from test specification or user prompt) - Verify successful login

Step 3: Execute Test Cases

For each test case:

  1. Navigate to target page

- Log the navigation action - Wait for page load completion

  1. Execute operation steps

- Follow each step in the test case - Handle dynamic elements (wait for visibility) - Capture screenshot after critical operations

  1. Validate expected results

- Check each expected outcome - Measure performance metrics (if specified) - Record actual vs expected differences

  1. Detect common issues

- Check for known problems listed in test case - Identify UX problems (confusing UI, missing feedback, etc.) - Note any unexpected behaviors

  1. Record results

- Status: PASS / FAIL / WARNING - Execution time - Failure reason (if failed) - Screenshots (if failed or warning) - Bug severity: CRITICAL / HIGH / MEDIUM / LOW

Step 4: Generate Test Report

Create a comprehensive test report with the following sections:

# E2E Test Execution Report

## Test Summary
- Test URL: [URL]
- Test Account: [Account]
- Total Cases: [N]
- Passed: [N]
- Failed: [N]
- Warnings: [N]
- Execution Time: [Duration]
- Test Date: [Timestamp]

## Test Environment
- Browser: Chrome/Chromium
- Test Tool: Cursor MCP Browser
- Test Executor: [Executor Name]

## Detailed Results

### ✅ Passed Cases ([N])
[List of passed cases with brief description]

### ❌ Failed Cases ([N])
#### Case: [Test Case Title]
- **Status**: FAIL
- **Execution Time**: [Duration]
- **Failure Reason**: [Detailed reason]
- **Expected**: [What was expected]
- **Actual**: [What actually happened]
- **Screenshot**: [Path or embedded image]
- **Bug Severity**: [CRITICAL/HIGH/MEDIUM/LOW]
- **Recommendation**: [How to fix]

### ⚠️ Warning Cases ([N])
[Cases that passed but have UX issues or concerns]

## Bugs and Issues Summary

### Critical Issues ([N])
1. [Issue description with case reference]

### High Priority Issues ([N])
1. [Issue description with case reference]

### Medium Priority Issues ([N])
1. [Issue description with case reference]

### Low Priority Issues ([N])
1. [Issue description with case reference]

## UX Feedback
[General UX observations and improvement suggestions]

## Recommendations
[Overall recommendations for improving quality]

Step 5: Cleanup

  • Close browser instances
  • Save screenshots to appropriate directory
  • Archive test artifacts

Usage Examples

Example 1: Run all test cases from specification

User: "根据 @e2e-test.md 的测试用例,自动执行所有测试并生成报告"

Actions:

  1. Read test cases from e2e-test.md
  2. Launch browser and navigate to test URL
  3. Login with provided credentials
  4. Execute all 28 test cases sequentially
  5. Generate comprehensive test report

Example 2: Run specific test categories

User: "只运行 Chat 相关的测试用例"

Actions:

  1. Parse test cases and filter for Chat category
  2. Execute filtered test cases
  3. Generate focused report for Chat functionality

Example 3: Quick smoke test

User: "执行 P0 优先级的测试用例"

Actions:

  1. Filter for P0 priority cases (from case-p0/p0.md)
  2. Execute critical path tests
  3. Generate quick validation report

Test Case Format

Test cases should be provided in markdown format following this structure:

测试网址:[URL]
测试账号密码:[username] / [password]

---

1. [Test Case Title]
- 操作步骤
  - [Step 1]
  - [Step 2]
- 预期反馈
  - [Expected result 1]
  - [Expected result 2]
- 常见问题
  - [Common issue 1]
  - [Common issue 2]

Performance Metrics

The skill automatically validates common performance requirements:

  • Page load time < 60s
  • Search/query response time < 60s
  • Export/download completion < 30s
  • No console errors during critical operations

Error Handling

When test execution encounters errors:

  1. Timeout errors: Capture screenshot, log timeout duration, mark as FAIL
  2. Element not found: Capture DOM snapshot, suggest possible selectors, mark as FAIL
  3. Assertion failures: Log expected vs actual, capture screenshot, mark as FAIL
  4. Unexpected errors: Full error stack, screenshot, mark as FAIL with CRITICAL severity

Browser Compatibility

Primary browser: Chrome/Chromium (via Cursor MCP browser servers)

If MCP browser servers are not available, the skill can alternatively:

  • Use Playwright for browser automation
  • Use Selenium WebDriver
  • Guide user to install required dependencies

Resources

references/

  • default_test_cases.md: Template and default test cases
  • test_report_template.md: Standard report format
  • browser_selectors.md: Common CSS selectors for web elements

scripts/

  • execute_tests.py: Main test execution engine (Python)
  • browser_automation.py: Browser control utilities
  • report_generator.py: Test report generation
  • screenshot_capture.py: Screenshot and evidence capture

assets/

  • test_report_styles.css: Styling for HTML reports
  • icons/: Status icons (pass/fail/warning)

Integration with Cursor

This skill leverages Cursor's built-in capabilities:

  1. MCP Browser Servers: Use cursor-browser-extension or cursor-ide-browser for browser automation
  2. File System: Save test reports and screenshots to workspace
  3. Terminal: Execute test scripts in background if needed
  4. Markdown Preview: Display test reports directly in Cursor

Best Practices

  1. Test Isolation: Each test case should be independent and not rely on previous test state
  2. Explicit Waits: Use explicit waits for dynamic content, avoid hard-coded sleeps
  3. Clear Assertions: Each validation should have a clear expected vs actual comparison
  4. Evidence Collection: Always capture screenshots for failures
  5. Descriptive Failures: Failure messages should help developers quickly identify root cause
  6. Performance Monitoring: Track and report slow operations even if they pass
  7. UX Observations: Note confusing UI/UX even in passing tests

Limitations

  • Requires working internet connection for web application testing
  • MCP browser servers must be available or Playwright/Selenium installed
  • Cannot test mobile-specific behaviors (mobile browser simulation only)
  • Limited support for testing file uploads/downloads (workarounds available)
  • Cannot bypass CAPTCHA or advanced bot detection automatically

Troubleshooting

MCP browser not available: Run: pip install playwright && playwright install chromium

Element selectors not working: Check references/browser_selectors.md for recommended selector strategies

Tests timing out: Increase timeout thresholds in test case specifications or use more specific waits

Screenshots not capturing: Verify write permissions in workspace directory

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.41%
按下载量换算31

Claude

27.25%
按下载量换算22

Cursor

18.71%
按下载量换算15

Gemini CLI

8.42%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills