cicd-integrations
2024.10
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.
UiPath logo, featuring letters U and I in white

Benutzerhandbuch zu CI/CD-Integrationen

Letzte Aktualisierung 12. Nov. 2025

Testen mehrerer Pakete

Prerequisites:

Um mehrere Pakete zu testen, führen Sie die folgenden Schritte aus:

  1. Führen Sie die test -Aufgabe mit uipcli test aus. Sie können eine Liste der verfügbaren Unteraufgaben sehen.
  2. Geben Sie die erforderlichen Parameter an und führen Sie die parallel -Unteraufgabe aus. In der folgenden Tabelle sind die erforderlichen Parameter beschrieben:

Parameter

Beschreibung

--testsConfigurationFilePath

Erforderlich. Pfad zur Datei mit Testprojektkonfigurationen.

Diese Konfiguration beschreibt die Liste der Projekte, die Sie verpacken und dann parallel ausführen möchten, mit bestimmten Ausführungsoptionen.

Jedes Projekt kann mit den folgenden Optionen konfiguriert werden:

  • ProjectPath : Der Pfad zum Projekt auf dem Agenten, der die Aufgabe ausführt. Dies kann ein relativer oder absoluter Pfad sein.
  • AttachRobotLogs : Wenn auf true festgelegt, werden die Roboterprotokolle in die Testberichtsdatei aufgenommen.
  • ContinueOnError : Bestimmt, ob die Pipelineaufgabe bei zugehörigen Testfehlern fehlschlagen soll.
  • RetryCount : Die Anzahl der Wiederholungsversuche pro Testprojekt.
  • Timeout : Timeout pro Testprojekt in Sekunden (Standard ist 7200).
  • ParametersFilePath : Der Pfad zu einer JSON-Datei, die Eingabeparameter für den Test enthält. Diese ähnelt der Parameterdatei, die für die UiPathTest-Aufgabe verwendet wird.
  • Metadaten des Testpakets:

    • ReleaseNotes

    • RepositoryUrl

    • RepositoryCommit

    • RepositoryBranch

    • RepositoryType

    • ProjectUrl

Diese Konfiguration kann auch in JSON oder CSV formatiert werden.

Beispiel für ein JSON-Schema:

[
{
"ProjectPath": "path/to/project",
"AttachRobotLogs": true,
"ContinueOnError": false,
"RetryCount": 3,
"Timeout": 7200,
"ParametersFilePath": "path/to/parameters.json",
"ReleaseNotes": "release notes for the test project",
"RepositoryUrl": "http://repositoryurl.com",
"RepositoryCommit": "commit hash",
"RepositoryBranch": "branch name",
"RepositoryType": "git",
"ProjectUrl": "http://projecturl.com"
},
{
"ProjectPath": "path/to/project2"
},
{
"ProjectPath": "path/to/project3",
"ParametersFilePath": "path/to/parameters3.json"
}
][
{
"ProjectPath": "path/to/project",
"AttachRobotLogs": true,
"ContinueOnError": false,
"RetryCount": 3,
"Timeout": 7200,
"ParametersFilePath": "path/to/parameters.json",
"ReleaseNotes": "release notes for the test project",
"RepositoryUrl": "http://repositoryurl.com",
"RepositoryCommit": "commit hash",
"RepositoryBranch": "branch name",
"RepositoryType": "git",
"ProjectUrl": "http://projecturl.com"
},
{
"ProjectPath": "path/to/project2"
},
{
"ProjectPath": "path/to/project3",
"ParametersFilePath": "path/to/parameters3.json"
}
]

CSV-Beispiel:

ProjectPath,AttachRobotLogs,ContinueOnError,RetryCount,Timeout,ParametersFilePath,ReleaseNotes,RepositoryUrl,RepositoryCommit,RepositoryBranch,RepositoryType,ProjectUrl
path/to/project,true,false,3,7200,path/to/parameters.json,release notes for the test project,http://repositoryurl.com,commit hash,branch name,git,http://projecturl.com
path/to/project2,,,,,,,,,,,
path/to/project3,,,,,path/to/parameters3.json,,,,,,ProjectPath,AttachRobotLogs,ContinueOnError,RetryCount,Timeout,ParametersFilePath,ReleaseNotes,RepositoryUrl,RepositoryCommit,RepositoryBranch,RepositoryType,ProjectUrl
path/to/project,true,false,3,7200,path/to/parameters.json,release notes for the test project,http://repositoryurl.com,commit hash,branch name,git,http://projecturl.com
path/to/project2,,,,,,,,,,,
path/to/project3,,,,,path/to/parameters3.json,,,,,,

--projectsRootDirectoryPath

Pfad zum Stammverzeichnis der zu testenden Projekte. Erforderlich, wenn projectPaths aus den testsConfigurationFile relativ ist.

--executionArtifactsDirectoryPath

Verzeichnispfad, in dem Testausführungsartefakte veröffentlicht werden sollen.

--cliDirectoryPath

Pfad zum CLI-Verzeichnis oder uipcli.dll . Erforderlich beim Ausführen der CLI über die ausführbare dotnet -Datei, optional beim Ausführen von uipcli.exe .

--out

Erforderlich. Typ der Ergebnisdatei: ≪Junit|UIPath>.

--disableBuiltInNugetFeeds

Deaktivieren Sie integrierte NuGet-Feeds, die beim Packen von Testprojekten verwendet werden.

-u, --username

Erforderlich. Der Orchestrator-Benutzername, der für die Authentifizierung verwendet wird. Muss zusammen mit dem Kennwort verwendet werden.

-p, --password

Erforderlich. Das für die Authentifizierung verwendete Orchestrator-Kennwort. Muss zusammen mit dem Benutzernamen verwendet werden.

-t, --token

Erforderlich. Das für die Authentifizierung verwendete Orchestrator-Aktualisierungstoken. Muss zusammen mit dem Kontonamen und der Client-ID verwendet werden.

-a, --accountName

Erforderlich. Der Name der Orchestrator-Organisation. Muss zusammen mit dem Aktualisierungstoken und der Client-ID verwendet werden.

-A, --accountForApp

Der Name der Orchestrator-Organisation. Muss zusammen mit ID, Geheimnis und Scope(s) für eine externe Anwendung verwendet werden.

-I, --applicationId

Erforderlich. Die ID der externen Anwendung. Muss zusammen mit Organisationsname, Geheimnis und Scope(s) für eine externe Anwendung verwendet werden.

-S, --applicationSecret

Erforderlich. Der geheime Schlüssel der externen Anwendung. Muss zusammen mit Organisationsname, ID und Scope(s) für eine externe Anwendung verwendet werden.

--applicationScope

Erforderlich. Die durch Leerzeichen getrennte Liste der Anwendungs-Scopes. Muss zusammen mit Organisationsname, ID und Geheimschlüssel für eine externe Anwendung verwendet werden.

-o, --organizationUnit

Der Name des Orchestrator-Ordners.

-l, --language

Sprache für die übersetzten Protokolle.

--traceLevel

Gibt an, welche Arten von Protokollnachrichten ausgegeben werden sollen. Einer der folgenden Werte: Keine, Kritisch, Fehler, Warnung, Information, Ausführlich. (Standard ist Information).

--identityUrl ( Erforderlich für PaaS- oder MSI- Bereitstellungen )

URL Ihres Identitätsservers.

Orchestrator URL (Pos. 0)

Erforderlich. Die URL der Orchestrator-Instanz.

Orchestrator Tenant (Pos. 1)

Der Mandant der Orchestrator-Instanz.

Verwendung:

./uipcli.exe test parallel <orchestrator_url> <orchestrator_tenant> [--testsConfigurationFilePath <tests_config_file_path>] [--projectsRootDirectoryPath <test_projects_root_directory_path>] [--executionArtifactsDirectoryPath <execution_artifacts_directory_path>] [--cliDirectoryPath <uipcli_dll_path>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <organization_name> -I <application_id> -S <application_secret> --applicationScope <application_scope>] [-o <folder_name>] [-l <language>] [--out <junit|uipath>] [--disableBuiltInNugetFeeds] [--traceLevel <None|Critical|Error|Warning|Information|Verbose>] [--identityUrl <identityUrl>]./uipcli.exe test parallel <orchestrator_url> <orchestrator_tenant> [--testsConfigurationFilePath <tests_config_file_path>] [--projectsRootDirectoryPath <test_projects_root_directory_path>] [--executionArtifactsDirectoryPath <execution_artifacts_directory_path>] [--cliDirectoryPath <uipcli_dll_path>] [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <organization_name> -I <application_id> -S <application_secret> --applicationScope <application_scope>] [-o <folder_name>] [-l <language>] [--out <junit|uipath>] [--disableBuiltInNugetFeeds] [--traceLevel <None|Critical|Error|Warning|Information|Verbose>] [--identityUrl <identityUrl>]

Beispiele:

  • ./uipcli.exe test parallel "https://orch-23-10-paas.cloudapp.azure.com/" "TenantName" -u "orchestratorUsername" -p "********" -o "FolderName" --traceLevel Information --testsConfigurationFilePath "C:\userprofile\pipeline-repo-folder\test-configuration.json" --projectsRootDirectoryPath "C:\userprofile\test-projects-repo-folder" --executionArtifactsDirectoryPath "C:\userprofile\pipeline-execution-folder" --cliDirectoryPath "C:\userprofile\cli-download-path\UiPath.CLI.Windows\tools\uipcli.dll" --out "junit"
  • ./uipcli.exe test parallel "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" --testsConfigurationFilePath "C:\userprofile\pipeline-repo-folder\test-configuration.json" --projectsRootDirectoryPath "C:\userprofile\test-projects-repo-folder" --executionArtifactsDirectoryPath "C:\userprofile\pipeline-execution-folder" --cliDirectoryPath "C:\userprofile\cli-download-path\UiPath.CLI.Windows\tools\uipcli.dll" --out "junit" "C:\userprofile\AutomationProjectWithTestCases\project.json"
  • ./uipcli.exe test parallel "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 --testsConfigurationFilePath "C:\userprofile\pipeline-repo-folder\test-configuration.json" --projectsRootDirectoryPath "C:\userprofile\test-projects-repo-folder" --executionArtifactsDirectoryPath "C:\userprofile\pipeline-execution-folder" --cliDirectoryPath "C:\userprofile\cli-download-path\UiPath.CLI.Windows\tools\uipcli.dll" --out "junit"
  • ./uipcli.exe test parallel "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 --testsConfigurationFilePath "C:\userprofile\pipeline-repo-folder\test-configuration.json" --projectsRootDirectoryPath "C:\userprofile\test-projects-repo-folder" --executionArtifactsDirectoryPath "C:\userprofile\pipeline-execution-folder" --cliDirectoryPath "C:\userprofile\cli-download-path\UiPath.CLI.Windows\tools\uipcli.dll" --out "junit"

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
Uipath Logo
Vertrauen und Sicherheit
© 2005–2025 UiPath. Alle Rechte vorbehalten