Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

webapp_testingWeb 应用测试

Agent Skill

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

总安装

233

周安装

10

GitHub Stars

42

下载量

82
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vuralserhat86/antigravity-agentic-skills --skill webapp_testing

简介

用于辅助 Web 应用测试用例设计和自动化验证。

  • 适合编写单元测试、端到端测试或分析失败日志。
  • 使用时需确认项目测试框架和运行命令。webapp_testing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 涉及浏览器或外部服务时应区分模拟环境和生产环境。
  • 避免为了通过测试而破坏真实业务逻辑。

SKILL.md

Web Application Testing

To test local web applications, write native Python Playwright scripts.

Helper Scripts Available:

  • scripts/with_server.py - Manages server lifecycle (supports multiple servers)

Always run scripts with --help first to see usage. DO NOT read the source until you try running the script first and find that a customized solution is abslutely necessary. These scripts can be very large and thus pollute your context window. They exist to be called directly as black-box scripts rather than ingested into your context window.

Decision Tree: Choosing Your Approach

User task → Is it static HTML?
    ├─ Yes → Read HTML file directly to identify selectors
    │         ├─ Success → Write Playwright script using selectors
    │         └─ Fails/Incomplete → Treat as dynamic (below)
    │
    └─ No (dynamic webapp) → Is the server already running?
        ├─ No → Run: python scripts/with_server.py --help
        │        Then use the helper + write simplified Playwright script
        │
        └─ Yes → Reconnaissance-then-action:
            1. Navigate and wait for networkidle
            2. Take screenshot or inspect DOM
            3. Identify selectors from rendered state
            4. Execute actions with discovered selectors

Example: Using with_server.py

To start a server, run --help first, then use the helper:

Single server:

python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py

Multiple servers (e.g., backend + frontend):

python scripts/with_server.py \
  --server "cd backend && python server.py" --port 3000 \
  --server "cd frontend && npm run dev" --port 5173 \
  -- python your_automation.py

To create an automation script, include only Playwright logic (servers are managed automatically):

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(headless=True) # Always launch chromium in headless mode
    page = browser.new_page()
    page.goto('http://localhost:5173') # Server already running and ready
    page.wait_for_load_state('networkidle') # CRITICAL: Wait for JS to execute
    # ... your automation logic
    browser.close()

Reconnaissance-Then-Action Pattern

  1. Inspect rendered DOM: page.screenshot(path='/tmp/inspect.png', full_page=True) content = page.content() page.locator('button').all()
  2. Identify selectors from inspection results
  3. Execute actions using discovered selectors

Common Pitfall

Don't inspect the DOM before waiting for networkidle on dynamic apps ✅ Do wait for page.wait_for_load_state('networkidle') before inspection

🔄 Workflow

Kaynak: Playwright Python Documentation & Testing Hybrid Web Apps (2025)

Aşama 1: Environment & Reconnaissance

  • Server Management: scripts/with_server.py --server "..." kullanarak test ortamını (Frontend/Backend) otomatik ayağa kaldır.
  • DOM Inspection: networkidle state'ine ulaştıktan sonra page.content() ve screenshot ile selector analizi yap.
  • Selector Strategy: Kararlı testler için role, text veya test-id bazlı selector'ları belirle.

Aşama 2: Scripting & Automation

  • Action Chain: Playwright API kullanarak tıklama, form doldurma ve navigasyon adımlarını kodla.
  • Assertion Logic: expect() metodlarıyla sayfa başlığı, element görünürlüğü veya URL doğruluğunu kontrol et.
  • Visual Testing: Arayüz tutarlılığı için Snapshot karşılaştırmaları (screenshot audit) yap.

Aşama 3: Debug & Reporting

  • Log Audit: Tarayıcı konsol çıktılarını (Console logs) ve ağ hatalarını (Failed requests) incele.
  • Trace Analysis: Başarısız testler için Playwright Trace Viewer kullanarak adım adım hata ayıklama yap.
  • CI/CD Alignment: Testlerin headless modda ve sürekli entegrasyon hattında sorunsuz çalıştığını doğrula.

Kontrol Noktaları

AşamaDoğrulama
1Sunucu port çakışmaları ve timeout değerleri optimize edildi mi?
2Dinamik içerikler için wait_for_selector kullanıldı mı?
3Test verileri (Mock data) her koşumda temizleniyor mu?

*Webapp Testing v2.0 - With Workflow*

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

Claude Code

27.07%
按下载量换算22

trae

24.13%
按下载量换算20

Antigravity

17.28%
按下载量换算14

windsurf

12.17%
按下载量换算10

Codex

8.87%
按下载量换算7

Gemini CLI

3.76%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills