synapse-hub 0.0.0-stage → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/agents/failure-analyst.md +47 -0
- package/.agents/agents/live-explorer.md +41 -0
- package/.agents/agents/orchestrator.md +43 -0
- package/.agents/agents/pom-crafter.md +81 -0
- package/.agents/agents/quality-gatekeeper.md +47 -0
- package/.agents/agents/test-runner.md +43 -0
- package/.agents/rules/context-engineering.md +88 -0
- package/.agents/rules/git-push-protocol.md +101 -0
- package/.agents/rules/graphify.md +14 -0
- package/.agents/rules/lessons-learned.md +23 -0
- package/.agents/rules/mandatory-playwright-live.md +29 -0
- package/.agents/rules/skill-precedence.md +42 -0
- package/.agents/rules/systematic-debugging.md +99 -0
- package/.agents/skills/agent-orchestration-multi-agent-optimize/SKILL.md +239 -0
- package/.agents/skills/antigravity-test-sentinel/SKILL.md +64 -0
- package/.agents/skills/api-network-mocking-interception/SKILL.md +142 -0
- package/.agents/skills/api-spec-to-e2e-matrix/SKILL.md +70 -0
- package/.agents/skills/architecture-decision-records/SKILL.md +441 -0
- package/.agents/skills/auth-session-and-cookie-manager/SKILL.md +72 -0
- package/.agents/skills/backend-load-and-stress-patterns/SKILL.md +214 -0
- package/.agents/skills/bats-testing-patterns/SKILL.md +100 -0
- package/.agents/skills/bats-testing-patterns/resources/implementation-playbook.md +614 -0
- package/.agents/skills/clean-pom-crafter/SKILL.md +75 -0
- package/.agents/skills/clean-pom-crafter/examples/standard_test_case.groovy +28 -0
- package/.agents/skills/clean-pom-crafter/references/pom_patterns.groovy +138 -0
- package/.agents/skills/code-refactoring-refactor-clean/SKILL.md +64 -0
- package/.agents/skills/code-refactoring-refactor-clean/resources/implementation-playbook.md +879 -0
- package/.agents/skills/db-state-verifier-and-seeder/SKILL.md +123 -0
- package/.agents/skills/e2e-testing-patterns/SKILL.md +103 -0
- package/.agents/skills/e2e-testing-patterns/resources/implementation-playbook.md +522 -0
- package/.agents/skills/failure-autopsy-and-healing/SKILL.md +54 -0
- package/.agents/skills/failure-autopsy-and-healing/references/healing_matrix.md +64 -0
- package/.agents/skills/failure-autopsy-and-healing/references/qa_investigation_protocol.md +56 -0
- package/.agents/skills/failure-autopsy-and-healing/scripts/triage_failures.sh +98 -0
- package/.agents/skills/file-and-report-validator/SKILL.md +90 -0
- package/.agents/skills/flaky-test-sentinel-and-quarantine/SKILL.md +114 -0
- package/.agents/skills/github-actions-templates/SKILL.md +334 -0
- package/.agents/skills/graphify-impact-analyzer/SKILL.md +78 -0
- package/.agents/skills/katalon-cli-runner/SKILL.md +76 -0
- package/.agents/skills/katalon-cli-runner/references/groovy-patterns.md +209 -0
- package/.agents/skills/katalon-cli-runner/references/katalon-api.md +155 -0
- package/.agents/skills/katalon-cli-runner/references/runner_commands.md +67 -0
- package/.agents/skills/lam-script-generator/SKILL.md +83 -0
- package/.agents/skills/playwright-live-interaction/SKILL.md +86 -0
- package/.agents/skills/playwright-live-interaction/references/advanced_superpowers.md +160 -0
- package/.agents/skills/playwright-live-interaction/references/compact_accessibility_snapshots.md +75 -0
- package/.agents/skills/playwright-live-interaction/references/recipes.md +388 -0
- package/.agents/skills/playwright-live-interaction/references/swarm_orchestration.md +134 -0
- package/.agents/skills/security-dast-sentinel/SKILL.md +176 -0
- package/.agents/skills/self-healing-locator/SKILL.md +73 -0
- package/.agents/skills/synthetic-test-data-generator/SKILL.md +135 -0
- package/.agents/skills/token-and-context-optimizer/SKILL.md +70 -0
- package/.agents/skills/visual-regression-sentinel/SKILL.md +62 -0
- package/.agents/skills/wcag-audit-patterns/SKILL.md +77 -0
- package/.agents/skills/wcag-audit-patterns/resources/implementation-playbook.md +541 -0
- package/.agents/skills/web-vitals-and-performance-profiler/SKILL.md +65 -0
- package/.agents/templates/completion_report.md +57 -0
- package/.agents/workflows/graphify.md +10 -0
- package/.agents/workflows/test-impact.md +15 -0
- package/.agents/workflows/verify.md +34 -0
- package/AGENTS.md +115 -0
- package/README.md +394 -2
- package/bin/agent-qa.js +90 -0
- package/package.json +59 -4
- package/skills_manifest.json +262 -0
- package/templates/PROJECT_AI_GUIDE_TEMPLATE.md +97 -0
- package/templates/PROJECT_STATE_TEMPLATE.md +20 -0
- package/tools/TOOLS_RUNBOOK.md +298 -0
- package/tools/agent_canary.py +501 -0
- package/tools/analyze_project.py +242 -0
- package/tools/api_drift_sentinel.py +208 -0
- package/tools/auto_heal.py +189 -0
- package/tools/browser_helpers.js +593 -0
- package/tools/bug_reporter.py +224 -0
- package/tools/cache_resolver.py +846 -0
- package/tools/check_env.py +288 -0
- package/tools/ci_healing_hook.py +128 -0
- package/tools/cli.py +402 -0
- package/tools/config_decoupler.py +253 -0
- package/tools/db_sandbox.py +341 -0
- package/tools/distill_log.py +152 -0
- package/tools/e2e_flow_prober.ps1 +65 -0
- package/tools/flaky_detector.py +222 -0
- package/tools/fuzz_payloads.py +197 -0
- package/tools/generate_allure_report.ps1 +30 -0
- package/tools/generate_api_matrix.py +193 -0
- package/tools/generate_tc_from_story.py +182 -0
- package/tools/generate_test_reports.ps1 +135 -0
- package/tools/git_pre_commit_guard.py +203 -0
- package/tools/heal_pr_automator.py +195 -0
- package/tools/heuristic_locator_matcher.py +202 -0
- package/tools/infer_linter.py +238 -0
- package/tools/lint_ai_docs.py +254 -0
- package/tools/lookup_tc.py +165 -0
- package/tools/lookup_xpath.py +167 -0
- package/tools/matrix_sharder.py +146 -0
- package/tools/mcp_excel_server.ps1 +251 -0
- package/tools/mcp_server.py +490 -0
- package/tools/micro_mutator.py +309 -0
- package/tools/network_mock_shield.py +170 -0
- package/tools/omni_emitter.py +500 -0
- package/tools/omni_parser.py +435 -0
- package/tools/omni_transpiler.py +168 -0
- package/tools/pinpoint_failure.py +88 -0
- package/tools/project_state.py +169 -0
- package/tools/repo_map.json +12 -0
- package/tools/repo_map.py +277 -0
- package/tools/repo_map.txt +7 -0
- package/tools/safety_firewall.py +245 -0
- package/tools/setup_project.py +265 -0
- package/tools/smart_visual_masker.py +134 -0
- package/tools/test_impact.py +321 -0
- package/tools/tms_sync_bridge.py +342 -0
- package/tools/trace_data_flow.py +240 -0
- package/tools/traffic_session_converter.py +256 -0
- package/tools/universal_ir.py +480 -0
- package/tools/validate_groovy_scripts.py +173 -0
- package/tools/verify_all.py +496 -0
- package/tools/verify_all.sh +4 -0
- package/tools/visual_diff_canvas.py +142 -0
- package/tools/visual_som_helper.py +418 -0
- package/tools/wcag_audit.py +214 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# TOOLS RUNBOOK — Automated Tools Handbook for AI Agents
|
|
2
|
+
|
|
3
|
+
> **Standard reference guide for AI Agents (Google Antigravity, Cursor, Claude Code, Windsurf)**
|
|
4
|
+
> Every script in the `tools/` directory has an explicit purpose, CLI syntax, and mandatory dispatch trigger. Guessing syntax is strictly prohibited.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. SITUATIONAL TOOL DISPATCH MATRIX
|
|
9
|
+
|
|
10
|
+
| Practical Agent Context | Required Tool | Typical Execution Command |
|
|
11
|
+
| :--- | :--- | :--- |
|
|
12
|
+
| **Autonomous Bootstrap (New project / "setup project")** | `tools/setup_project.py` | `python tools/setup_project.py [target]` (or `agent-qa setup`).<br/>*Autonomous:* Detects stack, generates `PROJECT_AI_GUIDE.md`, installs `pre-push` Git hook, runs initial audit. |
|
|
13
|
+
| **Comprehensive Health & AST Analysis ("analyze project")** | `tools/analyze_project.py` | `python tools/analyze_project.py [target]` (or `agent-qa analyze`).<br/>*Post-Audit:* Stages, commits, and pushes `PROJECT_HEALTH_REPORT.md` & `repo_map.txt` to project Git. |
|
|
14
|
+
| **Action Safety Firewall (Environment Protection)** | `tools/safety_firewall.py` | `python tools/safety_firewall.py --text "Delete" --action click` (or `agent-qa safety-check`) |
|
|
15
|
+
| **API Contract Drift (Breaking Change Detection)** | `tools/api_drift_sentinel.py` | `python tools/api_drift_sentinel.py --old base.json --new curr.json` (or `agent-qa contract-drift`) |
|
|
16
|
+
| **FastMCP JSON-RPC Server (Cursor/Claude/Antigravity)** | `tools/mcp_server.py` | `python tools/mcp_server.py` (or `agent-qa mcp-serve`) |
|
|
17
|
+
| **AST Micro-Mutation (Assertion Quality Verification)** | `tools/micro_mutator.py` | `python tools/micro_mutator.py [target]` (or `agent-qa mutate`) |
|
|
18
|
+
| **Self-Healing PR Automator (Trace & Visual Diff Proof)** | `tools/heal_pr_automator.py` | `python tools/heal_pr_automator.py --page P.groovy --old "//a" --new "//b" --trace-zip trace.zip` (or `agent-qa heal-pr`) |
|
|
19
|
+
| **Duration-Balanced Matrix Sharder (CI/CD Load Balancing)** | `tools/matrix_sharder.py` | `python tools/matrix_sharder.py [target] --shards 4` (or `agent-qa shard`) |
|
|
20
|
+
| **Enterprise ALM & TMS Sync Bridge (Jira/Xray/TestRail)** | `tools/tms_sync_bridge.py` | `python tools/tms_sync_bridge.py pull PROJ-1042` / `report-bug` |
|
|
21
|
+
| **Zero-Pollution DB Sandbox (Ephemeral Teardown)** | `tools/db_sandbox.py` | `python tools/db_sandbox.py snapshot` / `restore` / `rollback-test` |
|
|
22
|
+
| **Shift-Right Traffic Replay (HAR / RUM to Test)** | `tools/traffic_session_converter.py` | `python tools/traffic_session_converter.py session.har -o test.ts` |
|
|
23
|
+
| **Multimodal Vision Grounding & Zero-Token Cache (SoM)** | `tools/visual_som_helper.py` | `python tools/visual_som_helper.py --image shot.png --component "Submit" --cache-lookup` |
|
|
24
|
+
| **Edge-Case Fuzzing & Input Sanitization Suite** | `tools/fuzz_payloads.py` | `python tools/fuzz_payloads.py --field username --type string` |
|
|
25
|
+
| **Starting task / Querying Page Class methods** | `tools/repo_map.py` | `python tools/repo_map.py` (Reads `tools/repo_map.txt`) |
|
|
26
|
+
| **Pre-Commit / Completing Task** | `tools/verify_all.py` | `python tools/verify_all.py` |
|
|
27
|
+
| **After creating/editing Test Script (Fake-Pass scan)**| `tools/infer_linter.py` | `python tools/infer_linter.py` |
|
|
28
|
+
| **After modifying Page Class (Impact Analysis)** | `tools/test_impact.py` | `python tools/test_impact.py --git-diff` |
|
|
29
|
+
| **When Test FAILS (Pinpoint line & error in 0.1s)** | `tools/pinpoint_failure.py` | `python tools/pinpoint_failure.py` |
|
|
30
|
+
| **When CLI/Gradle logs are verbose (Observation Masking)**| `tools/distill_log.py` | `python tools/distill_log.py <path_to_log>` |
|
|
31
|
+
| **When encountering UI error / Overlay / Stale Element**| `tools/cache_resolver.py` | `python tools/cache_resolver.py query "<error_msg>"` |
|
|
32
|
+
| **Before authoring test for Page/Flow** | `tools/cache_resolver.py` | `python tools/cache_resolver.py get-lessons --context "<page>"` (or `agent-qa heal get-lessons --context "<page>"`) |
|
|
33
|
+
| **After healing a test failure** | `tools/cache_resolver.py` | `python tools/cache_resolver.py record-lesson --context "<page>" --error "<sig>" --lesson "<summary>"` |
|
|
34
|
+
| **Generating test scripts from Natural Language Story** | `tools/generate_tc_from_story.py`| `python tools/generate_tc_from_story.py "<story>"` |
|
|
35
|
+
| **Generating E2E matrix from OpenAPI/Swagger** | `tools/generate_api_matrix.py` | `python tools/generate_api_matrix.py --spec <swagger.json>` |
|
|
36
|
+
| **Auditing Web Accessibility (WCAG 2.2)** | `tools/wcag_audit.py` | `python tools/wcag_audit.py <path_to_html_or_url>` |
|
|
37
|
+
| **0-Token Polyglot Test Transpilation** | `tools/omni_transpiler.py` | `agent-qa transpile <file> --to <target>` (Playwright TS, Python, Java, Katalon, Cypress) |
|
|
38
|
+
| **0-Token Repository Polyglot AST Scan** | `tools/omni_transpiler.py` | `agent-qa omni-scan [path]` (Instant inventory of Pages, Locators, Tests across languages) |
|
|
39
|
+
| **Autonomous Legacy Suite Migration** | `tools/cli.py` | `agent-qa migrate --src ./katalon_project --dest ./playwright_ts` |
|
|
40
|
+
| **Environment & Secret Decoupling Engine** | `tools/config_decoupler.py` | `agent-qa decouple-config [target] --fix` (Extracts env.default.json & .env.example) |
|
|
41
|
+
| **Single Portable Binary Distribution** | `scripts/package_dist.py` | `python scripts/package_dist.py --binary` (Builds standalone omni-qc.exe) |
|
|
42
|
+
| **Autonomous Bug Report & Jira/Allure Ticket** | `tools/bug_reporter.py` | `agent-qa report-bug --title "<title>" --error "<msg>"` |
|
|
43
|
+
| **API Network Mocking & Chaos Shield** | `tools/network_mock_shield.py` | `agent-qa mock-shield --preset payment_success` |
|
|
44
|
+
| **Smart Visual Masking (Anti-Flake)** | `tools/smart_visual_masker.py` | `agent-qa visual-mask --playwright-snippet` |
|
|
45
|
+
| **CI/CD Silent Self-Healing Hook & Auto-PR** | `tools/ci_healing_hook.py` | `agent-qa ci-hook --file <f> --old-loc <old> --new-loc <new>` |
|
|
46
|
+
| **Checking DB data leaks (Taint Analysis)** | `tools/trace_data_flow.py` | `python tools/trace_data_flow.py` |
|
|
47
|
+
| **Detecting Canvas / GIS Map visual regression** | `tools/visual_diff_canvas.py` | `python tools/visual_diff_canvas.py --baseline <b> --actual <a>` |
|
|
48
|
+
| **Canary Self-Healing Audit** | `tools/agent_canary.py` | `python tools/agent_canary.py --run` |
|
|
49
|
+
| **Lookup XPath Locator in cached memory** | `tools/lookup_xpath.py` | `python tools/lookup_xpath.py "<keyword>"` |
|
|
50
|
+
| **Lookup Test Case metadata** | `tools/lookup_tc.py` | `python tools/lookup_tc.py "<keyword_or_id>"` |
|
|
51
|
+
| **Linting Markdown documentation quality** | `tools/lint_ai_docs.py` | `python tools/lint_ai_docs.py` |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 2. DETAILED TOOL USAGE
|
|
56
|
+
|
|
57
|
+
### 1. `tools/generate_api_matrix.py`
|
|
58
|
+
- **Purpose:** Ingests OpenAPI / Swagger JSON schemas and automatically computes comprehensive E2E test matrices: Positive, Boundary Value (min/max length, special characters, XSS payloads), and Negative (invalid types, missing required fields).
|
|
59
|
+
- **CLI Syntax:**
|
|
60
|
+
```bash
|
|
61
|
+
# Generate Markdown matrix
|
|
62
|
+
python tools/generate_api_matrix.py --spec path/to/swagger.json --format md -o api_matrix.md
|
|
63
|
+
|
|
64
|
+
# Generate JSON matrix
|
|
65
|
+
python tools/generate_api_matrix.py --spec path/to/swagger.json --format json -o api_matrix.json
|
|
66
|
+
|
|
67
|
+
# Generate sample matrix using built-in schema
|
|
68
|
+
python tools/generate_api_matrix.py --sample
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### 2. `tools/wcag_audit.py`
|
|
74
|
+
- **Purpose:** Automated Web Accessibility auditor checking WCAG 2.2 Level A and AA criteria (missing alt tags, unlabeled form controls, table header structure, heading hierarchy gaps H1-H6, empty action buttons).
|
|
75
|
+
- **CLI Syntax:**
|
|
76
|
+
```bash
|
|
77
|
+
# Audit local HTML snapshot
|
|
78
|
+
python tools/wcag_audit.py path/to/page.html -o wcag_report.md
|
|
79
|
+
|
|
80
|
+
# Audit live URL directly
|
|
81
|
+
python tools/wcag_audit.py https://staging.example.com/dashboard --url -o wcag_report.md
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### 3. `tools/verify_all.py`
|
|
87
|
+
- **Purpose:** Supreme Definition of Done (DoD) verification gate running all 8 Quality Gates (including AST Micro-Mutation >= 80%) prior to completing tasks or git commits. Supports dual operational modes (`hub` vs `target`) and dynamic target project resolution.
|
|
88
|
+
- **CLI Syntax:**
|
|
89
|
+
```bash
|
|
90
|
+
# Auto-detection (automatically targets CWD if inside a test project, otherwise falls back to QA Hub)
|
|
91
|
+
python tools/verify_all.py
|
|
92
|
+
|
|
93
|
+
# Target a specific test project repository (positional or --repo / --path)
|
|
94
|
+
python tools/verify_all.py "D:/katalon-project"
|
|
95
|
+
python tools/verify_all.py --repo "D:/katalon-project"
|
|
96
|
+
|
|
97
|
+
# Explicit mode execution
|
|
98
|
+
python tools/verify_all.py --mode hub # QA Hub integrity validation
|
|
99
|
+
python tools/verify_all.py --mode target # Enterprise target test suite validation
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### 4. `tools/infer_linter.py`
|
|
105
|
+
- **Purpose:** AST static code analyzer detecting Fake-Pass anti-patterns (test cases without assertions or containing empty try-catch blocks swallowing errors).
|
|
106
|
+
- **CLI Syntax:**
|
|
107
|
+
```bash
|
|
108
|
+
python tools/infer_linter.py
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
### 5. `tools/test_impact.py`
|
|
114
|
+
- **Purpose:** Analyzes `git diff` against codebase dependency graphs to identify the exact subset of affected test cases, preventing redundant suite execution.
|
|
115
|
+
- **CLI Syntax:**
|
|
116
|
+
```bash
|
|
117
|
+
python tools/test_impact.py --git-diff
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### 6. `tools/pinpoint_failure.py`
|
|
123
|
+
- **Purpose:** Extracts failing line numbers, exception names, and stack traces from JUnit XML reports in 0.1s without opening heavy files.
|
|
124
|
+
- **CLI Syntax:**
|
|
125
|
+
```bash
|
|
126
|
+
python tools/pinpoint_failure.py
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
### 7. `tools/distill_log.py`
|
|
132
|
+
- **Purpose:** Distills verbose CLI / KRE / Gradle logs by 95%, extracting only actionable exceptions, failing lines, and file pointers to prevent token degradation.
|
|
133
|
+
- **CLI Syntax:**
|
|
134
|
+
```bash
|
|
135
|
+
python tools/distill_log.py path/to/execution.log
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
### 8. `tools/cache_resolver.py`
|
|
141
|
+
- **Purpose:** Queries SQLite error cache (`tools/memory_cache.db`) via cosine similarity or pattern match for 0-token instant defect resolution.
|
|
142
|
+
- **CLI Syntax:**
|
|
143
|
+
```bash
|
|
144
|
+
python tools/cache_resolver.py query "ElementClickInterceptedException"
|
|
145
|
+
python tools/cache_resolver.py add --pattern "Timeout waiting for primeNG" --fix "BasePage.waitForAngular()"
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### 9. `tools/generate_tc_from_story.py`
|
|
151
|
+
- **Purpose:** Large Action Model (LAM) parser converting natural language acceptance criteria into Clean POM script scaffolds.
|
|
152
|
+
- **CLI Syntax:**
|
|
153
|
+
```bash
|
|
154
|
+
python tools/generate_tc_from_story.py "User navigates to login, inputs valid credentials, and verifies dashboard table loaded"
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
### 10. `tools/visual_diff_canvas.py`
|
|
160
|
+
- **Purpose:** Pixel-level and SSIM perceptual comparison for GIS / Canvas elements lacking standard DOM locators.
|
|
161
|
+
- **CLI Syntax:**
|
|
162
|
+
```bash
|
|
163
|
+
python tools/visual_diff_canvas.py --baseline baseline.png --actual actual.png --diff diff.png
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### 11. `tools/analyze_project.py`
|
|
169
|
+
- **Purpose:** Comprehensive 5-in-1 Project Health & AST Intelligence Suite. Aggregates environment checks (`check_env`), Page Class AST mapping (`repo_map`), Static Defect Sentinel (`infer_linter`), Teardown Data Flow (`trace_data_flow`), and 8 Quality Gates (`verify_all`). Generates `reports/PROJECT_HEALTH_REPORT.md` and synchronizes all AI data context in < 1 second.
|
|
170
|
+
- **Trigger:** Whenever user says: "analyze project", "re-analyze project", "audit project", or during initial project onboarding.
|
|
171
|
+
- **CLI Syntax:**
|
|
172
|
+
```bash
|
|
173
|
+
# Analyze current working directory or QA Hub
|
|
174
|
+
python tools/analyze_project.py
|
|
175
|
+
# Or use CLI shortcut
|
|
176
|
+
agent-qa analyze
|
|
177
|
+
|
|
178
|
+
# Analyze specific target project
|
|
179
|
+
python tools/analyze_project.py "D:/katalon-project"
|
|
180
|
+
python tools/analyze_project.py --repo "D:/katalon-project"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
### 12. `tools/tms_sync_bridge.py`
|
|
187
|
+
- **Purpose:** Bi-directional Enterprise ALM Bridge connecting autonomous agents with Jira, Xray, and TestRail. Pulls Given-When-Then Acceptance Criteria from User Stories to seed tests, and automatically creates Bug Tickets with complete reproduction steps and screenshot attachments upon test failure.
|
|
188
|
+
- **CLI Syntax:**
|
|
189
|
+
```bash
|
|
190
|
+
# Pull Acceptance Criteria from Jira Story
|
|
191
|
+
python tools/tms_sync_bridge.py pull PROJ-1042
|
|
192
|
+
|
|
193
|
+
# Create Bug Ticket with repro steps and failure screenshots
|
|
194
|
+
python tools/tms_sync_bridge.py report-bug --project BILLING --tc-id TC-01 --summary "Payment failed" --error "Timeout" --screenshot "Screenshots/FAILED_TC-01.png"
|
|
195
|
+
|
|
196
|
+
# Sync execution batch to Xray Test Plan
|
|
197
|
+
python tools/tms_sync_bridge.py sync-run --plan-key XRAY-PLAN-1 --json
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
### 13. `tools/db_sandbox.py`
|
|
203
|
+
- **Purpose:** Zero-Pollution Database Sandbox and Ephemeral Teardown Engine. Takes pristine database baseline snapshots, instantly restores clean states (< 0.1s), runs tests inside transactional savepoints (automatic rollback), and audits/purges orphan test data junk.
|
|
204
|
+
- **CLI Syntax:**
|
|
205
|
+
```bash
|
|
206
|
+
# Snapshot database before suite execution
|
|
207
|
+
python tools/db_sandbox.py snapshot --id baseline
|
|
208
|
+
|
|
209
|
+
# Restore pristine clean database after suite execution
|
|
210
|
+
python tools/db_sandbox.py restore --id baseline
|
|
211
|
+
|
|
212
|
+
# Execute SQL statements inside an isolated transaction savepoint (auto-rollback)
|
|
213
|
+
python tools/db_sandbox.py rollback-test
|
|
214
|
+
|
|
215
|
+
# Audit database for orphan test junk and purge
|
|
216
|
+
python tools/db_sandbox.py audit
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
### 14. `tools/traffic_session_converter.py`
|
|
223
|
+
- **Purpose:** Shift-Right production traffic and user session converter. Converts recorded `.har` files or RUM network traces into executable Playwright test scripts, automatically sanitizing PII (passwords, tokens, credit cards) and eliminating static noise.
|
|
224
|
+
- **CLI Syntax:**
|
|
225
|
+
```bash
|
|
226
|
+
# Convert HAR file into Playwright test script
|
|
227
|
+
python tools/traffic_session_converter.py prod_session.har -o tests/e2e_replay.spec.ts
|
|
228
|
+
|
|
229
|
+
# Output parsed network requests as JSON
|
|
230
|
+
python tools/traffic_session_converter.py prod_session.har --json
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
### 15. `tools/visual_som_helper.py`
|
|
236
|
+
- **Purpose:** Multimodal Vision Grounding and Set-of-Marks (SoM) fallback engine. When standard DOM locators fail on HTML5 Canvas, WebGL, or deeply nested Shadow DOM, it overlays numbered bounding box badges on screenshots, resolves target coordinates `(x, y)`, and dispatches physical Playwright mouse clicks (`await page.mouse.click(x, y)`).
|
|
237
|
+
- **CLI Syntax:**
|
|
238
|
+
```bash
|
|
239
|
+
# Generate Set-of-Marks overlay and resolve target coordinates
|
|
240
|
+
python tools/visual_som_helper.py --image screenshot.png --label "Execute Trade"
|
|
241
|
+
|
|
242
|
+
# Resolve specific Mark ID
|
|
243
|
+
python tools/visual_som_helper.py --image screenshot.png --mark-id 3 --json
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
### 16. `tools/omni_transpiler.py`
|
|
249
|
+
- **Purpose:** Universal Polyglot AST Engine & Cross-Framework Transpiler. Allows a single QA engineer to parse, inventory, and transpile test automation code across Java (Selenium), TypeScript (Playwright), Python, Groovy (Katalon Clean POM), and Cypress in 0 tokens without network calls or LLM hallucinations.
|
|
250
|
+
- **CLI Syntax:**
|
|
251
|
+
```bash
|
|
252
|
+
# Transpile legacy Java Selenium Page Object into Playwright TypeScript
|
|
253
|
+
agent-qa transpile src/test/java/pages/LoginPage.java --to playwright-ts --out src/
|
|
254
|
+
|
|
255
|
+
# Transpile Katalon Groovy script into Selenium Java
|
|
256
|
+
agent-qa transpile Keywords/pages/CheckoutPage.groovy --to selenium-java
|
|
257
|
+
|
|
258
|
+
# 0-Token Polyglot AST Inventory of entire repository (regardless of language)
|
|
259
|
+
agent-qa omni-scan .
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
### 17. `tools/bug_reporter.py`
|
|
265
|
+
- **Purpose:** Auto-Bug Reporter & Root Cause Analysis (RCA) Ticket Generator. Automatically distinguishes AUT bugs (server 500, JS exceptions) from test maintenance issues, distills stack traces, formats reproduction steps, and exports ready-to-paste Jira markup or GitHub Markdown.
|
|
266
|
+
- **CLI Syntax:**
|
|
267
|
+
```bash
|
|
268
|
+
agent-qa report-bug --title "Checkout payment fails" --error "500 Internal Server Error" --format jira
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
### 18. `tools/network_mock_shield.py`
|
|
274
|
+
- **Purpose:** API Network Mocking & Chaos Shield Generator. Generates zero-token route interception code and chaos fault injection (Stripe/VNPAY payment success/fail, 401/403 auth, 500 server crash, network latency) for Playwright, Cypress, and Python.
|
|
275
|
+
- **CLI Syntax:**
|
|
276
|
+
```bash
|
|
277
|
+
agent-qa mock-shield --preset payment_success --url "**/api/checkout"
|
|
278
|
+
agent-qa mock-shield --preset server_crash_500 --delay 2000
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
### 19. `tools/smart_visual_masker.py`
|
|
284
|
+
- **Purpose:** Smart Visual Masker & Anti-Flake Engine. Eliminates 99% of false alarms in visual regression testing by disabling CSS animations, freezing SVG spinners, and masking dynamic timestamps, clocks, and avatars.
|
|
285
|
+
- **CLI Syntax:**
|
|
286
|
+
```bash
|
|
287
|
+
agent-qa visual-mask --playwright-snippet
|
|
288
|
+
agent-qa visual-mask --css
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
### 20. `tools/ci_healing_hook.py`
|
|
294
|
+
- **Purpose:** CI/CD Silent Self-Healing Pipeline Hook. Executes inside GitHub Actions / GitLab CI when a locator fails, applies in-place auto-heal, and generates an automated Pull Request draft with diff and confidence score.
|
|
295
|
+
- **CLI Syntax:**
|
|
296
|
+
```bash
|
|
297
|
+
agent-qa ci-hook --file LoginPage.ts --old-loc "//button[@id='old']" --new-loc "//button[@id='new']"
|
|
298
|
+
```
|