cicd-integrations
2024.10
true
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Guide de l'utilisateur des intégrations CI/CD

Dernière mise à jour 4 juil. 2025

Tester plusieurs packages

Prérequis :

Pour tester plusieurs packages, procédez comme suit :

  1. Exécutez la tâche test à l'aide de uipcli test. Vous pouvez remarquer une liste des sous-tâches disponibles.
  2. Spécifiez les paramètres requis et exécutez la sous-tâche parallel .

    Le tableau suivant décrit les paramètres requis :

    Paramètre

    Description

    --testsConfigurationFilePath

    Requis. Chemin d'accès au fichier avec les configurations des projets de test.

    Cette configuration décrit la liste des projets que vous souhaitez compresser, puis exécuter en parallèle, avec certaines options d'exécution.

    Chaque projet peut être configuré avec les options suivantes :

    • ProjectPath: le chemin d'accès au projet sur l'agent exécutant la tâche. Il peut s’agir d’un chemin relatif ou absolu.
    • AttachRobotLogs: si le paramètre est défini sur true, les journaux du robot seront inclus dans le fichier de rapport de test.
    • ContinueOnError: détermine si la tâche de pipeline doit échouer en cas d'échec de test associés.
    • RetryCount: le nombre de nouvelles tentatives par projet de test.
    • Timeout: délai d'expiration par projet de test en secondes (la valeur par défaut est 7200).
    • ParametersFilePath: le chemin d’accès à un fichier JSON qui contient les paramètres d’entrée du test. Similaire au fichier de paramètres utilisé pour la tâche UiPathTest.
    • Métadonnées du package de test :

      • ReleaseNotes

      • RepositoryUrl

      • RepositoryCommit

      • RepositoryBranch

      • RepositoryType

      • ProjectUrl

    Cette configuration peut également être formatée en JSON ou CSV.

    Exemple de schéma 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",
      }
    ][
      {
        "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",
      }
    ]

    Exemple de fichier CSV :

    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

    Chemin d'accès au répertoire racine des projets à tester. Requis lorsque projectPaths du testsConfigurationFile sont relatifs.

    --executionArtifactsDirectoryPath

    Chemin de répertoire dans lequel publier les artefacts d’exécution de test.

    --cliDirectoryPath

    Chemin d'accès au répertoire CLI ou uipcli.dll. Requis si vous exécutez la CLI via l'exécutable dotnet , facultatif lors de l'exécution uipcli.exe.

    --out

    Requis. Le type du fichier de résultat <jurit|uipath>.

    --disableBuiltInNugetFeeds

    Désactiver les flux NuGet intégrés utilisés dans le cadre de la compression des projets de test.

    -u, --username

    Requis. Le nom d'utilisateur Orchestrator utilisé pour l'authentification. Doit être utilisé avec le mot de passe.

    -p, --password

    Requis. Le mot de passe Orchestrator utilisé pour l'authentification. Doit être utilisé avec le nom d’utilisateur.

    -t, --token

    Requis. Le jeton d'actualisation Orchestrator utilisé pour l'authentification. Doit être utilisé avec le nom du compte et l’ID de client.

    -a, --accountName

    Requis. Le nom de l'organisation Orchestrator. Doit être utilisé avec le jeton d’actualisation et l’ID client.

    -A, --accountForApp

    Le nom de l'organisation Orchestrator. Doit être utilisé avec l’ID, la clé secrète et l’étendue pour l’application externe.

    -I, --applicationId

    Requis. ID de l’application externe. Doit être utilisé avec le nom de l’organisation, la clé secrète et l’étendue ou les étendues pour l’application externe.

    -S, --applicationSecret

    Requis. La clé secrète de l'application externe. Doit être utilisé avec le nom de l’organisation, l’ID et les étendues pour l’application externe.

    --applicationScope

    Requis. La liste des étendues d'application séparées par des espaces. Doit être utilisé avec le nom, l’ID et le secret de l’organisation pour l’application externe.

    -o, --organizationUnit

    Nom de dossier Orchestrator.

    -l, --language

    Langue des journaux traduits.

    --traceLevel

    Spécifie les types de messages de journal devant générer L'une des valeurs suivantes : Aucun, Critique, Erreur, Avertissement, Information, Détaillé. (la valeur par défaut est Information).

    --identityUrl (Required for PaaS or MSI deployments )

    URL of your identity server.

    Orchestrator URL(pos. 0)

    Requis. Il s'agit de l'URL de votre Orchestrator.

    Orchestrator Tenant(pos. 1)

    Locataire de l’instance d’Orchestrator.

Utilisation :

./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>]

Exemples  :

  • ./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"

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Uipath Logo
Confiance et sécurité
© 2005-2025 UiPath Tous droits réservés.