- 概要
- UiPath CLI
- Azure DevOps 拡張機能
- Jenkins プラグイン
前提条件:
- パッケージまたはテスト セットを作成します。
- CLI の
exeファイル (Windows の場合) またはdllファイル (Linux の場合) を実行します。 - Add the required Orchestrator API access application scopes.
パッケージをテストするには、次の手順を実行します。
-
uipcli testを使用してtestタスクを実行します。利用可能なサブタスクのリストが表示されます。 -
必要なパラメーターを指定し、
runサブタスクを実行します。以下のパラメーターのリストをご覧ください。
パラメーター 説明 -Pまたは--project-pathテストする Testing パッケージ ファイルのパスです。 -sまたは--testset実行するテスト セットに表示される名前です。 テスト セットにテスト ケースの最新バージョンが含まれるようにします。テスト セットが既定のフォルダーに含まれていない場合は、前に適切なフォルダー名を含めてください。 例: AccountingTeam\TestSet
--out結果ファイルの種類 <junit|uipath> です。 -rまたは--result_path結果を保存するファイルの保存先パスです。 -eまたは--environment(クラシック フォルダーの場合は必須)パッケージをデプロイするロボット グループです。 project pathと組み合わせて使用する必要があります。-wまたは--timeoutテスト セットが実行されるまで待機する時間 (秒) です。既定値は 7200 秒です。 -iまたは--input_path(エントリ ポイント ワークフローに、コマンド ラインを介して渡す入力パラメーターがある場合は必須)JSON 入力ファイルのフル パスです。 --attachRobotLogs実行された各テスト ケースのロボット ログと JUnit テスト レポートを添付します。 --repositoryUrlプロジェクトのバージョン管理が行われるリポジトリ URL です。
--repositoryCommitプロジェクトのビルド元のリポジトリ コミット。
--repositoryBranchプロジェクトの構築元のリポジトリブランチ。
--repositoryTypeVCS システム リポジトリの種類。
--projectUrlAutomation Hub のアイデアの URL
--releaseNotesリリース ノートを追加する --disableBuiltInNugetFeeds組み込みの NuGet フィードを無効化します。 --retryCount失敗したテスト ケースのリトライ回数。
-uまたは--username(ユーザー名とパスワードによる基本認証を使用する場合は必須)Orchestrator への認証に使用するユーザー名です。対応するパスワードと組み合わせて使用する必要があります。
-pまたは--password(ユーザー名とパスワードによる基本認証を使用する場合は必須)Orchestrator への認証に使用するパスワードです。対応するユーザー名と組み合わせて使用する必要があります。
-t, or--token(Required if you use token-based authentication)Orchestrator への認証に使用する OAuth2 更新トークンです。アカウント名およびクライアント ID と組み合わせて使用する必要があります。
-a, or--accountName(Required if you use token-based authentication)Orchestrator Cloud RPA のアカウント名です。OAuth2 更新トークンおよびクライアント ID と組み合わせて使用する必要があります。
-A、--accountForAppThe Orchestrator CloudRPA account name(organization name). You must pair it with the Application ID, Application Secret, and Application scope for external application.
-I, or--applicationId(Required if you use external application authentication)外部アプリケーション ID です。アプリケーション アカウント、アプリケーション シークレット、アプリケーション スコープと組み合わせて使用する必要があります。
-S, or--applicationSecret(Required if you use external application authentication)外部アプリケーション シークレットです。アプリケーション アカウント、アプリケーション ID、アプリケーション スコープと組み合わせて使用する必要があります。
--applicationScope(Required if you use external application authentication)アプリケーション スコープを単一のスペースで区切って列挙したリストです。外部アプリケーションのアプリケーション アカウント、アプリケーション ID、アプリケーション シークレットと組み合わせて使用する必要があります。
-oまたは--organizationUnitテスト セットを実行する Orchestrator フォルダーです。
-lまたは--languageOrchestrator のユーザー インターフェイスで使用する言語です。
-yまたは--disableTelemetryテレメトリ データを無効化します。
--traceLevelイベントのトレースを表示します。
--identityURL(PaaS デプロイの場合のみ必須)Identity Server の URL です。
--helpこのコマンドのパラメーターと例を表示します。
--versionバージョン情報を表示します。
Orchestrator URL (pos. 0)(必須)Orchestrator インスタンスの URL です。 Orchestrator Tenant (pos. 1)- (必須) SaaS デプロイの場合。
- (任意) PaaS デプロイの場合。
パッケージまたはテスト セットが存在するテナントです。
使用状況:
test run <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-P <package>] [-s <testset>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-e <environment>] [-o <folder_organization_unit>] [-l <language>]
test run <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-P <package>] [-s <testset>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-e <environment>] [-o <folder_organization_unit>] [-l <language>]
例:
test run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json"test run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -I "76000552-3e4f-4590-9317-cdb420001f1d" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" --identityUrl "https://orch-23-10-paas.cloudapp.azure.com/identity" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json"test run "https://automation-suite.base.url.com/" "TenantName" -A "organizationName" -I "3f6239b9-e0e8-465e-a429-d9ffd1d9e57a" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json"test run "https://cloud.uipath.com/" "TenantName" -A "organizationName" -I "becc663c-8f1e-409a-a75f-c00330d80bc8" -S "********" --applicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.jsontest run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json" --out junittest run "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName" --traceLevel Information -P "C:\userprofile\AutomationProjectWithTestCases\project.json" --out uipath