- 概要
- はじめに
- 概念
- UiPath CLI を使用する
- 使用ガイド
- CI/CD レシピ
- コマンド リファレンス
- 概要
- 終了コード
- グローバル オプション
- uip codedagent
- UIP コーダー
- UIP のコンテキスト グラウンディング
- uip docsai
- uip 関数
- UIP ガードレール
- uip llm - 構成
- uip llm-gateway
- UIP Maestro のオーサリング
- UIP Maestro レジストリ
- uip model-hub
- uip ont
- アクティビティ検索
- アクティビティ get-default-xaml
- 分析
- アナライザー - ルールのリスト
- 開発
- クリーンアップ
- data-fabric-entities をインストールする
- data-fabric-entities リスト
- ファイル差分
- get-library-object-repository
- オブジェクト リポジトリを取得
- Init
- インスタンス リスト
- パッケージ化
- パッケージ検査
- パッケージのインストール
- パッケージ バージョン
- パブリッシュ
- リモート
- 元に戻す
- 実行、デバッグ、実行
- 設定
- Studio での起動
- テンプレートの検索
- test-data add-entity
- test-data add-queue
- test-data add-variation
- TM
- UIA
- 検証
- workflow-examples get
- ワークフロー - 例のリスト
- uip resources
- UIP タスク
- uip traces
- UIP トレースのフィードバック
- 移行
- 参照とサポート
uip tm wait
Syntax and options for `uip tm wait`, which polls a test execution until it reaches a terminal state, prints a summary, and exits non-zero when a test failed or the run was cancelled.
uip tm wait polls a test execution until it reaches a terminal state (Finished or Cancelled) and then prints a summary with the passed and failed counts. It turns the asynchronous uip tm testsets run into a blocking step in a CI pipeline, and the exit code carries the verdict: 0 when no test failed, 1 when a test failed or the run was cancelled.
wait は、リソースとしてではなく、 tmの下に最上位の動詞として登録されます。uip tm executions waitではなく、uip tm waitとして呼び出します。
概要
uip tm wait --execution-id <uuid> (--project-key <key> | --project-id <id> | --test-set-key <key>)
[--timeout <seconds>]
uip tm wait --execution-id <uuid> (--project-key <key> | --project-id <id> | --test-set-key <key>)
[--timeout <seconds>]
グローバル オプションが適用されます。このコマンドが使用するコードについては、 終了コード を参照してください。
uip tm wait
特定の実行が最終ステートに達するまでブロックし、60 秒ごとに Test Manager をポーリングします。
引数
設定はありません。
オプション
-
--execution-id <uuid>(必須) — 待機する実行。uip tm testsets runから取得します。 -
--project-key <key>— プロジェクト キーを所有しています。 -
--project-id <id>— 所有するプロジェクト ID です。の代わりに を使用します--project-key--project-id、--project-key、または--test-set-keyを渡します。複数の を渡す場合は、最初に--project-idが使用され、続いて が使用され、次に--project-key、プロジェクト プレフィックス--test-set-keyが使用されます。 -
--test-set-key <key>— テストセットキー(例:DEMO:42);プロジェクト キーはプレフィックスから派生します。 -
--timeout <seconds>— 待機する最大時間 (秒単位):0から604800(1 週間) までの整数)。既定値は1800(30 分) です。無期限に待機するには0渡します。その他の値は、終了コード3で拒否されます。
このコマンドには --poll-interval フラグはありません。ポーリング間隔は 60 秒に固定されています。
executions finishで早期に終了した手動実行は Status: "Running" が保持されるため、wait終了ステートは表示されません。wait は --timeout までブロックし、その後は 4を終了します。代わりに、このような実行のExecutionFinishedタイムスタンプを executions get-stats で確認します。
例
# wait up to 15 minutes
uip tm wait \
--execution-id a1b2c3d4-0000-0000-0000-000000000001 \
--project-key DEMO \
--timeout 900
# wait up to 15 minutes
uip tm wait \
--execution-id a1b2c3d4-0000-0000-0000-000000000001 \
--project-key DEMO \
--timeout 900
Data shape (finished with no failed test)
{
"Result": "Success",
"Code": "WaitComplete",
"Data": {
"ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"Status": "Finished",
"EndTime": "2025-04-15T10:32:11Z",
"Duration": "00:02:11",
"Passed": 12,
"Failed": 0,
"None": 0
}
}
{
"Result": "Success",
"Code": "WaitComplete",
"Data": {
"ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"Status": "Finished",
"EndTime": "2025-04-15T10:32:11Z",
"Duration": "00:02:11",
"Passed": 12,
"Failed": 0,
"None": 0
}
}
Passed, Failed, and None count the tests that passed, failed, and have no result. Tests with no result do not fail the wait, because a manual run can finish with tests that nobody recorded.
Data shape (a test failed or the run was cancelled)
{
"Result": "Failure",
"Code": "ExecutionTestsFailed",
"ErrorCode": "execution_failed",
"Message": "2 of 12 tests failed in execution 'a1b2c3d4-0000-0000-0000-000000000001'.",
"Instructions": "List the failed tests with 'uip tm executions testcaselogs list --execution-id a1b2c3d4-0000-0000-0000-000000000001 --project-id 11111111-2222-3333-4444-555555555555 --results Failed', or download a JUnit report with 'uip tm result download --execution-id a1b2c3d4-0000-0000-0000-000000000001 --project-id 11111111-2222-3333-4444-555555555555'.",
"Retry": "RetryWillNotFix",
"Data": {
"ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"Status": "Finished",
"EndTime": "2025-04-15T10:32:11Z",
"Duration": "00:02:11",
"Passed": 10,
"Failed": 2,
"None": 0
}
}
{
"Result": "Failure",
"Code": "ExecutionTestsFailed",
"ErrorCode": "execution_failed",
"Message": "2 of 12 tests failed in execution 'a1b2c3d4-0000-0000-0000-000000000001'.",
"Instructions": "List the failed tests with 'uip tm executions testcaselogs list --execution-id a1b2c3d4-0000-0000-0000-000000000001 --project-id 11111111-2222-3333-4444-555555555555 --results Failed', or download a JUnit report with 'uip tm result download --execution-id a1b2c3d4-0000-0000-0000-000000000001 --project-id 11111111-2222-3333-4444-555555555555'.",
"Retry": "RetryWillNotFix",
"Data": {
"ExecutionId": "a1b2c3d4-0000-0000-0000-000000000001",
"Status": "Finished",
"EndTime": "2025-04-15T10:32:11Z",
"Duration": "00:02:11",
"Passed": 10,
"Failed": 2,
"None": 0
}
}
Data holds the same fields as on success. Status is the terminal state Test Manager reports: Finished or Cancelled. Code is ExecutionTestsFailed when a test failed and ExecutionCancelled when the run was cancelled. Both exit 1.
データシェイプ (タイムアウト)
{
"Result": "TimeoutError",
"ErrorCode": "timeout",
"Message": "Timed out after 900s waiting for execution 'a1b2c3d4-0000-0000-0000-000000000001'. Last status: Running.",
"Instructions": "The execution may still be running. Run 'uip tm wait --execution-id a1b2c3d4-0000-0000-0000-000000000001' again, or check it with 'uip tm executions get-stats --execution-id a1b2c3d4-0000-0000-0000-000000000001'."
}
{
"Result": "TimeoutError",
"ErrorCode": "timeout",
"Message": "Timed out after 900s waiting for execution 'a1b2c3d4-0000-0000-0000-000000000001'. Last status: Running.",
"Instructions": "The execution may still be running. Run 'uip tm wait --execution-id a1b2c3d4-0000-0000-0000-000000000001' again, or check it with 'uip tm executions get-stats --execution-id a1b2c3d4-0000-0000-0000-000000000001'."
}
終了コード
wait follows the standard exit codes:
| 終了コード | 意味 |
|---|---|
0 | The execution finished and no test failed. |
1 | A test failed, the run was cancelled, the execution was not found, polling failed (three consecutive API errors or an interrupt), sign-in failed, or no project was given. See the Code, ErrorCode, and Message fields for detail. |
2 | The login has no permission to read the execution. |
3 | 検証エラー (不正なフラグ値、必須オプションが見つからない) |
4 | タイムアウトしました。実行が終了ステートに達する前にタイムアウトが経過しました。 |
An error that waiting cannot fix, such as an unknown execution ID (ErrorCode: "not_found"), stops the wait on the first read instead of at --timeout. Other errors are retried up to three times in a row.
スクリプト パターン
uip tm wait \
--execution-id "$id" \
--project-key DEMO \
--timeout 1800
case $? in
0) ;;
1) echo "tests failed, run cancelled, or wait failed" >&2; exit 1 ;;
4) echo "timed out" >&2; exit 4 ;;
*) echo "wait failed" >&2; exit 1 ;;
esac
uip tm wait \
--execution-id "$id" \
--project-key DEMO \
--timeout 1800
case $? in
0) ;;
1) echo "tests failed, run cancelled, or wait failed" >&2; exit 1 ;;
4) echo "timed out" >&2; exit 4 ;;
*) echo "wait failed" >&2; exit 1 ;;
esac
関連
- testsets run — 待機する
ExecutionIdを生成します。 - report — summary of the counts and the failed test cases, to read once
waitreturns. - result — JUnit XMLエクスポート。
- 実行のリトライ — 完了した実行の失敗したケースを再実行します。
- 実行のキャンセル — 実行中の自動実行を停止します。ポーリングして で
Cancelledwait。 - 実行 — アップロードされたパッケージ内のすべてのテストを実行し、待機し、1 つのコマンドでレポートを書き込みます。
参照
- Test Manager の概要
- 終了コード — 共有契約。
- スクリプト パターン — 起動、待機、検証パイプライン。