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

uip tm executions

「uip tm 実行」の構文とオプション。テスト実行を表示、フィルター処理、エクスポート、再実行、リトライ、完了、キャンセル、削除し、レポート日を設定し、テスト ケースのログを一覧表示します。

uip tm executions は、テスト実行 (uip tm testsets runによって生成されるオブジェクト) を検査および管理します。これらの動詞は、実行を一覧表示、フィルター処理、エクスポートします。実行の統計情報とテスト ケースのログを読み取る。実行を再実行するか、失敗したケースのみをリトライする。手動実行を早期にクローズするか、自動実行をキャンセルする。報告日に対して実行を予約する。を実行し、実行を削除します。

実行を開始するコマンドは uip tm testsets runで、 ExecutionIdが返されます。このページのすべての動詞は、list-filtered、export を除くlist、その ID を取ります。

概要​

uip tm executions list (--project-key <key> | --project-id <id>) [--test-set-id <uuid>] [--filter <text>] [--status <status>] [--execution-type <type>] [--execution-finished-interval <interval>] [--limit <n>] [--offset <n>]
uip tm executions list-filtered (--project-key <key> | --project-id <id>) [--test-set-id <uuid>] [--status <status>] [--execution-type <type>] [--execution-finished-interval <interval>] [--updated-by <userId>] [--search <text>] [--labels <labels...>] [--test-execution-ids <ids...>] [--sort-by <expr>] [--limit <n>] [--offset <n>]
uip tm executions export (--project-key <key> | --project-id <id>) --output-file <path> [--test-set-id <uuid>] [--status <status>] [--execution-type <type>] [--execution-finished-interval <interval>] [--updated-by <userId>] [--search <text>] [--labels <labels...>] [--test-execution-ids <ids...>] [--sort-by <expr>]
uip tm executions testcaselogs list --execution-id <uuid> (--project-key <key> | --project-id <id>) [--only-failed] [--filter <text>] [--results <results...>] [--statuses <statuses...>] [--duration-period <period>] [--limit <n>] [--offset <n>]
uip tm executions run (--project-key <key> | --project-id <id>) --execution-id <uuid> --execution-type <type> [--test-case-log-ids <ids...>] [--async]
uip tm executions retry --execution-id <uuid> (--project-key <key> | --project-id <id> | --test-set-key <key>) [--execution-type <type>]
uip tm executions get-stats --execution-id <uuid> (--project-key <key> | --project-id <id>)
uip tm executions finish --execution-id <uuid> (--project-key <key> | --project-id <id>)
uip tm executions cancel --execution-id <uuid> (--project-key <key> | --project-id <id>)
uip tm executions set-reporting-date --execution-id <uuid> --reporting-date <date> (--project-key <key> | --project-id <id>)
uip tm executions delete --execution-id <uuid> (--project-key <key> | --project-id <id>) --yes
uip tm executions list (--project-key <key> | --project-id <id>) [--test-set-id <uuid>] [--filter <text>] [--status <status>] [--execution-type <type>] [--execution-finished-interval <interval>] [--limit <n>] [--offset <n>]
uip tm executions list-filtered (--project-key <key> | --project-id <id>) [--test-set-id <uuid>] [--status <status>] [--execution-type <type>] [--execution-finished-interval <interval>] [--updated-by <userId>] [--search <text>] [--labels <labels...>] [--test-execution-ids <ids...>] [--sort-by <expr>] [--limit <n>] [--offset <n>]
uip tm executions export (--project-key <key> | --project-id <id>) --output-file <path> [--test-set-id <uuid>] [--status <status>] [--execution-type <type>] [--execution-finished-interval <interval>] [--updated-by <userId>] [--search <text>] [--labels <labels...>] [--test-execution-ids <ids...>] [--sort-by <expr>]
uip tm executions testcaselogs list --execution-id <uuid> (--project-key <key> | --project-id <id>) [--only-failed] [--filter <text>] [--results <results...>] [--statuses <statuses...>] [--duration-period <period>] [--limit <n>] [--offset <n>]
uip tm executions run (--project-key <key> | --project-id <id>) --execution-id <uuid> --execution-type <type> [--test-case-log-ids <ids...>] [--async]
uip tm executions retry --execution-id <uuid> (--project-key <key> | --project-id <id> | --test-set-key <key>) [--execution-type <type>]
uip tm executions get-stats --execution-id <uuid> (--project-key <key> | --project-id <id>)
uip tm executions finish --execution-id <uuid> (--project-key <key> | --project-id <id>)
uip tm executions cancel --execution-id <uuid> (--project-key <key> | --project-id <id>)
uip tm executions set-reporting-date --execution-id <uuid> --reporting-date <date> (--project-key <key> | --project-id <id>)
uip tm executions delete --execution-id <uuid> (--project-key <key> | --project-id <id>) --yes

すべての動詞は、 グローバル オプション と標準の 終了コードを尊重します。

uip tm executions list​

プロジェクトの実行のリストを表示します。任意で 1 つのテスト セットに制限されます。

引数​

設定はありません。

オプション​

フラグ説明
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
--test-set-id <uuid>テスト セットの UUID (TestSetKeyではなく testsets listの Id フィールド)。プロジェクト全体の実行のリストを取得する場合は省略します。
--filter <text>実行を名前で検索する。
--status <status>1 つの実行ステータス ( pending、 running、 cancelling、 finished、 cancelledでフィルター処理します。
--execution-type <type>1 つの実行の種類 (automated、 manual、 mixed、 none、 autonomous) でフィルター処理します。
--execution-finished-interval <interval>実行が完了した日 lastHour(、 lastDay、 lastWeek、 last15Days、 last30Daysでフィルター処理します。
--limit <n>ページ サイズ。既定値は 50です。
--offset <n>スキップする結果。既定値は 0です。
uip tm executions list \
  --project-key DEMO \
  --test-set-id a1b2c3d4-0000-0000-0000-000000000001 \
  --limit 2
uip tm executions list \
  --project-key DEMO \
  --test-set-id a1b2c3d4-0000-0000-0000-000000000001 \
  --limit 2

データシェイプ​

{
  "Code": "ExecutionsList",
  "Data": [
    {
      "Id": "b2c3d4e5-0000-0000-0000-000000000001",
      "Name": "Nightly Run 2025-04-15",
      "Status": "Finished",
      "Passed": 18,
      "Failed": 0
    },
    {
      "Id": "b2c3d4e5-0000-0000-0000-000000000002",
      "Name": "Nightly Run 2025-04-14",
      "Status": "Finished",
      "Passed": 16,
      "Failed": 2
    }
  ]
}
{
  "Code": "ExecutionsList",
  "Data": [
    {
      "Id": "b2c3d4e5-0000-0000-0000-000000000001",
      "Name": "Nightly Run 2025-04-15",
      "Status": "Finished",
      "Passed": 18,
      "Failed": 0
    },
    {
      "Id": "b2c3d4e5-0000-0000-0000-000000000002",
      "Name": "Nightly Run 2025-04-14",
      "Status": "Finished",
      "Passed": 16,
      "Failed": 2
    }
  ]
}

各行には、 と同じフィールドがありますget-stats。この例は、サブセットを示しています。

uip tm executions list-filtered​

サーバー側の完全なフィルター セットを使用して、プロジェクト内の実行のリストを取得します。テスト セットは必要ありません。--status と --execution-type はそれぞれ 1 つの値を取ります。 --execution-finished-intervalで終了時刻でフィルター処理します。

引数​

設定はありません。

オプション​

フラグ説明
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
--test-set-id <uuid>結果を 1 つのテスト セットの UUID (テスト セットのキーではなく testsets listの Id) に制限します。
--status <status>1 つの実行ステータス ( pending、 running、 cancelling、 finished、 cancelledでフィルター処理します。
--execution-type <type>1 つの実行の種類 (automated、 manual、 mixed、 none、 autonomous) でフィルター処理します。
--execution-finished-interval <interval>実行が完了した日 lastHour(、 lastDay、 lastWeek、 last15Days、 last30Daysでフィルター処理します。
--updated-by <userId>実行を最後に更新したユーザー ID でフィルター処理します。
--search <text>実行を名前で検索する。
--labels <labels...>フィルター処理に使用するスペース区切りのラベル名です。
--test-execution-ids <ids...>スペース区切りの実行 UUID を含めます。
--sort-by <expr>並べ替え式: フィールド名と方向 (例: 'executionFinished desc')。
--limit <n>ページ サイズ。既定値は 50です。
--offset <n>スキップする結果。既定値は 0です。
uip tm executions list-filtered \
  --project-key DEMO \
  --labels nightly regression \
  --status finished \
  --sort-by 'executionFinished desc' \
  --limit 10
uip tm executions list-filtered \
  --project-key DEMO \
  --labels nightly regression \
  --status finished \
  --sort-by 'executionFinished desc' \
  --limit 10

データシェイプ​

{
  "Code": "ExecutionsListFiltered",
  "Data": [
    {
      "Id": "b2c3d4e5-0000-0000-0000-000000000001",
      "Name": "Nightly Run 2025-04-15",
      "Status": "Finished",
      "ExecutionType": "automated",
      "Passed": 18,
      "Failed": 2
    }
  ]
}
{
  "Code": "ExecutionsListFiltered",
  "Data": [
    {
      "Id": "b2c3d4e5-0000-0000-0000-000000000001",
      "Name": "Nightly Run 2025-04-15",
      "Status": "Finished",
      "ExecutionType": "automated",
      "Passed": 18,
      "Failed": 2
    }
  ]
}

各行には、 と同じフィールドがありますget-stats。この例は、サブセットを示しています。

UIP TM 実行のエクスポート​

フィルターで一致する実行を .xlsx ファイルにエクスポートします。固定列の実行ごとに 1 行ずつエクスポートします。各 Name セルは Test Manager にリンクしています。動詞は list-filtered と同じフィルターを受け取り、すべてのページ自体を読み取るため、--limitや--offsetはありません。1 つの実行の専用レポート ファイル (Excel、PDF、または JUnit) には、 を使用しますreport export。

Test Manager の実行読み取り権限とライセンス ユーザーが必要なため、 list-filtered を実行できる呼び出し元はここで拒否できます。

注:

何も一致しないフィルターは、行のない有効なブックを書き込み、 Result: "Success"を返します。終了コードではなく、フィルターを確認します。

引数​

設定はありません。

オプション​

フラグ説明
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
--output-file <path>必須。.xlsx ファイルの書き込み先のパスです。不足しているディレクトリが作成されます。
--test-set-id <uuid>結果を 1 つのテスト セットの UUID (テスト セットのキーではなく testsets listの Id) に制限します。
--status <status>1 つの実行ステータス ( pending、 running、 cancelling、 finished、 cancelledでフィルター処理します。
--execution-type <type>1 つの実行の種類 (automated、 manual、 mixed、 none、 autonomous) でフィルター処理します。
--execution-finished-interval <interval>実行が完了した日 lastHour(、 lastDay、 lastWeek、 last15Days、 last30Daysでフィルター処理します。
--updated-by <userId>実行を最後に更新したユーザー ID でフィルター処理します。
--search <text>実行を名前で検索する。
--labels <labels...>フィルター処理に使用するスペース区切りのラベル名です。
--test-execution-ids <ids...>スペース区切りの実行 UUID を含めます。
--sort-by <expr>並べ替え式: フィールド名と方向 (例: 'executionFinished desc')。
uip tm executions export \
  --project-key DEMO \
  --test-set-id a1b2c3d4-0000-0000-0000-000000000010 \
  --output-file ./executions.xlsx
uip tm executions export \
  --project-key DEMO \
  --test-set-id a1b2c3d4-0000-0000-0000-000000000010 \
  --output-file ./executions.xlsx

データシェイプ​

{
  "Code": "ExecutionExport",
  "Data": {
    "OutputFile": "./executions.xlsx",
    "Bytes": 2048,
    "ProjectKey": "DEMO",
    "Result": "Exported"
  }
}
{
  "Code": "ExecutionExport",
  "Data": {
    "OutputFile": "./executions.xlsx",
    "Bytes": 2048,
    "ProjectKey": "DEMO",
    "Result": "Exported"
  }
}

uip tm executions testcaselogs list​

1 回の実行で生成されたテスト ケースのログを一覧表示します。各ログは 1 つのテスト ケースの 1 回の実行であり、結果、ステータス、タイミングが記録されます。

引数​

設定はありません。

オプション​

フラグ説明
--execution-id <uuid>必須。検査する実行。
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
--only-failed失敗したログのみを表示します。
--filter <text>ログを名前で検索する。
--results <results...>フィルター処理条件としてスペースで区切られた結果です: None、 Passed、 Failed、 Restricted。
--statuses <statuses...>フィルター処理に使用するログのステータスをスペースで区切って表示します。 pending、 running、 cancelling、 cancelled、 finished、 failedです。
--duration-period <period>ログの実行期間 ( last7Days、 last15Days、 last30Days、 last90Days、 last180Days、 last365Days) でフィルター処理します。
--limit <n>ページ サイズ。既定値は 50です。
--offset <n>スキップする結果。既定値は 0です。
uip tm executions testcaselogs list \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --only-failed
uip tm executions testcaselogs list \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO \
  --only-failed

データシェイプ​

{
  "Code": "ExecutionTestCaseLogs",
  "Data": [
    {
      "Id": "c3d4e5f6-0000-0000-0000-000000000001",
      "TestCaseId": "a1b2c3d4-0000-0000-0000-000000000010",
      "TestExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
      "Result": "Failed",
      "Status": "Finished",
      "ExecutionType": "automated",
      "ExecutionStart": "2025-04-15T10:00:00Z",
      "ExecutionEnd": "2025-04-15T10:05:00Z",
      "Info": "Assertion failed on step 3",
      "TestCase": {
        "Id": "a1b2c3d4-0000-0000-0000-000000000010",
        "ObjKey": "DEMO:1",
        "Name": "Login flow"
      }
    }
  ]
}
{
  "Code": "ExecutionTestCaseLogs",
  "Data": [
    {
      "Id": "c3d4e5f6-0000-0000-0000-000000000001",
      "TestCaseId": "a1b2c3d4-0000-0000-0000-000000000010",
      "TestExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
      "Result": "Failed",
      "Status": "Finished",
      "ExecutionType": "automated",
      "ExecutionStart": "2025-04-15T10:00:00Z",
      "ExecutionEnd": "2025-04-15T10:05:00Z",
      "Info": "Assertion failed on step 3",
      "TestCase": {
        "Id": "a1b2c3d4-0000-0000-0000-000000000010",
        "ObjKey": "DEMO:1",
        "Name": "Login flow"
      }
    }
  ]
}

各行はテスト ケースの完全なログで、そのテスト ケースは の下に入れ子になっています TestCaseこの例は、サブセットを示しています。各 Id はテスト ケースのログ UUID です。ログが Failedとマークされた理由を確認するには、uip tm testcaselog list-assertions に渡します。

uip tm executions run​

既存の実行をその ID で再実行する。ただし、新しい実行は開始されません。同じ実行レコード内で再生され、すべてのテスト ケースまたはテスト ケースのログの特定のサブセットを対象にします。

注:

新しい実行を開始するには、代わりに uip tm testsets run を使用します。

引数​

設定はありません。

オプション​

フラグ説明
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
--execution-id <uuid>必須。再実行する既存の実行の ID です。
--execution-type <type>必須。実行するテスト ケース (automated、 manual、 mixed、 none、 autonomous)。
--test-case-log-ids <ids...>スペースで区切られたテスト ケースのログ UUID。指定すると、それらの特定のログのみが再実行されます。
--async列に並んだらすぐに戻ってください。
# re-run the entire execution
uip tm executions run \
  --project-key DEMO \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --execution-type automated

# re-run specific logs only
uip tm executions run \
  --project-key DEMO \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --execution-type automated \
  --test-case-log-ids c3d4e5f6-0000-0000-0000-000000000001 c3d4e5f6-0000-0000-0000-000000000002
# re-run the entire execution
uip tm executions run \
  --project-key DEMO \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --execution-type automated

# re-run specific logs only
uip tm executions run \
  --project-key DEMO \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --execution-type automated \
  --test-case-log-ids c3d4e5f6-0000-0000-0000-000000000001 c3d4e5f6-0000-0000-0000-000000000002

データシェイプ​

{
  "Code": "ExecutionRun",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000001",
    "Status": "Succeeded"
  }
}
{
  "Code": "ExecutionRun",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000001",
    "Status": "Succeeded"
  }
}

Status: "Succeeded" 、テスト ケースが合格したということではなく、Test Manager が実行要求を受け入れたことを意味します。の有無にかかわらず、同じ読み --async。get-stats または waitで結果を確認します。

uip tm executions retry​

完了した実行の失敗したテスト ケースのみをその場でリトライします。このコマンドは、最初に実行の統計情報を読み取り、ステータスが Finished でも Cancelledでもない実行を拒否します。失敗したテスト ケースがない場合は、メッセージが表示されて 0 を終了します。リトライでは、同じ実行 ID が再利用されます。

引数​

設定はありません。

オプション​

フラグ説明
--execution-id <uuid>必須。リトライする実行。
--project-key <key>プロジェクト キーを所有しています。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key
--test-set-key <key>テスト セットのキー (例: DEMO:42)。プロジェクト キーは、プレフィックス から派生しています。
--execution-type <type>リトライの実行の種類は、 automated、 manual、 mixed、または noneです。既定値は automatedです。

--project-id、--project-key、または --test-set-keyを渡します。複数の を渡す場合は、最初に --project-id が使用され、続いて が使用され、次に --project-key、プロジェクト プレフィックス --test-set-keyが使用されます。

uip tm executions retry \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO
uip tm executions retry \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO

データシェイプ (リトライに失敗)​

{
  "Code": "ExecutionRetry",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Status": "Running",
    "StartTime": "2025-04-15T10:30:00Z",
    "RetriedCount": 3
  }
}
{
  "Code": "ExecutionRetry",
  "Data": {
    "ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
    "Status": "Running",
    "StartTime": "2025-04-15T10:30:00Z",
    "RetriedCount": 3
  }
}

データ形状 (リトライに失敗なし)​

{
  "Code": "ExecutionRetry",
  "Data": {
    "Message": "Execution 'a1b2c3d4-0000-0000-0000-000000000001' has no failed test cases to retry."
  }
}
{
  "Code": "ExecutionRetry",
  "Data": {
    "Message": "Execution 'a1b2c3d4-0000-0000-0000-000000000001' has no failed test cases to retry."
  }
}

uip tm executions get-stats​

テスト実行を ID で取得します。ID 内のすべての実行フィールドに加えて、集計された成功、失敗、カウントなしのカウントも取得します。report getを呼び出す前に実行が完了したかどうかを確認したり、外部レポート用のタイミングとカバレッジのデータを抽出したりするために使用します。

引数​

設定はありません。

オプション​

フラグ説明
--execution-id <uuid>必須。テスト実行の UUID。これを uip tm testsets run または uip tm testcases runから取得します。
--project-key <key>Test Manager プロジェクト キー (例: DEMO)。これを渡すか、 --project-idを渡します。
--project-id <id>Test Manager プロジェクト IDの代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
uip tm executions get-stats \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO
uip tm executions get-stats \
  --execution-id a1b2c3d4-0000-0000-0000-000000000001 \
  --project-key DEMO

データシェイプ​

{
  "Code": "ExecutionStats",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000001",
    "Name": "Nightly Run 2025-04-15",
    "Description": "Smoke + regression suite",
    "Status": "Finished",
    "ExecutionType": "automated",
    "Source": "TestManager",
    "SourceDetails": "",
    "ProjectId": "00000000-0000-0000-0000-000000000abc",
    "TestSetId": "a1b2c3d4-0000-0000-0000-000000000010",
    "TestSetObjKey": "DEMO:10",
    "TestSetScheduleId": "",
    "BatchExecutionKey": "",
    "Passed": 8,
    "Failed": 2,
    "None": 0,
    "Duration": 3600000,
    "RunId": 12,
    "EnforceExecutionOrder": false,
    "EnableCoverage": false,
    "IsRunningAutomated": false,
    "HasTestsFromMultipleAutomationProjects": false,
    "RemoteControlAccess": "Disabled",
    "ExecutionStart": "2025-04-15T10:00:00Z",
    "ExecutionFinished": "2025-04-15T11:00:00Z",
    "ReportingDate": "2025-04-15T11:00:00Z",
    "FolderKey": "11111111-2222-3333-4444-555555555555",
    "Created": "2025-04-15T09:55:00Z",
    "CreatedBy": "11111111-2222-3333-4444-555555555555",
    "Updated": "2025-04-15T11:00:00Z",
    "UpdatedBy": "11111111-2222-3333-4444-555555555555",
    "AutopilotForRobotsSettings": { "Enabled": false },
    "OrderedExecutionSettings": { "Enabled": false },
    "VideoRecordingSettings": { "Enabled": false }
  }
}
{
  "Code": "ExecutionStats",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000001",
    "Name": "Nightly Run 2025-04-15",
    "Description": "Smoke + regression suite",
    "Status": "Finished",
    "ExecutionType": "automated",
    "Source": "TestManager",
    "SourceDetails": "",
    "ProjectId": "00000000-0000-0000-0000-000000000abc",
    "TestSetId": "a1b2c3d4-0000-0000-0000-000000000010",
    "TestSetObjKey": "DEMO:10",
    "TestSetScheduleId": "",
    "BatchExecutionKey": "",
    "Passed": 8,
    "Failed": 2,
    "None": 0,
    "Duration": 3600000,
    "RunId": 12,
    "EnforceExecutionOrder": false,
    "EnableCoverage": false,
    "IsRunningAutomated": false,
    "HasTestsFromMultipleAutomationProjects": false,
    "RemoteControlAccess": "Disabled",
    "ExecutionStart": "2025-04-15T10:00:00Z",
    "ExecutionFinished": "2025-04-15T11:00:00Z",
    "ReportingDate": "2025-04-15T11:00:00Z",
    "FolderKey": "11111111-2222-3333-4444-555555555555",
    "Created": "2025-04-15T09:55:00Z",
    "CreatedBy": "11111111-2222-3333-4444-555555555555",
    "Updated": "2025-04-15T11:00:00Z",
    "UpdatedBy": "11111111-2222-3333-4444-555555555555",
    "AutopilotForRobotsSettings": { "Enabled": false },
    "OrderedExecutionSettings": { "Enabled": false },
    "VideoRecordingSettings": { "Enabled": false }
  }
}
フィールド意味
PassedFailed、None実行の集計されたテスト ケースのログ数。
Duration合計実行時間 (ミリ秒)。
Status実行ステート。を Finishedすると、カウントが最終的になります。実行が早期に終了し、 finish は Status: "Running"が維持されます。
ExecutionFinished実行が単独で、または finishを介して閉じられたとき。
IsRunningAutomatedtrue 一方、自動化されたテスト ケースはまだロボットにディスパッチされています。
注:

get-stats 、生の実行レコードをカウント付きで返します。テスト ケースごとの失敗メッセージを含む形式化された要約を作成するには、代わりに uip tm report get を使用します。

UIPTM の実行の完了​

テスト ケースのログの一部がまだ未完成であるうちに、手動テスト実行を早期に閉じる。ログがすべて完了した実行はすでにそれ自体を閉じているため、これは 1 つを早期に終了する場合にのみ使用してください。Test Manager は、テスト ケースのログがまだ開始されていない実行、すでに ExecutionFinished のタイムスタンプがある実行、および Orchestrator から取得された実行を拒否します。Test Manager の手動実行権限が必要です。

警告:

finish スタンプは、 を設定しStatusを設定しなくてもExecutionFinishedされます。このスタンプは Runningのままです。早期にクローズされた実行を ExecutionFinished タイムスタンプで認識します。このような実行をuip tm waitすると、--timeout (既定では 1800 秒) までブロックされ、タイムアウトが報告されます。

引数​

設定はありません。

オプション​

フラグ説明
--execution-id <uuid>必須。実行を閉じる。
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
uip tm executions finish \
  --execution-id a1b2c3d4-0000-0000-0000-000000000002 \
  --project-key DEMO
uip tm executions finish \
  --execution-id a1b2c3d4-0000-0000-0000-000000000002 \
  --project-key DEMO

データシェイプ​

{
  "Code": "ExecutionFinish",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000002",
    "Name": "UAT session 1",
    "Status": "Running",
    "ExecutionType": "Manual",
    "Passed": 1,
    "Failed": 0,
    "None": 1,
    "ExecutionStart": "2026-09-22T11:30:00Z",
    "ExecutionFinished": "2026-09-22T11:45:00Z"
  }
}
{
  "Code": "ExecutionFinish",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000002",
    "Name": "UAT session 1",
    "Status": "Running",
    "ExecutionType": "Manual",
    "Passed": 1,
    "Failed": 0,
    "None": 1,
    "ExecutionStart": "2026-09-22T11:30:00Z",
    "ExecutionFinished": "2026-09-22T11:45:00Z"
  }
}

Data は、クローズ後に実行が再読み取られ、 と同じフィールドget-statsです。この例は、サブセットを示しています。再読み取りが失敗した場合、 Data は Idのみ保持されます。

UIPTM の実行のキャンセル​

実行中の自動実行とそれが含まれる Orchestrator ジョブを停止するよう Test Manager に依頼します。手動実行に停止するジョブがない。executions finishで 1 つを閉じます。自動実行権限とライセンス ユーザーが必要です。

Result: "Success" は、Test Manager が要求を承諾したことを意味します。何が起こったのかについては、 Data.Status をお読みください。

Data.Status意味
CancellingTest Manager で停止が記録されました。
Running停止が Orchestrator に転送されました。Orchestrator がレポートを返すと、実行が Cancelled に達します。
ターミナルのステータス (Finished、 Cancelled)ランはすでに終わっていた。

実行が終了ステータスに達するまで、uip tm wait でポーリングを行います。

引数​

設定はありません。

オプション​

フラグ説明
--execution-id <uuid>必須。キャンセルする実行。
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
uip tm executions cancel \
  --execution-id a1b2c3d4-0000-0000-0000-000000000003 \
  --project-key DEMO
uip tm executions cancel \
  --execution-id a1b2c3d4-0000-0000-0000-000000000003 \
  --project-key DEMO

データシェイプ​

{
  "Code": "ExecutionCancel",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000003",
    "Name": "Regression Test Set - 20260922.1130",
    "Status": "Cancelling",
    "ExecutionType": "Automated",
    "Passed": 1,
    "Failed": 0,
    "None": 3,
    "ExecutionStart": "2026-09-22T11:30:00Z"
  }
}
{
  "Code": "ExecutionCancel",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000003",
    "Name": "Regression Test Set - 20260922.1130",
    "Status": "Cancelling",
    "ExecutionType": "Automated",
    "Passed": 1,
    "Failed": 0,
    "None": 3,
    "ExecutionStart": "2026-09-22T11:30:00Z"
  }
}

Data は、キャンセル リクエストの後に実行が読み取られ、 と同じフィールドget-statsです。この例は、サブセットを示しています。再読み取りが失敗した場合、 Data は Idのみ保持されます。

UIP TM の実行 set-reporting-date​

特定の曜日に対してテスト実行を予約するため、レポートでは実行日ではなくその日にカウントされます。再度設定すると、前の日付が上書きされます。実行編集権限が必要です。

注:

日付は実行の結果に関連付けられます。実行の結果は、実行が終了した後にのみ存在します。オープン実行の場合、コマンドは実行ではなく結果に名前を付ける 404 を返します。すべてのログに対して testcaselog finish を実行して実行を閉じるか、 を使用して強制実行executions finish。

引数​

設定はありません。

オプション​

フラグ説明
--execution-id <uuid>必須。実行から予約まで。
--reporting-date <date>必須。ISO 8601 の予約基準日 (例: 2026-09-21 や 2026-09-21T10:00:00Z)。デートだけでUTCの真夜中を予約します。時間にはオフセット (Z または +hh:mm) が必要です。UTC の瞬間は 2019-01-01 から 9999-12-31の間にある必要があります。無効な日付は、要求の前に Result: "ValidationError" で失敗します。
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
uip tm executions set-reporting-date \
  --execution-id a1b2c3d4-0000-0000-0000-000000000002 \
  --reporting-date 2026-09-21 \
  --project-key DEMO
uip tm executions set-reporting-date \
  --execution-id a1b2c3d4-0000-0000-0000-000000000002 \
  --reporting-date 2026-09-21 \
  --project-key DEMO

データシェイプ​

{
  "Code": "ExecutionSetReportingDate",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000002",
    "Name": "UAT session 1",
    "Status": "Running",
    "ExecutionType": "Manual",
    "ReportingDate": "2026-09-21T00:00:00.000Z"
  }
}
{
  "Code": "ExecutionSetReportingDate",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000002",
    "Name": "UAT session 1",
    "Status": "Running",
    "ExecutionType": "Manual",
    "ReportingDate": "2026-09-21T00:00:00.000Z"
  }
}

Data は、更新後に実行が再読み取られ、 と同じフィールドget-statsです。この例は、サブセットを示しています。再読み取りが失敗した場合、 Data は Idのみ保持されます。

UIP TM の実行 削除​

テスト実行を、その実行が所有するテスト ケースのログとログ スナップショットと共に削除します。その後、実行は list または list-filteredに表示されなくなります。Test Manager の実行削除権限が必要です。

警告:

サーバーにはステートガードがなく、実行中のかどうかにかかわらず、任意の実行を削除できます。自動実行の Orchestrator ジョブも停止するには、最初に executions cancelを実行します。

引数​

設定はありません。

オプション​

フラグ説明
--execution-id <uuid>必須。削除する実行。
--project-key <key>プロジェクト キーを所有しています。これを渡すか、 --project-idを渡します。
--project-id <id>所有するプロジェクト ID。の代わりに を使用します--project-key両方を渡すと、 --project-id が使用されます。
-y, --yes必須。元に戻せない操作を確定します。CLI ではプロンプトは表示されません。 --yes 指定しない場合、コマンドは Result: "Failure" を返して終了 1。
uip tm executions delete \
  --execution-id a1b2c3d4-0000-0000-0000-000000000002 \
  --project-key DEMO \
  --yes
uip tm executions delete \
  --execution-id a1b2c3d4-0000-0000-0000-000000000002 \
  --project-key DEMO \
  --yes

データシェイプ​

{
  "Code": "ExecutionDelete",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000002",
    "Result": "Deleted"
  }
}
{
  "Code": "ExecutionDelete",
  "Data": {
    "Id": "a1b2c3d4-0000-0000-0000-000000000002",
    "Result": "Deleted"
  }
}

終了コード​

標準の CI パターンは、次の 3 段階のパイプラインです。

  1. 起動 — uip tm testsets run ExecutionId を返し、 0終了します。
  2. ブロック — 実行が最終ステートに達するまでポーリングを uip tm wait します。終了したら 0 を終了し、タイムアウト時に 2 、失敗した場合 1 終了します。
  3. 評決 — uip tm report getPassed数とFailed数を読み取ります。スクリプトがビルドに明示的に失敗する
id=$(uip tm testsets run \
  --test-set-key DEMO:10 \
  --execution-type automated \
  --output-filter ExecutionId --output plain)

uip tm wait --execution-id "$id" --project-key DEMO --timeout 1800
code=$?
[ "$code" -eq 2 ] && { echo "timed out" >&2; exit 2; }
[ "$code" -ne 0 ] && { echo "wait failed ($code)" >&2; exit "$code"; }

failed=$(uip tm report get \
  --execution-id "$id" --project-key DEMO --output-filter Failed --output plain)
[ "$failed" -gt 0 ] && { echo "$failed test(s) failed" >&2; exit 1; }
echo "all passed"
id=$(uip tm testsets run \
  --test-set-key DEMO:10 \
  --execution-type automated \
  --output-filter ExecutionId --output plain)

uip tm wait --execution-id "$id" --project-key DEMO --timeout 1800
code=$?
[ "$code" -eq 2 ] && { echo "timed out" >&2; exit 2; }
[ "$code" -ne 0 ] && { echo "wait failed ($code)" >&2; exit "$code"; }

failed=$(uip tm report get \
  --execution-id "$id" --project-key DEMO --output-filter Failed --output plain)
[ "$failed" -gt 0 ] && { echo "$failed test(s) failed" >&2; exit 1; }
echo "all passed"

Orchestrator に既にアップロードされているパッケージの場合、 uip tm run は 3 つの手順すべてを 1 つのコマンドで実行し、テストが失敗すると 0 以外を終了します。

  • testsets run — 実行を開始します。
  • 実行 — アップロードされたパッケージ内のすべてのテストを実行し、待機し、レポートを 1 ステップで作成します。
  • 待機 — 実行が終了ステートに達するまでブロックします。
  • Report、 Result、 Attachment — 実行後の成果物。
  • TestCaseLog — 個々のテスト ケースのログを開始、完了、検査します。 list-assertions 、失敗したログをアサーションごとの詳細に変換します。

参照​

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

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得