UiPath Documentation
uipath-cli
latest
false
重要 :
このコンテンツは機械翻訳によって処理されています。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

UiPath CLI ユーザー ガイド

UIP TM テストセット

テスト セットを管理するuip tm testsets: Test Manager で実行可能な単位です。テスト セットは、1 つのコマンドとして起動され、1 つの実行として追跡される、順序付けられたテスト ケースのグループです。すべての testsets run 呼び出しは、他の uip tm動詞 (waitexecutionsreportresultattachment) が入力として受け取るExecutionIdを返します。

概要

uip tm testsets create --project-key <key> --name <name> [--description <text>]
uip tm testsets list --project-key <key> [--filter <text>]
uip tm testsets update --project-key <key> --test-set-key <key> [--name <name>] [--description <text>]
uip tm testsets delete --project-key <key> --test-set-key <key> [-y]
uip tm testsets list-testcases --project-key <key> --test-set-key <key> [--limit <n>] [--offset <n>]
uip tm testsets run --project-key <key> --test-set-key <key> --execution-type <type> [--async]
uip tm testsets create --project-key <key> --name <name> [--description <text>]
uip tm testsets list --project-key <key> [--filter <text>]
uip tm testsets update --project-key <key> --test-set-key <key> [--name <name>] [--description <text>]
uip tm testsets delete --project-key <key> --test-set-key <key> [-y]
uip tm testsets list-testcases --project-key <key> --test-set-key <key> [--limit <n>] [--offset <n>]
uip tm testsets run --project-key <key> --test-set-key <key> --execution-type <type> [--async]

すべての動詞は、 グローバルオプション と標準 終了コードを尊重します。すべての動詞は -t, --tenant <name>--log-level <level> を受け入れます(デフォルト Information)。

uip tm testsets create

プロジェクトに空のテスト セットを作成します。

引数

設定はありません。

オプション

  • --project-key <key> (必須) — プロジェクトを所有しています。
  • --name <name> (必須) — テスト セット名。
  • --description <text> — 自由形式の説明。既定値は空です。

uip tm testsets create \
  --project-key DEMO \
  --name "Smoke Suite" \
  --description "Core smoke tests"
uip tm testsets create \
  --project-key DEMO \
  --name "Smoke Suite" \
  --description "Core smoke tests"

データシェイプ

{
  "Code": "TestSetCreate",
  "Data": {
    "TestSetKey": "DEMO:10",
    "Name": "Smoke Suite",
    "Description": "Core smoke tests"
  }
}
{
  "Code": "TestSetCreate",
  "Data": {
    "TestSetKey": "DEMO:10",
    "Name": "Smoke Suite",
    "Description": "Core smoke tests"
  }
}

uip tm テストセットのリスト

プロジェクト内のテスト セットのリストを取得します。

引数

設定はありません。

オプション

  • --project-key <key> (必須) — リストするプロジェクト。
  • --filter <text> — サーバーサイドで名前を検索します。

uip tm testsets list --project-key DEMO --filter smoke
uip tm testsets list --project-key DEMO --filter smoke

データシェイプ

{
  "Code": "TestSetsList",
  "Data": [
    {
      "TestSetKey": "DEMO:10",
      "Name": "Smoke Suite",
      "Id": "a1b2c3d4-0000-0000-0000-000000000010"
    }
  ]
}
{
  "Code": "TestSetsList",
  "Data": [
    {
      "TestSetKey": "DEMO:10",
      "Name": "Smoke Suite",
      "Id": "a1b2c3d4-0000-0000-0000-000000000010"
    }
  ]
}

Id は内部 UUID です — executions list --test-set-idで必要です。

UIP TM テストセットの更新

テスト セットの名前を変更するか、テスト セットの説明を変更します。--nameまたは--descriptionのうち少なくとも1つを指定する必要があります。

引数

設定はありません。

オプション

  • --project-key <key> (必須) — プロジェクトを所有しています。
  • --test-set-key <key> (必須) — テスト セットのキー (例: DEMO:10)。
  • --name <name> — 新しい名前。
  • --description <text> — 新しい説明。

uip tm testsets update \
  --project-key DEMO \
  --test-set-key DEMO:10 \
  --name "Smoke Suite (2026)"
uip tm testsets update \
  --project-key DEMO \
  --test-set-key DEMO:10 \
  --name "Smoke Suite (2026)"

データシェイプ

{
  "Code": "TestSetUpdate",
  "Data": {
    "TestSetKey": "DEMO:10",
    "Name": "Smoke Suite (2026)",
    "Description": "Core smoke tests",
    "Result": "Updated"
  }
}
{
  "Code": "TestSetUpdate",
  "Data": {
    "TestSetKey": "DEMO:10",
    "Name": "Smoke Suite (2026)",
    "Description": "Core smoke tests",
    "Result": "Updated"
  }
}

uip tm テストセットの削除

テスト セットをキーで削除する

引数

設定はありません。

オプション

  • --project-key <key> (必須) — プロジェクトを所有しています。
  • --test-set-key <key> (必須) — テスト セットのキー (例: DEMO:10)。
  • -y, --yes — 確認プロンプトをスキップします。非対話型環境で必要です。

uip tm testsets delete --project-key DEMO --test-set-key DEMO:10 --yes
uip tm testsets delete --project-key DEMO --test-set-key DEMO:10 --yes

データシェイプ

{
  "Code": "TestSetDelete",
  "Data": {
    "TestSetKey": "DEMO:10",
    "Id": "a1b2c3d4-0000-0000-0000-000000000010",
    "Result": "Deleted"
  }
}
{
  "Code": "TestSetDelete",
  "Data": {
    "TestSetKey": "DEMO:10",
    "Id": "a1b2c3d4-0000-0000-0000-000000000010",
    "Result": "Deleted"
  }
}

uip tm testsets list-testcases

テスト セットに割り当てられているテスト ケースのリストを表示します。

引数

設定はありません。

オプション

  • --project-key <key> (必須) — プロジェクトを所有しています。
  • --test-set-key <key> (必須) — 検査するテスト セット。
  • --limit <n> — ページあたりの結果の最大数既定値は [ 50です。
  • --offset <n> — スキップする結果の数。既定値は [ 0です。

uip tm testsets list-testcases --project-key DEMO --test-set-key DEMO:10
uip tm testsets list-testcases --project-key DEMO --test-set-key DEMO:10

データシェイプ

{
  "Code": "TestSetTestCasesList",
  "Data": [
    {
      "TestCaseKey": "DEMO:1",
      "Name": "Login smoke",
      "Description": "Logs in and out"
    }
  ]
}
{
  "Code": "TestSetTestCasesList",
  "Data": [
    {
      "TestCaseKey": "DEMO:1",
      "Name": "Login smoke",
      "Description": "Logs in and out"
    }
  ]
}

uip tm テストセットの実行

テスト セットを実行し、その ExecutionIdを返します。[実行] はブロックしません。[スクリプトの uip tm wait ] と組み合わせて使用します。

引数

設定はありません。

オプション

  • --project-key <key> (必須) — プロジェクトを所有しています。
  • --test-set-key <key> (必須) — 実行するテスト セット。
  • --execution-type <type> (必須) — 実行するテスト ケース。以下のいずれかを使用します。
    • automated — 自動化されたテスト ケースのみ。
    • manual — 手動テスト用のテスト ケースのみ
    • mixed — 自動と手動の両方。
    • none — 型フィルターなし。
  • --async — 確認を待たずにキューに入ったらすぐに戻ります。

# automated run (most common in CI)
uip tm testsets run \
  --project-key DEMO \
  --test-set-key DEMO:10 \
  --execution-type automated

# fire-and-forget
uip tm testsets run \
  --project-key DEMO \
  --test-set-key DEMO:10 \
  --execution-type automated \
  --async
# automated run (most common in CI)
uip tm testsets run \
  --project-key DEMO \
  --test-set-key DEMO:10 \
  --execution-type automated

# fire-and-forget
uip tm testsets run \
  --project-key DEMO \
  --test-set-key DEMO:10 \
  --execution-type automated \
  --async

データシェイプ

{
  "Code": "TestSetRun",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "TestSetKey": "DEMO:10",
    "Status": "Running",
    "StartTime": "2025-04-15T10:30:00Z"
  }
}
{
  "Code": "TestSetRun",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "TestSetKey": "DEMO:10",
    "Status": "Running",
    "StartTime": "2025-04-15T10:30:00Z"
  }
}
注:

--execution-type は必須です — 省略するとCLIエラーになります。返された Status には、起動時のステートが反映されます。実行結果を取得するには、 uip tm wait でブロックしてから uip tm report getを読み取ります。

  • テスト ケース — テスト セットを設定するテスト ケースを作成してリンクします。
  • 実行 — テスト セットの実行後に実行のリストを表示してリトライします。
  • 待機 — 返された ExecutionId が終了状態に達するまでブロックします。
  • ReportResultAttachment — 実行後の成果物。

参照

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得