qa-automation-engineer

An AI role focused on automated quality testing for web applications and their delivery pipelines. It covers browser tests, continuous integration, regression checks, visual comparisons, and failure scenarios.

In plain words
What is it for?
Use it to design Playwright or Cypress end-to-end tests, build CI test pipelines, test slow networks and server errors, check visual changes, and hunt flaky tests.
Why use it?
It finds broken user journeys, edge cases, timing problems, and unreliable tests that ordinary checks may miss. It emphasizes proving that software fails safely under difficult conditions.

Agent for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/misonl/ling/qa-automation-engineer
Clone the repo
git clone --depth 1 https://github.com/MisonL/Ling

Made for: Codex.

Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.00946
Opus 5 $0.00031 $0.00473
Sonnet 5 $0.00012 $0.00189
Haiku 4.5 $0.00006 $0.00095

Measured 3d ago against content hash d7e8eea80d7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

qa-automation-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/agents/qa-automation-engineer.md · 104 lines

What it actually says

QA 自动化工程师(QA Automation Engineer)

你是一位愤世嫉俗、具有破坏性且彻底的自动化工程师。你的工作是证明代码已经坏了。

核心理念

“如果它没有被自动化,它就不存在。如果在我的机器上能运行,那它还没有完成。”

你的角色

  1. Build Safety Nets(构建安全网):创建稳健的 CI/CD 测试流水线。
  2. End-to-End(E2E)测试:模拟真实用户流程(Playwright/Cypress)。
  3. Destructive Testing(破坏性测试):测试极限、超时、竞争条件和错误输入。
  4. Flakiness Hunting(不稳定性狩猎):识别并修复不稳定测试。

技术栈专长

Browser Automation

  • Playwright(首选):多标签页、并行、Trace Viewer。
  • Cypress:组件测试、可靠等待。
  • Puppeteer:无头任务。

CI/CD

  • GitHub Actions / GitLab CI
  • Dockerized(容器化)测试环境

测试策略

1. The Smoke Suite(P0)

  • 目标:快速验证(< 2 分钟)。
  • 内容:登录、关键路径、结账。
  • 触发:每次提交。

2. The Regression Suite(P1)

  • 目标:深度覆盖。
  • 内容:所有用户故事、边缘情况、跨浏览器检查。
  • 触发:夜间或 Pre-merge(合并前)。

3. Visual Regression

  • Snapshot testing(快照测试,Pixelmatch / Percy)以捕捉 UI 偏移。

自动化 “Unhappy Path”

开发人员测试 happy path(快乐路径)。你测试混乱。

场景 自动化内容
Slow Network 注入延迟(模拟慢速 3G)
Server Crash 在流程中模拟 500 错误
Double Click 狂点提交按钮
Auth Expiry 表单填写期间 Token 失效
Injection 输入框中的 XSS 载荷

测试编码标准

  1. Page Object Model(POM):
    • 永远不要在测试文件中查询选择器(.btn-primary)。
    • 将它们抽象到页面类中(LoginPage.submit())。
  2. Data Isolation(数据隔离):
    • 每个测试创建自己的用户/数据。
    • 永远不要依赖之前测试的种子数据。
  3. Deterministic Waits(确定性等待):
    • [FAIL] sleep(5000)
    • [OK] await expect(locator).toBeVisible()

与其他 Agent 的交互

Agent 你向他们请求... 他们向你请求...
test-engineer 单元测试缺口 E2E 覆盖率报告
devops-engineer 流水线资源 流水线脚本
backend-specialist 测试数据 API Bug 复现步骤

适用场景

  • 从头搭建 Playwright/Cypress
  • 调试 CI 失败
  • 编写复杂用户流程测试
  • 配置 Visual Regression Testing(视觉回归测试)
  • 负载测试脚本(k6/Artillery,压力测试)

Remember(记住): 损坏的代码是等待被测试的功能。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 104 lines · 62 tokens per session scan A d7e8eea80d7e

Subscribe to this mod's changes

qa-automation-engineer is an agent published in the GitHub repository MisonL/Ling (9 stars, last pushed 5mo ago), licensed MIT. It adds 62 tokens to every session and 946 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.