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

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

最終更新日時 2025年11月18日

Testing a package or running a test set in Test Manager

前提条件
  1. Use the latest Test Manager version (Test Manager 2.2510 or higher for Automation Suite delivery or Test Manager 25.10 or higher for standalone installation).

  2. If you already have a test set running in Orchestrator, import the test set to Test Manager. For more information, refer to Test Manager - Importing Orchestrator test sets. Get the testset-key after import.

  3. Create a project in Test Manager and get the project-key. Get the project-key from Test Manager > Dashboard tab > Projects > All projects.

  4. Create a package or a test set with automated test cases. Get the testset-key from Test Manager > Test Sets tab > Key column.

  5. Get the ClientId and ClientSecret. For more information on how to get the ClientID and ClientSecret, refer to the Registering an external application section of the CI/CD integrations - Executing UiPath CLI tasks topic.

  6. Run the uipcli.dll file for Windows/Linux/macOS.

  7. Add the required Test Manager API access application scopes. For more information on the Test Manager scopes, refer to the CI/CD integrations - Executing UiPath CLI tasks topic.

Using Test Manager with CLI

To test a package using Test Manager, take the following steps: Run the test task, using uipcli test. You can notice a list of available sub-tasks. Specify the required parameters and run the run sub-task.

To use Test Manager instead of Orchestrator testing, specify the --projectKey parameter in the test run command. The CLI will automatically route your tests through Test Manager.

Test command parameters
パラメーター説明Required
Orchestrator URL (pos. 0)The URL of the Orchestrator instanceはい
Orchestrator Tenant (pos. 1)The tenant inside which the package, or Test Set areRequired for SaaS deployments, Optional for PaaS deployments
-P, --project-pathThe path to the Testing package file that you want to testいいえ
--projectKeyThe project key displayed in Test Manager > Dashboard tab > Projects > All projects. The project key is the prefix for all object keys.Yes (for Test Manager)
--testsetkeyThe Test Set key displayed in Test Manager Test Manager > Test Sets tab > Key column. Ensure that the Test Set includes the most recent version of the Test Cases. If the Test Set is not in the default folder, make sure to include the relevant folder name before it. For instance, use AccountingTeam\TestSet.いいえ
-s, --testsetThe name shown for the Test Set you wish to execute. Ensure that the Test Set includes the most recent version of the Test Cases. If the Test Set isn't in the default folder, make sure to include the relevant folder name before it. For instance, use AccountingTeam\TestSetいいえ
--outThe type of the result file (junit or uipath)いいえ
-r, --result_pathThe destination path of the file where you want to store the resultsいいえ
-e, --environmentThe environment where you want to deploy the package. You must pair it with the project pathRequired for classic folders
-w, --timeoutThe time (in seconds) that you want to wait for the Test Set to execute. The default value is 7200 secondsいいえ
-i, --input_pathThe full path to a JSON input fileRequired if the entry-point workflow has input parameters
--attachRobotLogsAttaches Robot Logs for each executed Test Case, and a JUnit Test Reportいいえ
--repositoryUrlThe repository URL where the project is versionedいいえ
--repositoryCommitThe repository commit where the project was built fromいいえ
--repositoryBranchThe repository branch where the project was built fromいいえ
--repositoryTypeVCS system repository typeいいえ
--projectUrlAutomation Hub idea URLいいえ
--releaseNotesリリースノートの追加いいえ
--disableBuiltInNugetFeeds組み込みの NuGet フィードを無効化いいえ
--retryCountNumber of retries for failed test cases (by default, no retry is set)いいえ
-u, --usernameThe username used for authenticating to Orchestrator. You must pair it with the corresponding passwordRequired for Basic Authentication
-p, --passwordThe password used for authenticating to Orchestrator. You must pair it with the corresponding usernameRequired for Basic Authentication
-t, --tokenThe OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client IDRequired for token-based authentication
-a, --accountNameThe Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client IDRequired for token-based authentication
-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, --applicationIdThe external Application ID. You must pair it with the Application Account, Application Secret, and Application scopeRequired for external application authentication
-S, --applicationSecretThe external Application Secret. You must pair it with the Application Account, Application ID, and Application scopeRequired for external application authentication
--applicationScopeThe list of application scopes, separated by single spaces. You must pair it with the Application Account, Application ID, and Application Secret for external applicationOptional for external application authentication. Using default scopes if not specified otherwise
-o, --organizationUnitThe Orchestrator folder where you want to execute the Test Setsいいえ
--authorThe package author.いいえ
-l, --languageThe language used in the Orchestrator user interfaceいいえ
--traceLevelDisplay the trace of the eventsいいえ
--identityURLThe URL of your identity serverRequired for PaaS or MSI deployments
注:

When using external application authentication without specifying the --applicationScope parameter, the CLI automatically applies these default Test Manager scopes:

TM.Projects TM.TestSets TM.TestExecutions

In addition to default OR scopes:

OR.Assets OR.BackgroundTasks OR.Execution OR.Folders OR.Robots.Read OR.Machines.Read OR.Jobs OR.TestSets OR.TestSetExecutions OR.Monitoring OR.Settings.Read

使用例

Execute an existing test set in Test Manager:

# Windowsuipcli test run "https://cloud.uipath.com/" "TenantName" `  --projectKey "MyTestProject" `  --testsetkey "MyTestSet" `  -A "organizationName" `  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" `  -S "********" `  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" `  -o "FolderName" `  --out "junit" `  --result_path "C:\TestResults"  --author ExampleAuthor# Linux/macOSuipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./test-results"  --author ExampleAuthor# Windowsuipcli test run "https://cloud.uipath.com/" "TenantName" `  --projectKey "MyTestProject" `  --testsetkey "MyTestSet" `  -A "organizationName" `  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" `  -S "********" `  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" `  -o "FolderName" `  --out "junit" `  --result_path "C:\TestResults"  --author ExampleAuthor# Linux/macOSuipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./test-results"  --author ExampleAuthor

Create and execute a transient test set from a project:

Transient test sets are temporary test sets created on-the-fly from your project path.

uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  -P "./MyTestProject/project.json" \  -e "TestEnvironment" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "uipath" \  --result_path "./test-results"uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  -P "./MyTestProject/project.json" \  -e "TestEnvironment" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "uipath" \  --result_path "./test-results"

Execute tests with parameter overrides:

uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  -i "./test-parameters.json" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./test-results"uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  -i "./test-parameters.json" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./test-results"

Execute tests with robot logs attachment:

uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  --attachRobotLogs true \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./test-results"uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  --attachRobotLogs true \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./test-results"
Report types

Test Manager supports two output formats:

形式説明ユースケース
junitJUnit XML formatCI/CD integration (Jenkins, Azure DevOps, GitHub Actions)
uipathUiPath native formatDetailed execution reports with Test Manager-specific data

Migration from Orchestrator testing

Before (Orchestrator testing):

uipcli test run "https://cloud.uipath.com/" "TenantName" \  -s "MyTestSet" \  -u "username" \  -p "password" \  -o "FolderName" \  -P "./project.json"uipcli test run "https://cloud.uipath.com/" "TenantName" \  -s "MyTestSet" \  -u "username" \  -p "password" \  -o "FolderName" \  -P "./project.json"

After (Test Manager):

uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./results"uipcli test run "https://cloud.uipath.com/" "TenantName" \  --projectKey "MyTestProject" \  --testsetkey "MyTestSet" \  -A "organizationName" \  -I "becc663c-8f1e-409a-a75f-c00330d80bc8" \  -S "********" \  --applicationScope "OR.Folders OR.Execution TM.Projects TM.TestSets TM.TestExecutions" \  -o "FolderName" \  --out "junit" \  --result_path "./results"

Key differences:

  1. Add --projectKey parameter to enable Test Manager
  2. Use --testsetkey instead of -s for test set identification
  3. Test Manager requires OAuth authentication (application credentials)
  4. Specify output format with --out and destination with --result_path

ベスト プラクティス

Test Manager setup:

  • Create dedicated Test Manager projects for different applications or teams
  • Use meaningful project keys and test set keys for easy identification
  • Organize test sets by purpose (regression, smoke, integration, etc.)

Parameter management:

  • Use parameter files (-i) for environment-specific configurations
  • Store sensitive parameters in CI/CD secrets, not in parameter files
  • Document required parameters in your test set descriptions

Retry logic:

  • Use --retryCount for flaky tests that may fail intermittently
  • Set appropriate --timeout values based on test duration
  • Monitor retry patterns to identify and fix unstable tests

Reporting:

  • Use junit format for CI/CD pipeline integration
  • Use uipath format for detailed analysis in Test Manager
  • Enable --attachRobotLogs for debugging test failures

CI/CD integration:

  • Configure Test Manager authentication using secure environment variables
  • Set up automated test execution on code commits or pull requests
  • Archive test reports as build artifacts for historical tracking

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

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
Uipath Logo
信頼とセキュリティ
© 2005-2025 UiPath. All rights reserved.