UiPath Documentation
studio
2022.4
false
Studio 用户指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

2022.4.1

发布日期:2022 年 5 月 9 日

新增功能

Studio 已迁移至 .NET 6

Studio 现在使用最新的 .NET 版本,即 .NET 6。Windows 和跨平台项目现在也倾向使用 .NET 6。

为项目添加标签

Organizing your automations is now easier with the introduction of project tags. Tags you add to projects are included in the published packages and can be applied to Orchestrator processes, making them easier to find. You can define two types of tags - labels and properties (key-value pairs) from the project settings or from the publish wizard by creating new tags or reusing tags that are already defined in Orchestrator. See Organizing resources with tags to find out more about tags in Orchestrator.

防止将存在工作流分析器错误的项目发送到远程存储库

We’ve added a new way in which you can ensure automation best practices are followed. You can now prevent projects with Workflow Analyzer errors from being sent to remote repositories by enabling the option Enforce Analyzer before Push/Check-in located in Studio Backstage View > Settings > Design. Organizations can control this setting using governance policies.

导入工作流时更新依赖项

To help you avoid unresolved activities when you import a workflow into a project, Studio now checks the dependencies of the project from which the file is imported, notifies you if any discrepancies are found, and prompts you to install missing packages and update packages that use an older version in the current project. For more information about importing files, see Context Menu for Projects.

用于机器人身份验证的基于 OAuth 2.0 的框架

在此版本中,我们提供了一种新的机器人身份验证机制,该机制使用 OAuth 2.0 框架作为其身份验证协议的基础,这意味着无人值守机器人可以使用客户端 ID(通过计算机模板对象生成的客户端密码对)连接到 Orchestrator。客户端 ID - 客户端密码对生成一个令牌,用于授权连接,并向机器人提供对 Orchestrator 资源的访问权限。

客户端凭据允许 UiPath 机器人使用其自己的凭据(而不是模拟用户)访问资源。当机器人从 Orchestrator 请求资源时,由于没有用户参与身份验证,Orchestrator 会强制机器人本身具有执行操作的权限。

Instructions for RPA developers and attended users on how to connect their robots to Orchestrator from the Assistant and from.Studio.

跨平台项目中的用户界面自动化

The UI Automation activities package now supports cross-platform projects and is a default dependency in all projects with the cross-platform compatibility. You can use the activities in this package to automate tasks performed in the Chrome web browser. Please note that the package does not support cross-platform projects for which the Starts in Background project setting is enabled. For more information, see Chrome Automation on Linux Robots.

引入可自定义的模板字段

We’ve added customizable fields to our templates, allowing a template to become a sample task with activities in place that you can configure by filling in the blank fields with your data.

When creating a template, you can mark and unmark fields as customizable by using the Plus 文档图像 menu and selecting Mark as customizable or Unmark as customizable. Customizable fields are marked with an icon and the data inside is cleared when the template is published.

新的测试自动化功能

使用 Data Service 进行的数据驱动测试

数据驱动型测试通过 UiPath Data Service 扩展其数据源类型。您可以从 Data Service 实体聚合测试用例的数据。您可以按条件筛选数据,并将其用作构建测试用例的参数。

重要提示:

This feature requires an Automation Cloud license.

For more information, see Testing through Data Service.

使用自动生成的数据进行的数据驱动测试

自动生成的数据是测试工作的附加数据源。您可以生成值来解决工作流条件并实现高活动覆盖率。

描述符覆盖率

Validation across Selectors and Object Repository items is now available with Descriptor coverage. See if your targets are indicated correctly by looking at the selector coverage of your test executions.

改进

性能和可用性

  • 我们进行了许多增强,使 Studio 的启动速度提高了 33%,打开和创建项目的速度提高了 14%,并提高了在具有大量文件的项目中向来源控件发送更改的速度。为了改善加载项目时的用户体验,现在会显示有关添加和恢复依赖项进度的更多信息。
  • 现在,无论是在执行时还是在发布时,Windows 和跨平台项目的编译速度都会更快。此外,当您执行项目时,即使您在两次执行之间关闭并重新打开项目,也只会重新编译自上次执行以来已更改的文件。
  • 现在,仅在打开项目后第一次运行工作流分析器时,才执行完整的项目分析和验证。后续分析仅检查自上次执行分析以来已更改的文件。
  • 现在,当调试操作停止时,Windows 任务栏中的 Studio 图标会闪烁,使您可以更轻松地查看执行何时成功结束、到达断点或暂停活动或遇到异常。
  • 当到达断点并暂停调试时,Windows 任务栏中的 Studio 缩略图预览中现在也提供了“继续”按钮,使您能够快速继续执行。
  • 我们使 Studio 后台视图中的“工具”页面更实用且更易于导航:
    • 应用程序和扩展程序现在可在单独的选项卡上使用。
    • 如果已安装扩展程序,则会为其显示“已安装”标签。
    • 您现在还可以卸载扩展程序,而不仅仅是安装它们。将鼠标悬停在扩展程序上方时,系统将根据当前状态显示该扩展程序的“安装”或“卸载”按钮。
    • 现在还提供一个新的“插件”选项卡。它包含来源控件插件的设置(“设置” > “团队”)和测试自动化插件。
  • Studio 窗口现在的默认大小为 1280x680 像素,最小大小为 1024x640 像素。
  • 如果“捕获所有元素”向导未正确标识某些元素,则现在可以直接在向导中使用“报告问题”选项。这使您能够向 UiPath 发送包含意外结果区域图像的报告,这有助于我们日后改进检测。
  • The menu displayed when you click the Plus文档图像 button on the right side of activity fields now includes the option to create a variable.
  • A new option called Choose Date/Time has been added to the Plus文档图像 menu for fields that support TimeSpan values.

Studio 安装程序

The Studio installer has received a few updates:

  • 现在,您可以选择为当前用户或自定义安装中计算机上的所有用户安装 Studio 和机器人。
  • 现在会始终安装本地活动订阅源,并且安装向导中不再提供禁用它的选项。
  • To reduce the size of the Studio MSI installer, the UiPath.IntelligentOCR.Activities package is no longer included in the installer, and therefore not available in the local activities feed. The package is available for installation in the Official UiPath feed. If Studio is installed on a computer that is not connected to the internet, you can download UiPath.IntelligentOCR.Activities v6.0.1 on another computer and copy it to the Studio computer. For more information, see Managing Activities Packages.
  • 我们删除了卸载或更新时会显示的不必要提示(提示您关闭某些打开的应用程序)。
  • When the options you select in the Studio installer cause the installation to require elevated privileges, the 文档图像 icon is now displayed on the Install button to indicate administrator rights are needed to continue.

远程调试

  • Remote debugging with an unattended robot connection now supports remote robots that are not the same version as Studio. For remote machine connections, the Studio and Robot versions must match.
  • 如果您在未启动远程执行的情况下关闭 Studio,则与您建立无人值守机器人远程调试连接的计算机上的远程调试代理将自动停止。

测试自动化

测试探测器

  • “测试资源管理器”面板显示已折叠的数据驱动测试用例,因此您可以快速浏览包含大量文件的测试自动化文件夹。您可以使用这两个新按钮来扩展或折叠工作流和测试用例面板信息。此外,现在可以查看每个测试用例的变体数量。
  • 现在可以在“测试资源管理器”上下文菜单中添加、更新和删除测试数据。
  • 您可以按“编辑状态”进行筛选,以查看已从执行或正在进行的测试用例中忽略的工作流的数量。

后台流程支持

测试自动化项目支持后台流程,这意味着您可以使用单个机器人并行执行测试用例。

辅助功能快捷方式

添加了键盘快捷方式,以帮助您找到所需的测试自动化功能。

用户体验

  • 您可以在“测试资源管理器”面板中查看每个已执行测试的持续时间。
  • 数据变体根据其相应的索引顺序显示,同时将光标悬停在每个项目上会显示所有参数和关联值的列表视图。

UiPath Activities API 发行说明

The UiPath.Activities.Api SDK package now has its own release notes page where you can see what's changed starting with version 21.10.3.

即将弃用

Studio 2022.10 将是支持创建具有 Windows 旧版兼容性的项目的最后一个版本。在 Studio 2023.4 中,您将能够创建 Windows 或跨平台项目,并且只能打开和编辑在 Studio 的早期版本中创建的 Windows 旧版项目。从 Studio 2022.10 开始,我们将提供一个迁移工具,您可借此将 Windows 旧版项目转换为 Windows 兼容性项目。

重要提示:

2022 年 7 月 21 日勘误:最初宣布在 Studio 2022.10 中终止支持创建 Windows 旧项目。现在计划在 Studio 2023.4 中进行此更改。

重大变更

When sending Studio usage data to Application Insights was enabled in Studio 2021.10, the NewProject event was generated twice, first when the user selected to create a new project in the Studio Backstage View, and again when the user clicked the Create button in the new project dialog. For better clarity, the event generated when the user clicks the Create button in the new project dialog has been renamed NewProjectCreated.

错误修复

  • 使用 AltGr + C 等键盘快捷方式在表达式中写入特殊字符,这在波兰语键盘上无法正常工作。
  • 创建项目时可能发生连接已关闭错误。
  • 对于始终启用编译的 Windows 和跨平台库,启用/禁用“编译活动表达式”的选项错误地显示在“项目设置”窗口中。
  • 发布包含调用另一个私有工作流文件的私有工作流文件的库时,发生编译错误。
  • 当您运行 UiPath.RemoteDebugging.Agent.exe enable 命令以在远程机器人上启动远程调试会话时,该命令的确认消息未显示在 Studio 中设置远程计算机连接时必须提供的主机名和端口。
  • 在 Studio 2021.10.4 版中打开机器人企业框架模板会导致错误。在禁用所有在线订阅源并删除包文件夹的情况下,会发生此问题。
  • 由于 Orchestrator 连接问题而生成的 Rest API 异常未提供用户友好的错误消息。
  • 当 Studio 中的界面语言设置为德语时,选择“删除未使用的变量”时也会删除已使用的变量。
  • 当工作流包含在不同作用域中创建的两个同名变量(一个已使用,另一个未使用)时,选择“删除未使用的变量”会删除两个变量,而不仅仅是未使用的变量。
  • 编辑包含代理项对的表达式时发生错误。
  • 当 Studio 中的界面语言设置为法语时,“设计器”面板上下文菜单中“启用活动”选项的标签错误地将 CTRL + D 指示为该操作的键盘组合。
  • 当由于当前用户无权访问 C:\Windows\Temp 文件夹而导致安装失败时,错误消息没有明确指出错误的原因。
  • 当用于放置在两个嵌套的“附加窗口”活动中的活动时,“从此活动运行”功能运行异常。
  • 从 Studio 运行与从命令行运行时,工作流分析器有时会返回不同的结果。
  • 在具有对象存储库元素的项目中执行 GIT Init 后,未在 GIT 中正确识别文件更改。
  • 当您打开没有相应 project.json 文件的工作流时(例如,通过双击不在项目文件夹中的 XAML 文件),新创建的项目中的表达式语言将始终设置为 C#。Studio 现在使用“使用 C# 语言 Studio 设计”设置来确定项目的语言。
  • 使用默认配置时,在 Orchestrator 多节点环境中通过无人值守机器人连接进行远程调试失败。
  • 调试期间到达放置在“注释”活动上的断点时,执行不会暂停。

已知问题

当您使用“对象存储库”中的屏幕在工作流中添加“使用应用程序/浏览器”活动时,无法编辑该活动的应用程序参数。解决方法是,取消该活动与“对象存储库”的链接,编辑参数,然后再次将屏幕添加到“对象存储库”。

活动包版本

UiPathStudio.msi 安装程序中包含以下活动包和版本,均可在本地订阅源中找到。

活动包版本
UiPath.UIAutomation.Activitiesv22.4.4
UiPath.System.Activitiesv22.4.1
UiPath.Web.Activitiesv1.11.1
UiPath.Excel.Activitiesv2.12.3
UiPath.Mail.Activitiesv1.15.1
UiPath.Word.Activitiesv1.10.1
UiPath.ComplexScenarios.Activitiesv1.1.6
UiPath.Presentation.Activitiesv1.3.3
UiPath.Testing.Activitiesv22.4.2
UiPath.MobileAutomation.Activitiesv22.4.4
UiPath.Persistence.Activitiesv1.3.4
UiPath.PDF.Activitiesv3.6.0
UiPath.Terminal.Activitiesv2.4.0
UiPath.Form.Activitiesv1.9.6

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新