Test Suite
2023.4
false
Banner background image
Test Suite User Guide
Last updated Feb 28, 2024

Packing Projects Into a Package

Prerequisites:

  • Create projects.
  • Run the CLI exe (for Windows) or dll (for Linux) file.
  • Add the Orchestrator API Access Application Scopes below:

    Application Scope

    Description

    OR.Assets

    Assets read and write access in Orchestrator.

    OR.BackgroundTasks

    BackgroundTasks read and write access in Orchestrator.

    OR.Execution

    Execution read and write access in Orchestrator.

    OR.Folders

    Folders read and write access in Orchestrator.

    OR.Jobs

    Jobs read and write access in Orchestrator.

    OR.Machines.Read

    Machines read access in Orchestrator.

    OR.Monitoring

    Monitoring read and write access in Orchestrator.

    OR.Robots.Read

    Robots read access in Orchestrator.

    OR.Settings.Read

    Settings read access in Orchestrator.

    OR.TestSets

    TestSets read and write access in Orchestrator.

    OR.TestSetExecutions

    TestSetExecutions read and write access in Orchestrator.

    OR.TestSetSchedules

    TestSetSchedules read and write access in Orchestrator.

    OR.Users.Read

    Users read access in Orchestrator.

  1. Run the package task, using uipcli package. You can see a list of the available sub-tasks.
  2. Specify the required parameters and run the pack sub-task.

    See the list of parameters below.

Legend: (*) - Optional, useful only when you have dependencies from a library in Orchestrator.

Parameter

Description

Project(s) Path (pos. 0) (Required)
The path to a project.json file, or to a folder that contains project.json files.
-o, or --output (Required)

The destination Orchestrator folder, where you want to package the projects.

-v, or --version

Set the package version.

--autoVersion

Auto-generates a package version.

--outputType

Forces the output to be a specific type.

--libraryOrchestratorUsername (*)

(Required if you use Basic Authentication, through a username and a password)

The username used for authenticating to Orchestrator. You must pair it with the corresponding password.

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorPassword (*)

(Required if you use Basic Authentication, through a username and a password)

The password used for authenticating to Orchestrator. You must pair it with the corresponding username.

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorAuthToken (*)

(Required if you use token-based authentication)

The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID.

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorAccountName (*)

(Required if you use token-based authentication)

The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID.

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorAccountForApp (*)

The Orchestrator CloudRPA account name. You must pair it with the Application ID,Application Secret, and Application scope for external application

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorApplicationId (*)
The external Application ID. You must pair it with the Application Account, Application Secret, and Application scope.

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorApplicationSecret (*)

The external Application Secret. You must pair it with the Application Account,Application ID, and Application scope.

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorApplicationScope (*)

The list of application scopes, separated by single spaces. You must pair it with the Application Account,Application ID, and Application Secret for external application.

This is required if your package references libraries from Orchestrator feed

--libraryOrchestratorFolder (*)

The name of the target Orchestrator folder.

To input subfolders make sure to input both the parent folder name and the name of the subfolder. For instance, use AccountingTeam\TeamJohn.
--libraryOrchestratorUrl (*)

The URL of the Orchestrator instance.

--libraryOrchestratorTenant (*)

The tenant of the Orchestrator instance where you want to delete a machine.

-y, or --disableTelemetry

Disable telemetry data.

--traceLevel

Display the trace of the events.

-l, or --language

The language used in the Orchestrator user interface.

--help

Displays the parameters and examples for this command.

Examples:

  • package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" -v 1.0.6820.22047.
  • package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" --autoVersion.
  • package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" --outputType Tests -l en-US.

Adding an External Application

To register an external application so that it can access your UiPath resources using OAuth:

  1. Log in to the tenant as an Administrator.
  2. Go to Tenant > Manage access > Assign roles and click Manage Accounts & Groups.

    The tenant-level opens.

  3. Along the left, select External Applications.

    The External Applications page opens, listing all the existing external applications registered for the current tenant:



  4. Above the table, on the right, click Add Application.
  5. Fill in the Application Name field.
  6. Select an option for Application Type.

    If you select Confidential application, you receive an app secret at the end, so make sure your application can store it securely. If it can't, select Non-confidential application.

  7. Under Resources, click Add Scopes.

    The Edit Resource panel opens on the right, where you can select the resources to which the application should have access.

  8. From the Resource drop-down list, select the UiPath API that the application can use.
    Note: You can only add scope for one resource at a time. If you want to allow access to multiple resources, repeat this process to add scope for each resource.
  9. On the User Scope(s) tab, select the check boxes for the logical API permissions that you want to grant, as needed.

    Granting permissions under user scope means that the external application can access those resources within a user context and a user with the appropriate permissions must be logged in.

  10. If this is a confidential application, you can switch to the Application Scope(s) tab to also grant application-level permissions for the selected resource, as needed.

    With permissions under application scope, the external application has access to application-wide data for the selected scopes without the need for user interaction.

    Non-confidential applications cannot access application scope.

  11. Click Save.

    The panel closes and the selected resource and scopes are added to the Resources table in the form.

  12. If the external application can accept it, you can add a URL in the Redirect URL field and the authorization response is sent there. The application can then use it to access UiPath resources.
  13. Click Add to create the registration.

    A confirmation message opens. For confidential applications, the confirmation message includes the app secret that the registered external application can use to request authorization. Make sure you save it in a secure location because you cannot see it again.

  • Adding an External Application

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.