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

automation-testing-en自动化测试 en

Agent Skill

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

总安装

259

周安装

11

GitHub Stars

39

下载量

91
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/naodeng/awesome-qa-skills --skill automation-testing-en

简介

用于辅助测试设计、自动化测试、用例整理和回归验证,适合编写单元测试、端到端测试或分析失败日志。

  • 使用时需确认项目测试框架、运行命令和夹具数据,避免为通过测试而破坏真实逻辑。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,支持多种输出格式如 Markdown、JSON、CSV 等。
  • 涉及浏览器或外部服务时应区分本地模拟、测试环境与生产环境,确保操作安全。
  • automation-testing-en 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Automation Testing (English)

中文版: See skill automation-testing.

Prompt: this directory's prompts/automation-testing_EN.md.

When to Use

  • User mentions automation testing, automation-testing
  • Need to execute this testing type or produce deliverables per Standard-version
  • Trigger examples: "Generate/design/write automation test cases for the following"

Output Format Options

Markdown by default. For Excel / CSV / JSON, add at the end of your request; see output-formats.md.

How to Use

  1. Open the relevant file in this directory's prompts/ and copy the content below the dashed line.
  2. Append your requirements and context (business flow, environment, constraints, acceptance criteria).
  3. If you need non-Markdown output, append the request sentence from output-formats.md at the end.

Code Examples

1. Selenium + Page Object Model (Python)

Complete POM design pattern implementation with login, product management functionality tests.

Location: ../automation-testing/examples/selenium-pom-python/

Includes:

  • Complete Page Object Model architecture
  • Base page class (BasePage)
  • Login page, home page objects
  • 15+ test cases
  • Pytest configuration and fixtures
  • Auto-screenshot functionality
  • HTML test reports

Quick Start:

cd examples/selenium-pom-python
pip install -r requirements.txt
pytest

Test Coverage:

  • Login functionality (valid/invalid credentials, locked users)
  • Product list display
  • Shopping cart operations (add/remove items)
  • Product sorting functionality
  • Parameterized tests

See: examples/selenium-pom-python/README.md

2. Playwright (TypeScript)

Coming soon - Modern web automation with Playwright framework.

3. Cypress (JavaScript)

Coming soon - Frontend-focused E2E testing with Cypress.

Best Practices

Automation Test Design Principles

  1. Test Pyramid

- Unit tests (70%): Fast, stable, low cost - Integration tests (20%): Test module interactions - UI tests (10%): End-to-end business workflows

  1. Page Object Model (POM)

- Encapsulate page elements and operations in page classes - Test cases focus only on business logic - Improve code reuse and maintainability

  1. Wait Strategies

- Avoid fixed waits (time.sleep) - Use explicit waits (WebDriverWait) - Set reasonable implicit wait times

  1. Test Data Management

- Use configuration files for test data - Use fixtures to provide test data - Clean up data after tests

  1. Test Independence

- Each test should run independently - Don't depend on other tests' execution order - Use setup/teardown to manage test environment

Tool Selection Guide

ToolUse CaseAdvantages
SeleniumWeb UI automationCross-browser, multi-language support
PlaywrightModern web appsFast, stable, multi-browser
CypressFrontend developersEasy to use, live reload, debug-friendly
AppiumMobile appsCross-platform, native/hybrid apps
Robot FrameworkKeyword-drivenReadable, non-technical friendly

POM Design Pattern Best Practices

# ✅ Good practice
class LoginPage(BasePage):
    # Element locators as class constants
    USERNAME_INPUT = (By.ID, "username")

    def login(self, username, password):
        # Method returns self for method chaining
        self.enter_username(username)
        self.enter_password(password)
        self.click_login()
        return self

# ❌ Bad practice
class LoginPage:
    def login(self, username, password):
        # Hardcoded locators
        driver.find_element(By.ID, "username").send_keys(username)
        # Assertions in page class
        assert driver.find_element(By.ID, "welcome").is_displayed()

Common Pitfalls

  • ❌ Automating unstable or unclear requirements first → ✅ Prioritize stable, high-value workflows for automation
  • ❌ Overusing brittle UI selectors → ✅ Prefer resilient locators and shared selector conventions
  • ❌ Mixing test logic with environment setup everywhere → ✅ Centralize setup/teardown and reusable fixtures
  • ❌ Ignoring flaky-test tracking → ✅ Record flaky patterns and fix root causes before scaling coverage

Troubleshooting

Detailed troubleshooting steps were moved to references/troubleshooting.md. Load it on demand to keep the main skill concise.

Reference Files

  • prompts/automation-testing_EN.md — Automation testing Standard-version prompt
  • output-formats.md — Markdown / Excel / CSV / JSON request instructions
  • examples/selenium-pom-python/ — Complete Selenium + POM example
  • quick-start.md — 5-minute quick start guide

Related skills: api-testing-en, functional-testing-en, test-case-writing-en, performance-testing-en.

Target Audience

  • QA engineers and developers executing this testing domain in real projects
  • Team leads who need structured, reproducible testing outputs
  • AI users who need fast, format-ready deliverables for execution and reporting

Not Recommended For

  • Pure production incident response without test scope/context
  • Decisions requiring legal/compliance sign-off without expert review
  • Requests lacking minimum inputs (scope, environment, expected behavior)

Critical Success Factors

  • Provide clear scope, environment, and acceptance criteria before generation
  • Validate generated outputs against real system constraints before execution
  • Keep artifacts traceable (requirements -> test points -> defects -> decisions)

Output Templates and Parsing Scripts

  • Template directory: output-templates/

- template-word.md (Word-friendly structure) - template-excel.tsv (Excel paste-ready) - template-xmind.md (XMind-friendly outline) - template-json.json - template-csv.csv - template-markdown.md

  • Parser scripts directory: scripts/

- Parse (generic): parse_output_formats.py - Parse (per-format): parse_word.py, parse_excel.py, parse_xmind.py, parse_json.py, parse_csv.py, parse_markdown.py - Convert (generic): convert_output_formats.py - Convert (per-format): convert_to_word.py, convert_to_excel.py, convert_to_xmind.py, convert_to_json.py, convert_to_csv.py, convert_to_markdown.py - Batch convert: batch_convert_templates.py (outputs into artifacts/)

Examples:

python3 scripts/parse_json.py output-templates/template-json.json
python3 scripts/parse_markdown.py output-templates/template-markdown.md
python3 scripts/convert_to_json.py output-templates/template-markdown.md
python3 scripts/convert_output_formats.py output-templates/template-json.json --to csv
python3 scripts/batch_convert_templates.py --skip-same

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.22%
按下载量换算33

Claude

30.64%
按下载量换算28

Cursor

17.81%
按下载量换算16

Gemini CLI

9.75%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills