agentleFS
katalon-labskatalon-labs/true-skills/.agents/skills/upload-report/SKILL.md

upload-report

Skill10 starsChanged 5 months agoMITView on GitHub

Uploads finished Katalon Studio, JUnit XML, or Playwright reports to Katalon True Platform (formerly TestOps) and verifies that the run landed with matching counts. Use when a report folder or XML file already sits on disk, an auto-upload failed, or Katalon Test Execution - Local (formerly KRE) must run first. Not for a Playwright suite that has not run (playwright-execute) or Run with AI (execute-test). For the automation tester.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. About 0 are common, 13 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/capability-boundaries.md when tool availability is unclear.

    line 28
  2. Distinctive:

    Test target, only when you run tests.

    line 37
  3. Distinctive:

    Never ask the user to paste a secret into chat.

    line 41
  4. Distinctive:

    If the MCP is not connected, continue only when every CLI input is present.

    line 49
  5. Very specific:

    If unclear, look for .prj, playwright.config.*, or XML files before you ask.

    line 56
  6. Distinctive:

    Do not turn Playwright output into JUnit unless JUnit is all the user has.

    line 58
  7. Distinctive:

    Check the tool exists: Katalon CLI, Java, or Node and the package manager.

    line 62
  8. Distinctive:

    Check the source paths exist.

    line 63
  9. Very specific:

    Use a report folder that belongs to this run.

    line 64
  10. Distinctive:

    Check the files are JUnit XML, not Playwright HTML or traces.

    line 91
  11. Very specific:

    Run the uploader with --type=junit.

    line 93
  12. Distinctive:

    Verify the run (see below).

    line 94
  13. Very specific:

    Check Node, @playwright/test, and the Playwright config.

    line 98
  14. Very specific:

    Check @katalon/playwright-reporter is installed.

    line 99
  15. Very specific:

    Use a fixed outputDir, usually ./reports.

    line 100
  16. Distinctive:

    Keep screenshots, videos, and traces as attachments.

    line 102
  17. Very specific:

    If the Playwright run has not happened yet, use playwright-execute.

    line 105
  18. Distinctive:

    Keep stdout and stderr. Hide secrets before you quote them.

    line 110
  19. Distinctive:

    If the run fails before any report exists, report that and skip verification.

    line 114
  20. Very specific:

    Read references/verify-upload.md.

    line 118
  21. Very specific:

    Wait for import, then find the new execution with list_executions.

    line 120
  22. Very specific:

    Read it with read_execution and find_test_results (filter_type: "EXECUTION").

    line 121
  23. Distinctive:

    If upload failed and local files exist, state the manual upload path.

    line 126
  24. Distinctive:

    Follow-up: missing key, import failure, manual upload.

    line 136

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Katalon Upload Report

This skill gets a local test report into Katalon True Platform and proves it arrived. The MCP discovers projects and reads the result. A local tool does the upload: the Katalon CLI, Report Uploader, or the Playwright reporter.

MCP clients can add a prefix to tool names (Claude Code uses mcp__<server>__<tool>). This skill uses bare names.

Boundary

  • The MCP can list projects and repositories, list and read executions, and read results with find_test_results. It cannot upload a report file.
  • It cannot inspect the live AUT UI, create requirements, or run Katalon CLI for you.
  • Katalon Test Execution - Local (formerly KRE) runs Studio suites. With an API key, organization ID, and project ID set, it uploads results by itself.
  • Report Uploader sends Studio and JUnit reports. Its type values are katalon, junit, and katalon_recorder.
  • @katalon/playwright-reporter uploads Playwright data during npx playwright test, or later with playwright-reporter upload.
  • A repeat upload of the same test-reports batch (same finished batch, same file list) can return HTTP 200 and store nothing. As of November 2026 the fix is not shipped. A 200 is not proof. Verify that the run appears (see below). To upload again, send new or changed report files.
  • Katalon Test Execution - Local (formerly KRE) takes -retry=<n> and -retryStrategy. See references/cli-report-upload.md.

Read references/capability-boundaries.md when tool availability is unclear. Read references/cli-report-upload.md before you write any command. Read references/write-policy.md before an install, a download, or an upload.

Inputs

Resolve each value from the repo or the environment first. Ask only for what is still missing.

  • Report type: katalon, junit, or playwright.
  • Mode: run now, upload an existing report, or verify a report that should already be there.
  • Report path: Studio report folder, JUnit file or folder, or Playwright reporter output directory.
  • Test target, only when you run tests.
  • Katalon API key, from an environment variable or secret store.
  • Platform project ID. Organization ID for Studio runs. A server URL only for a non-default environment.

Never ask the user to paste a secret into chat.

Platform context

  1. Call list_projects.
  2. Call list_repositories.
  3. Match the project to the project ID in use.

If the MCP is not connected, continue only when every CLI input is present. Say that platform verification is not possible in this session.

Choose the flow

  1. The repo has @playwright/test, or the user says Playwright: Playwright flow.
  2. The user has JUnit XML, or says JUnit: JUnit flow.
  3. The user has a Studio report folder or a .prj target: Katalon flow.
  4. If unclear, look for .prj, playwright.config.*, or XML files before you ask.

Do not turn Playwright output into JUnit unless JUnit is all the user has. JUnit loses some Playwright attachments and metadata.

Preflight

  1. Check the tool exists: Katalon CLI, Java, or Node and the package manager.
  2. Check the source paths exist.
  3. Use a report folder that belongs to this run. Do not delete Reports/, test-results/, or playwright-report/.
  4. Show every command with secrets hidden.

Katalon flow

Studio runs from the command line need Katalon Test Execution - Local (formerly KRE), a separately licensed runtime. Command shape:

katalonc -noSplash -runMode=console \
  -projectPath="<project.prj>" \
  -testSuitePath="Test Suites/<suite>" \
  -executionProfile="<profile>" \
  -browserType="<browser>" \
  -apiKey="$KATALON_API_KEY" \
  -orgID="<org_id>" \
  -testOpsProjectId="<project_id>" \
  --config \
  -webui.autoUpdateDrivers=true \
  -report.folderPath="<run_report_folder>"

-report.folderPath is the current flag from Katalon Studio 11.1.2. -reportFolder is deprecated from that version. Use -report.folderPath unless the project is pinned below 11.1.2, and say which one you used.

For an existing report folder where auto-upload did not run, use Report Uploader with --type=katalon. See references/cli-report-upload.md.

JUnit flow

  1. Check the files are JUnit XML, not Playwright HTML or traces.
  2. Resolve the Report Uploader jar. Do not guess a version. Follow "Resolve the Report Uploader jar" in references/cli-report-upload.md.
  3. Run the uploader with --type=junit. Use the API key as the password value.
  4. Verify the run (see below).

Playwright flow

  1. Check Node, @playwright/test, and the Playwright config.
  2. Check @katalon/playwright-reporter is installed. Install it only when the user allows dependency changes.
  3. Use a fixed outputDir, usually ./reports.
  4. Upload during the run (KATALON_API_KEY and KATALON_PROJECT_ID set), or later with playwright-reporter upload.
  5. Keep screenshots, videos, and traces as attachments.
  6. Verify the run.

If the Playwright run has not happened yet, use playwright-execute.

Run and collect

  1. Run the command.
  2. Keep stdout and stderr. Hide secrets before you quote them.
  3. Find the report folder. Note logs, XML, HTML, screenshots, videos, and traces.
  4. Record local counts from the report files: total, passed, failed, errors, skipped.

If the run fails before any report exists, report that and skip verification.

Verify the upload

Read references/verify-upload.md. In short:

  1. Wait for import, then find the new execution with list_executions.
  2. Read it with read_execution and find_test_results (filter_type: "EXECUTION").
  3. Compare the platform counts with the local counts.

A count of zero, or a count that differs from the local report, is unverified. This holds even when the CLI printed success.

If upload failed and local files exist, state the manual upload path. Do not say the upload worked.

Report back

  • Report type, command status (secrets hidden), and local report folder.
  • Upload status: verified, importing, failed, or not verifiable.
  • Platform run link, when returned.
  • Counts for passed, failed, skipped, blocked, and errors, local and platform side by side.
  • Failed tests with a short reason.
  • Artifacts made.
  • Follow-up: missing key, import failure, manual upload.

Local automation finishing is not completion. The task ends with a verified upload or a clear reason it could not be verified.

For failures, hand off to analyze-failures.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.