testrail is a Playwright-focused skill for syncing TestRail cases and runs. It imports TestRail cases into annotated Playwright tests and pushes JSON reporter results back to TestRail using required credentials and MCP tools.

Stars22.1k
Favorites0
Comments0
AddedJul 11, 2026
CategoryTest Automation
Install Command
npx skills add alirezarezvani/claude-skills --skill testrail
Curation Score

This skill scores 68/100, which means it is acceptable for directory listing but should be presented with caveats. It gives agents a recognizable TestRail workflow for importing cases into Playwright and pushing Playwright results back to TestRail, with clear environment prerequisites and MCP tool names. However, it is a single SKILL.md with no supporting scripts, references, install instructions, or deeper configuration guidance, so users should expect to adapt it to their existing TestRail/MCP setup.

68/100
Strengths
  • Clear triggerability: the frontmatter explicitly names TestRail-related phrases such as "testrail", "test cases", "test run", "push results to testrail", and "import from testrail".
  • Useful operational workflow: it describes bidirectional sync, including importing TestRail cases into Playwright tests and pushing Playwright JSON results back to a TestRail run.
  • Concrete prerequisites and mappings: it names required environment variables and specifies status mappings such as pass to status_id 1, fail to status_id 5, and skip to status_id 2.
Cautions
  • Adoption depends on external MCP tools such as `testrail_get_cases` and `testrail_add_result`, but the repository evidence does not include scripts or references documenting those tools.
  • There is no install command, README, support files, or examples beyond the SKILL.md workflow, so setup and edge-case handling may require guesswork.
Overview

Overview of testrail skill

What the testrail skill does

The testrail skill helps an AI coding agent connect Playwright test automation with TestRail test management. Its core job is bidirectional sync: importing TestRail cases into Playwright test files, and pushing Playwright execution results back to a TestRail run.

Best fit for Test Automation teams

Use this testrail skill if your team already manages manual or planned coverage in TestRail and wants faster conversion into Playwright tests. It is especially useful for QA engineers, SDETs, and automation maintainers who need consistent TestRail case IDs preserved in automated tests so reporting stays traceable.

What makes this skill different

A generic prompt can generate Playwright tests, but it may forget the TestRail linkage that makes automation useful for reporting. This skill explicitly expects TestRail case data, maps titles, preconditions, steps, and expected results into Playwright structure, and stores the case ID as a Playwright annotation such as testrail: C12345.

Adoption requirements to check first

The skill depends on TestRail access and MCP tools for TestRail operations. Before install, confirm you can provide TESTRAIL_URL, TESTRAIL_USER, and TESTRAIL_API_KEY. If those are missing, the correct behavior is to stop and configure credentials rather than generate disconnected tests.

How to Use testrail skill

testrail install and first files to inspect

Install the skill from the repository with:

npx skills add alirezarezvani/claude-skills --skill testrail

Then inspect the source skill file first:

engineering-team/playwright-pro/skills/testrail/SKILL.md

This repository path matters because the skill is part of a Playwright-focused engineering skill set. There are no visible companion scripts/, references/, or resources/ folders in the provided file tree, so most operating rules are concentrated in SKILL.md.

Configure TestRail before invoking the skill

Set the required environment variables in the environment where your agent or automation session runs:

  • TESTRAIL_URL, for example https://your-instance.testrail.io
  • TESTRAIL_USER, usually your TestRail email
  • TESTRAIL_API_KEY, generated from TestRail

For import workflows, the skill expects access to a testrail_get_cases MCP tool. For result publishing, it expects testrail_add_result. If your AI environment does not expose those tools, the testrail usage will be limited to planning, code generation, or local parsing rather than true sync.

Prompt the skill with project, suite, and run IDs

A weak prompt is: “Import our TestRail cases.” A stronger prompt gives the IDs and target conventions:

“Use the testrail skill to import TestRail project 12, suite 34, and generate Playwright tests under tests/e2e/checkout/. Preserve TestRail case IDs as annotations, group files by TestRail section, and use our existing page object style from tests/pages/.”

For pushing results, include the run ID and result file location:

“Use testrail to push Playwright results to TestRail run 567. The JSON report is test-results.json. Map results using test.info().annotations where type is testrail.”

For import, call the skill with a command pattern like /pw:testrail import --project <id> --suite <id>. Review generated tests before committing, because TestRail steps may be too manual, vague, or UI-dependent for immediate automation.

For result publishing, first run Playwright with JSON output:

npx playwright test --reporter=json > test-results.json

Then call the push workflow using /pw:testrail push --run <id>. The skill maps Playwright statuses to TestRail status IDs: pass to 1, fail to 5, and skip to 2, including failure details where available.

testrail skill FAQ

Is testrail only for Playwright?

This specific testrail skill is written for Playwright workflows. Its import path generates Playwright tests, and its result push path expects Playwright JSON reporting plus Playwright annotations. If you use Cypress, Selenium, or pytest, the concepts may transfer, but the skill will need adaptation.

Can beginners use this testrail guide effectively?

Yes, if they already understand basic TestRail projects, suites, cases, and runs. Beginners may struggle if they do not know where to find project IDs, suite IDs, or run IDs. The skill is not a TestRail tutorial; it is a practical bridge between TestRail and Playwright automation.

When should I not use this skill?

Do not use it when you only need one-off test generation without TestRail reporting. Also avoid it if your TestRail cases are outdated, duplicated, or written as broad exploratory charters; importing low-quality cases can create brittle Playwright tests. Clean the source cases first or import only selected sections.

How is this better than ordinary prompts?

Ordinary prompts often produce plausible tests but lose traceability. The testrail skill encodes the important integration details: fetch cases, convert fields into tests, annotate case IDs, parse Playwright JSON, and push status results back to the correct TestRail run.

How to Improve testrail skill

Give testrail cleaner source data

The best results come from TestRail cases with clear preconditions, atomic steps, and explicit expected results. If a case says “verify checkout works,” the agent must invent too much. If it lists setup state, UI actions, test data, and expected confirmation behavior, generated Playwright code will be more reviewable.

Strengthen prompts with local test conventions

Tell the skill where tests live, how fixtures are named, whether your project uses page objects, and how authentication is handled. For example: “Use test.extend fixtures from fixtures/auth.ts, avoid hard-coded waits, and place generated specs beside existing checkout tests.” This reduces refactoring after import.

Watch for common failure modes

Common issues include missing TestRail environment variables, unavailable MCP tools, TestRail cases without automatable steps, and Playwright tests missing testrail annotations. The last issue is critical: without the annotation, push cannot reliably map automated results back to TestRail case IDs.

Iterate after the first generated output

After the first import, review one generated file per TestRail section before scaling up. Ask the agent to normalize naming, split oversized tests, replace manual assertions with locator-based checks, and ensure every test carries the correct C case ID. For result push, test with a small TestRail run before publishing a full regression suite.

Ratings & Reviews

No ratings yet
Share your review
Sign in to leave a rating and comment for this skill.
G
0/10000
Latest reviews
Saving...