UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

上次更新日期 2026年5月7日

uip tm result

uip tm result downloads execution artifacts in a structured, CI-friendly format. Today it has one verb, which writes a JUnit XML file — the lingua franca consumed by most CI test dashboards (Azure DevOps, Jenkins, GitLab, CircleCI).

Synopsis

uip tm result download --execution-id <uuid> (--project-key <key> | --test-set-key <key>) [--result-path <path>]
uip tm result download --execution-id <uuid> (--project-key <key> | --test-set-key <key>) [--result-path <path>]

All verbs honor the global options and the standard exit codes. Every verb accepts -t, --tenant <name> and --log-level <level> (default Information).

uip tm result download

Download the results of a single test execution as a JUnit XML report. The command:

  1. Fetches the execution's stats, test set name, and test set ID.
  2. Pages through every test case log attached to the execution.
  3. For each log, fetches the per-assertion artifacts in parallel (assertion lookup failures are logged and skipped, not fatal).
  4. Fetches the test set's package list (best-effort — missing packages are silently omitted).
  5. Serializes everything as JUnit XML and writes it to --result-path.

Link and web-URL fields inside the XML point back to the Test Manager web UI using the organization slug and tenant name of the current session.

Arguments: none.

Options:

  • --execution-id <uuid> (required) — execution to download.
  • --project-key <key> — owning project. Either this or --test-set-key is required.
  • --test-set-key <key> — test set key (e.g. DEMO:42); the project key is derived from the prefix.
  • --result-path <path> — output location. Can be a file (./junit.xml) or a directory (the file is named after the test set). Defaults to the current working directory.

示例

uip tm result download \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --result-path ./junit.xml
uip tm result download \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --result-path ./junit.xml

Data shape:

{
  "Code": "ResultDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Format": "junit",
    "OutputPath": "./junit.xml",
    "TotalTests": 10,
    "Passed": 8,
    "Failed": 2,
    "Cancelled": 0
  }
}
{
  "Code": "ResultDownload",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Format": "junit",
    "OutputPath": "./junit.xml",
    "TotalTests": 10,
    "Passed": 8,
    "Failed": 2,
    "Cancelled": 0
  }
}

The actual JUnit XML is written to OutputPath. The JSON envelope only reports success plus summary counts.

备注:

The output format is fixed to JUnit XML today. Format is included in the envelope so that future versions can add more formats (for example, NUnit or TRX) without a breaking change to the shape.

Using the output in CI

Publish the XML file with whatever test-reporter task your CI provides. Typical patterns:

# Azure DevOps
- task: PublishTestResults@2
  inputs:
    testResultsFormat: JUnit
    testResultsFiles: junit.xml
# Azure DevOps
- task: PublishTestResults@2
  inputs:
    testResultsFormat: JUnit
    testResultsFiles: junit.xml
# GitHub Actions (via a community action)
- uses: dorny/test-reporter@v1
  with:
    name: Test Manager
    path: junit.xml
    reporter: java-junit
# GitHub Actions (via a community action)
- uses: dorny/test-reporter@v1
  with:
    name: Test Manager
    path: junit.xml
    reporter: java-junit
  • testset execute — produces the ExecutionId consumed here.
  • wait — block until the execution is in a terminal state before downloading results.
  • report — a human-readable summary (same data, different shape) if you do not need JUnit XML.
  • attachment — download the screenshots, logs, and files produced by test case logs.

另请参阅

  • Synopsis
  • uip tm result download
  • Using the output in CI
  • Related
  • 另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新