tcm-case-management
БесплатноБез исполняемых скриптовНе проверенUse for any question or task about managing test cases in TestRail, Xray, Zephyr Scale, Allure TestOps or Qase, including organizing suites, importing cases…
от testland★ 18 звёзд на GitHubОб этом скилле
tcm-case-management
Overview
Every mainstream TCM stores the same canonical case anatomy
(test-case-anatomy-reference: identifier, objective, preconditions, steps,
expected results, traceability) under different field names, containers, and
auth models. The workflow is identical across tools:
- Authenticate with the platform's token scheme.
- Create the container hierarchy (suite / section / folder).
- Create cases with structured steps (one action + one expected result per step).
- Discover tenant-specific enums (types, priorities, custom fields) at runtime.
- Link cases to requirements for traceability.
- List with pagination; bulk-import with idempotency and verification.
- Sync from CI.
This skill works that workflow end to end using TestRail (the largest install base) as the primary example, then routes the per-vendor API deltas to references/.
Differentiation vs result sync: this skill operates on the case
repository - create, update, organise, traceability - a strictly
pre-execution concern. Posting test-run results (pass/fail, status updates)
is the qa-test-reporting plugin's test-management-sync / test-management-sync
/ test-management-sync surface.
When to use
- Creating cases from a spec / requirement / acceptance criterion.
- Bulk-importing legacy cases from CSV / Excel.
- Migrating between TCM instances or tools (see also
tcm-migration-agent). - Programmatic case updates (mass-edit type, priority, tags).
- Case-repository quality scans (pair with
test-case-quality-critic).
Vendor routing table
| Vendor | Reference | Auth | Case container | Steps shape | Distinctive feature |
|---|---|---|---|---|---|
| TestRail | references/testrail.md | HTTP Basic (email + API key) | project → suite → section | custom_steps_separated array (Steps template) |
Template system (Steps / Text / Exploratory); refs free-text requirement links |
| Xray (Jira) | references/xray.md | OAuth client credentials → JWT (separate from Jira auth) | Jira issue with issuetype: Test |
GraphQL steps (action / data / result) |
Manual / Cucumber / Generic test types; .feature import; preconditions as linked issues |
| Zephyr Scale (Jira) | references/zephyr-scale.md | Bearer token (per-user) | project → folder | separate /teststeps endpoint, OVERWRITE / APPEND modes |
Folder hierarchy per entity type; Jira-native links |
| Allure TestOps | references/allure-testops.md | Bearer token | project → suite + layer + feature | nested scenario.steps (sub-steps) |
Links automated allure-results back to manual cases (@allure.testcase) |
| Qase | references/qase-io.md | Token header (not Authorization) |
project → suite | flat steps array (action / expected_result / data) |
Shared steps reused across cases; inverted priority enum (1=High) |
Each reference carries the vendor's auth setup, create / update / list code, bulk-import loop, migration field map, response shapes, rate limits, and anti-patterns.
The workflow, worked with TestRail
TestRail organises tests as cases inside sections inside suites inside
projects. The API v2 covers full CRUD on each plus templates, custom
fields, references, and types. Authentication is HTTP Basic with email + API
key per the TestRail support docs
(support.testrail.com/hc/en-us/articles/7077871398036-Cases -
Cloudflare-protected, cite by stable URL).
Step 1 - Authenticate
export TR_BASE="https://your-tenant.testrail.io"
export TR_EMAIL="[email protected]"
export TR_KEY="<api-key-from-user-profile>"
import requests, base64, os, json
auth = base64.b64encode(
f"{os.environ['TR_EMAIL']}:{os.environ['TR_KEY']}".encode()
).decode()
HEADERS = {
"Authorization": f"Basic {auth}",
"Content-Type": "application/json",
}
BASE = os.environ["TR_BASE"]
def api(path, method="GET", body=None):
url = f"{BASE}/index.php?/api/v2/{path.lstrip('/')}"
r = requests.request(method, url, headers=HEADERS,
data=json.dumps(body) if body else None)
r.raise_for_status()
return r.json()
Step 2 - Create a case with structured steps
POST /index.php?/api/v2/add_case/:section_id:
def create_case(section_id, title, template_id=1, type_id=1, priority_id=2,
preconditions=None, steps=None, refs=None):
"""
template_id: 1=Steps, 2=Text, 3=Exploratory
type_id: per project - discover via get_case_types
priority_id: 1=Low, 2=Medium, 3=High, 4=Critical (default project enum)
steps: list of {"content": "Action", "expected": "Outcome"}
refs: comma-separated requirement IDs (e.g., "REQ-123,REQ-124")
"""
body = {
"title": title,
"template_id": template_id,
"type_id": type_id,
"priority_id": priority_id,
}
if preconditions:
Установить tcm-case-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tcm-case-management?
Use for any question or task about managing test cases in TestRail, Xray, Zephyr Scale, Allure TestOps or Qase, including organizing suites, importing cases from CSV or JSON, linking them to requirements and migrating between tools without losing steps: writing cases from a spec, steps with expected results and mass edits. Pushing run results is test-management-sync.
Как установить скилл tcm-case-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tcm-case-management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic