cicd-integrations
2025.10
true
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。
UiPath logo, featuring letters U and I in white

CI/CD 連携ユーザー ガイド

最終更新日時 2026年3月9日

UiPath のテストを実行

通常、[UiPath のテストを実行] タスクは Orchestrator で既存のテスト セットを実行します。また、UiPath テスト プロジェクトへのパスを指定し、このタスクを使用してテスト ケースをパッケージ化、デプロイ、実行することもできます。

タスクの実行が終了すると、テスト結果が Azure DevOps の [Test] タブにアップロードされます。テスト結果の出力パスを JUnit 形式で指定できます。

結果に基づき、ビルドは成功 (すべてのテスト ケースが成功) または失敗 (少なくとも 1 つのテスト ケースが失敗) とマークされます。

構成

以下の表を使用して、[UiPath のテストを実行] の入力を設定します。

引数説明
表示名 (必須)タスクの名前を入力します。
テストの実行方法を選択実行するテストを選択します。 テスト セットを実行: Test Manager または Orchestrator で既存のテスト セットを指定して実行します。プロジェクトでテストを実行する: プロジェクトを指定し、パッケージをデプロイして、テスト ケースを実行します。
Orchestrator への接続 (必須)UiPath Orchestrator サービスにアクセスするためのサービス接続を設定します。このステップのためだけの接続を設定するか、既存のグローバル接続を使用します。詳細については、「UiPath Orchestrator サービス接続を構成する」をご覧ください。
プロジェクト キー (Test Manager のみ)Test Manager でプロジェクト キー (プロジェクト プレフィックスとも呼ばれます) を指定します。Test Manager でテストを実行する場合は必須です。Orchestrator Testing Module は空のままにします。
入力パラメーターJSON 入力ファイルのファイル パスを指定します (例: Input\jobParameters.json)。テスト セット レベルで新しい入力引数を作成する場合は、 type 引数を指定します。それ以外の場合は、namevalue を使用できます。
テスト セット ([テスト セットを実行] メソッドの場合は必須)実行するテスト セットに表示される名前またはキーです。テスト セットに最新バージョンのテスト ケースが含まれていることを確認します。テスト セットが既定のフォルダーに含まれていない場合は、前に適切なフォルダー名を含めてください。たとえば、 AccountingTeam\TestSetを使用します。
テスト プロジェクトのパス ([Execute tests in project] メソッドの場合は必須)実行するテスト プロジェクトの場所を指定します。
ロボット グループ ([Execute tests in project] メソッドの場合は必須)クラシック フォルダー (非推奨) を使用する場合は、パッケージがデプロイされるロボット グループを定義する必要があります。このフィールドで、パッケージを作成または更新できます。次の例を使用して、このフィールドにコンマで区切ってロボット グループを追加できます。testingEnvironment, productionEnvironment
Orchestrator のフォルダー (必須)プロセスをデプロイするフォルダーを指定します。クラシック フォルダー (非推奨) では、特定のロボット名を使用できます。モダン フォルダーでは、特定のユーザー名とマシン名を使用できます。サブフォルダーを入力するには、親フォルダーの名前とサブフォルダーの名前の両方を入力してください。たとえば、 AccountingTeam\TeamJohnを使用します。
テスト結果の出力パステスト結果の出力パスを JUnit 形式で指定します (例: Output\testResults.json)。
Timeout要求がタイムアウトするまで待機する秒数を指定します。
トレース レベルドロップダウン リストからログ レベルを選択します。
Attach Robot Logs実行ロボットから INFO レベルのログを添付するには、このオプションを選択します。既定では、選択解除されています。詳細については、「ロボット ログ」をご覧ください。

docs image

YAML パイプライン

[UiPath のテストを実行] の完全に解析された YAML ドキュメントをプレビューできます。

例: Orchestrator からテスト セットを実行する

- task: UiPathTest@6
  displayName: 'Run Orchestrator Test Set'
  inputs:
    testTarget: TestSet
    orchestratorConnection: 'uipath-orchestrator-connection'
    testSet: 'MobileAutomationTests'
    folderName: 'MobileAutomationTesting'
    testReportDestination: '$(Build.ArtifactStagingDirectory)\report.xml'
    timeout: 3600
    traceLevel: 'Information'
- task: UiPathTest@6
  displayName: 'Run Orchestrator Test Set'
  inputs:
    testTarget: TestSet
    orchestratorConnection: 'uipath-orchestrator-connection'
    testSet: 'MobileAutomationTests'
    folderName: 'MobileAutomationTesting'
    testReportDestination: '$(Build.ArtifactStagingDirectory)\report.xml'
    timeout: 3600
    traceLevel: 'Information'

例: Test Manager からテスト セットを実行する

- task: UiPathTest@6
  displayName: 'Run Test Manager Test Set'
  inputs:
    testTarget: TestSet
    orchestratorConnection: 'uipath-orchestrator-connection'
    projectKey: 'PROJ'  # Test Manager project key (Project Prefix)
    testSet: 'TS-123'   # Test Manager test set key
    folderName: 'TestManagerFolder'
    testReportDestination: '$(Build.ArtifactStagingDirectory)\testmanager-results.xml'
    timeout: 3600
    attachRobotLogs: true
    traceLevel: 'Information'
- task: UiPathTest@6
  displayName: 'Run Test Manager Test Set'
  inputs:
    testTarget: TestSet
    orchestratorConnection: 'uipath-orchestrator-connection'
    projectKey: 'PROJ'  # Test Manager project key (Project Prefix)
    testSet: 'TS-123'   # Test Manager test set key
    folderName: 'TestManagerFolder'
    testReportDestination: '$(Build.ArtifactStagingDirectory)\testmanager-results.xml'
    timeout: 3600
    attachRobotLogs: true
    traceLevel: 'Information'

例: テスト プロジェクトを実行する

- task: UiPathTest@6
  displayName: 'Run Test Project'
  inputs:
    testTarget: TestProject
    orchestratorConnection: 'uipath-orchestrator-connection'
    testProjectPath: '$(Build.SourcesDirectory)\MobileAutomationTests'
    folderName: 'MobileAutomationTesting'
    environment: 'TestingRobots'  # Required only for classic folders
    testReportDestination: '$(Build.ArtifactStagingDirectory)\test-results.xml'
    timeout: 3600
    traceLevel: 'Information'
- task: UiPathTest@6
  displayName: 'Run Test Project'
  inputs:
    testTarget: TestProject
    orchestratorConnection: 'uipath-orchestrator-connection'
    testProjectPath: '$(Build.SourcesDirectory)\MobileAutomationTests'
    folderName: 'MobileAutomationTesting'
    environment: 'TestingRobots'  # Required only for classic folders
    testReportDestination: '$(Build.ArtifactStagingDirectory)\test-results.xml'
    timeout: 3600
    traceLevel: 'Information'

例: プロジェクト実行の Test Manager

- task: UiPathTest@6
  displayName: 'Run Test Manager Project'
  inputs:
    testTarget: TestProject
    orchestratorConnection: 'uipath-orchestrator-connection'
    projectKey: 'PROJ'  # Test Manager project key
    testProjectPath: '$(Build.SourcesDirectory)\TestProject'
    folderName: 'TestManagerFolder'
    parametersFilePath: '$(Build.SourcesDirectory)\test-params.json'
    testReportDestination: '$(Build.ArtifactStagingDirectory)\tm-project-results.xml'
    attachRobotLogs: true
    timeout: 7200
    traceLevel: 'Verbose'
- task: UiPathTest@6
  displayName: 'Run Test Manager Project'
  inputs:
    testTarget: TestProject
    orchestratorConnection: 'uipath-orchestrator-connection'
    projectKey: 'PROJ'  # Test Manager project key
    testProjectPath: '$(Build.SourcesDirectory)\TestProject'
    folderName: 'TestManagerFolder'
    parametersFilePath: '$(Build.SourcesDirectory)\test-params.json'
    testReportDestination: '$(Build.ArtifactStagingDirectory)\tm-project-results.xml'
    attachRobotLogs: true
    timeout: 7200
    traceLevel: 'Verbose'

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得