Borrowing it
Nothing to install: this file belongs to anhtester/claude-testing-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/anhtester/claude-testing-kit/main/.claude/commands/import_test_results_xray.mdgit clone --depth 1 https://github.com/anhtester/claude-testing-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/anhtester/claude-testing-kit/import_test_results_xray)<a href="https://agentmods.dev/commands/anhtester/claude-testing-kit/import_test_results_xray"><img src="https://agentmods.dev/badge/commands/anhtester/claude-testing-kit/import_test_results_xray/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/anhtester/claude-testing-kit/import_test_results_xray"><img src="https://agentmods.dev/badge/commands/anhtester/claude-testing-kit/import_test_results_xray.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.00690 |
| Opus 5.5 | $0.00008 | $0.00276 |
| Sonnet 5.5 | $0.00004 | $0.00138 |
| Haiku 4.5 | $0.00002 | $0.00069 |
Grade A, and why
import_test_results_xray 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 1mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- import_test_results_xray — 95% identical, 6 lines differ
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Workflow: Import Test Results to Xray
BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp và đọc kỹ nội dung của skill
skills-jira-integration(tại.claude/skills/skills-jira-integration/SKILL.md) để biết cách sử dụng scripts trước khi bắt đầu.
Workflow này giúp đẩy kết quả test automation lên Xray (Cloud hoặc Server/Data Center) để tracking trên Jira.
Các bước thực hiện:
-
Kiểm tra prerequisites:
- Đọc skill
skills-jira-integrationđể nắm cấu trúc scripts. - Kiểm tra file
.envđã cấu hình Xray credentials:- Xray Cloud:
XRAY_CLIENT_ID,XRAY_CLIENT_SECRET - Xray Server:
JIRA_PAThoặcJIRA_EMAIL+JIRA_API_TOKEN
- Xray Cloud:
- Kiểm tra
XRAY_PLATFORM(cloud/server) trong.env. - Nếu chưa cài dependencies:
cd scripts/integrations && npm install
- Đọc skill
-
Verify Xray authentication:
node scripts/integrations/jira/xray_auth.js --verify- Nếu thất bại: kiểm tra credentials trong
.env
- Nếu thất bại: kiểm tra credentials trong
-
Xác định report cần import:
- Hỏi user loại report:
- Playwright JSON:
--format playwright --file <path-to-results.json> - JUnit XML:
--format junit --file <path-to-junit.xml> - Xray JSON (đã convert sẵn):
--format xray --file <path-to-xray.json>
- Playwright JSON:
- Xác nhận Project Key (từ
.envhoặc--project)
- Hỏi user loại report:
-
Thực thi import:
# Playwright report node scripts/integrations/jira/xray_importer.js --format playwright --file ./test-results.json --project PROJ # JUnit XML node scripts/integrations/jira/xray_importer.js --format junit --file ./junit-results.xml --project PROJ # Xray JSON node scripts/integrations/jira/xray_importer.js --format xray --file ./xray-payload.json -
Xử lý kết quả:
- Kiểm tra output: Test Execution Key được tạo trên Jira.
- Nếu thành công: thông báo user key của Test Execution mới.
- Nếu thất bại: đọc log → phân tích nguyên nhân → fix → chạy lại.
-
Lưu ý quan trọng:
- Test Key Convention: Test title nên chứa Jira key để Xray mapping tự động:
test('[PROJ-123] Login should work', async ({ page }) => { ... }); - Xray Cloud cần authenticate riêng (Client ID + Secret), khác với Jira auth.
- Rate limit: Tránh import quá nhiều lần liên tiếp.
- Test Key Convention: Test title nên chứa Jira key để Xray mapping tự động:
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.
- 1mo ago First seen · 60 lines · 21 tokens per session scan A d7b05a418cb8
import_test_results_xray is a command published in the GitHub repository anhtester/claude-testing-kit (61 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 690 once invoked, about $0.0001 per session on Opus 5.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-30.
Other commands, from other repositories
case-writing
A command that turns traditional test scenarios into Testany platform cases, including metadata, scripts, and uploadable ZIP packages. It supports API, user-interface, end-to-end, Java, and Postman-based tests.
trigger
A command for starting Testany pipeline runs and configuring how they start. It supports one-time runs, schedules, manual starts, and event-based starts from systems such as Jenkins or GitHub Actions.
playwright-test-heal
Run all my tests and fix the failing ones.
verify-pr
Verify a PR's frontend changes through browser automation.
test-run
Run E2E tests with qa-use CLI.
ui-snapshot.template
This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows.