test-execution

Executes test cases via API, headless Playwright, and read-only browser exploration with defect reporting.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/zhoulingxiao1216/testworkspace --skill test-execution-zhoulingxiao1216
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-execution
Source: https://github.com/zhoulingxiao1216/testworkspace/tree/main/.agent/skills/test-execution
Command: npx skills add https://github.com/zhoulingxiao1216/testworkspace --skill test-execution-zhoulingxiao1216

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, requests, sshtunnel, pymysql.

What problem does it solve? Manually executing large test suites is slow, error-prone, and disruptive to the user's desktop. This Skill automates structured test case execution in a silent background architecture, producing consistent execution reports, defect records, and screenshot evidence without taking over the user's keyboard or mouse. ## Core Features & Use Cases - Three-Layer Silent Execution Engine: Routes each test case to API Direct (data checks), Playwright Headless (UI verification), or read-only browser exploration based on a decision tree, with an optional interactive diagnostic layer. - Self-Healing & Safety Protocols: Includes environment pre-checks (E1 gate), IP-block self-rescue via admin whitelist, automatic test data setup, snapshot-execute-restore for config changes, and a gated DB mock-seed channel with audit logging. - Structured Deliverables: Generates dated execution reports, defect lists with severity/category taxonomy (Critical to Low; Functional, Visual, Console, UX, Content, Accessibility), Playwright reproduction scripts, and organized screenshot evidence. - Use Case: Given a handoff manifest of 80 test cases for a membership system, the Skill pre-checks the environment, queues cases by priority, executes them headlessly in batches with checkpointing, and outputs a full execution report plus a defect list with root-cause hypotheses. ## Quick Start Execute all test cases in the handoff manifest and generate the execution report and defect list.

Frequently Asked Questions about test-execution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate test case execution with Playwright?▼

Generate Python Playwright scripts with headless=True for each UI test case, embedding page.screenshot() for evidence and page.on("console") for error capture. Run them via the terminal and record pass/fail results against expected outcomes.

How to choose between API testing and UI testing for a test case?▼

Use API-level verification when a case only checks data state, since it is faster and more stable. Use headless browser execution when the case validates frontend rendering, interaction feedback, or visual behavior.

Can automated tests run without taking over my mouse and keyboard?▼

Yes. Headless Playwright runs browsers in the background without visible windows, and API calls execute in the terminal. A visible browser is only opened for read-only exploration of new pages, with prior user notification.

What happens when test execution is blocked by missing test data?▼

The runner attempts automatic data setup through business APIs first, then headless UI, then a gated database mock-seed channel restricted to test environments and whitelisted tables. Only if all channels fail is the case marked Blocked-DATA.

How are defects classified in automated test reports?▼

Defects are rated by severity (Critical, High, Medium, Low) and categorized as Functional, Visual, Console, UX, Content, or Accessibility. Each record includes reproduction steps, screenshots, and a root-cause hypothesis.

Why should environment blockers be separated from product defects?▼

Environment issues like unreachable services or IP blocks are not application bugs, so mixing them inflates defect counts and misleads developers. They are tracked separately as Blocked-ENV with recovery conditions noted in the report.