订阅

UiPath Studio

UiPath Studio 指南

2021.10.3


UiPath 修补程序文档编制方法


🛈 UiPath 会根据业务需要定期发布补丁,其中包括修复和改进。特定版本的文档会反映该版本的最新补丁。用户可以在发行说明中查看补丁之间的产品更改。
例如,2021 年 5 月,Studio 2020.10 的文档说明了其最新补丁,即 2020.10.7。



Release date: 27 October 2021

What’s New

支持 .NET 5.0 Windows 和跨平台项目

现在,您可以创建与 .NET 5 兼容的项目。创建项目时,请选择项目兼容性,包括“Windows - 旧版”(.NET Framework 4.6.1)、“Windows”(具有 Windows 支持的 .NET 5)或“跨平台”(具有跨平台支持的 .NET 5)。默认选项为“Windows - 旧版”,即 Studio 先前版本中使用的兼容性。

您应该了解的内容:

  • Windows 和跨平台项目作为 64 位进程执行,使您能够充分利用 64 位架构。这意味着项目仅在 64 位操作系统上受支持。Windows - 旧版项目将作为 32 位进程执行。
  • 跨平台项目可用于 API 自动化,并可在 Windows 和 Linux 操作系统上执行。
  • 在 Studio 2021.4 及更早版本中创建的项目将作为 Windows - 旧版项目打开。
  • Windows 和跨平台项目在发布时进行编译,这将提高执行性能,并提供更安全的包,其中包含 DLL 文件而不是项目源文件。别担心,如果要发布源文件,您仍然可以选择将其包含在已发布的包中。
  • Windows 和跨平台项目只能在 Robot v2021.10 或更高版本上运行。
  • Starting with this release, the activities packages included by default with Studio support both Windows - Legacy and Windows projects, while a limited number of packages support cross-platform projects. Only the packages and versions that support the selected project compatibility are available for installation from the Manage Packages window.
  • Organizations can deploy governance policies that define the default compatibility or enforce the use of specific compatibilities.
  • 库只能安装在具有相同兼容性的项目中。
  • 在 StudioX 配置文件中创建的所有项目都使用 Windows – 旧版兼容性。
  • 每个项目的兼容性显示在 Studio 状态栏的右侧,具体位于“项目”面板 >“依赖项”节点中,以及“主页”(Studio 后台视图)>“开始”>“打开最近的项目”列表中的每个项目的条目中。
  • You can migrate your existing custom activities to .NET 5.

在远程机器人上运行和调试项目

You can now run and debug projects on robots that are running on other machines. The new Remote Debugging feature works with both Windows and Linux robots and gives you the option to either set up a TCP/IP connection to a remote robot or connect to an unattended robot via Orchestrator. When a connection is established and remote execution is enabled, all run and debug operations are performed on the remote robot. For more information, see Remote Debugging.

Studio 和 Studio Pro 配置文件已合并

为简化 Studio 使用体验并使您更轻松地访问所需功能,我们已停用 Studio Pro 配置文件。Studio 配置文件现在包含 Studio Pro 配置文件以前独有的所有高级功能,例如测试自动化、移动自动化或 C# 支持,Studio Pro 模板现已在 Studio 中提供。

您应该了解的内容:

  • 如果您要升级到此版本,并且已在先前的版本中使用过 Studio Pro 配置文件,即使您也在以前的版本中使用过 Studio 配置文件,也无法将 Studio Pro 配置文件中的设置迁移到此版本中的 Studio 配置文件。
  • Studio 与在旧版 Studio 和 Studio Pro 中创建的项目兼容。
  • 使用监管的组织必须将现有的 Studio Pro 策略迁移到 Studio 配置文件,如下所示:
    • For file-based governance, the parameters configured for the StudioPro profile must be moved to the Development profile.
    • For Automation Ops, move the settings in your existing Studio Pro policies to new Studio v2021.10 policies.
  • 现在提供了一个名为自动化开发者的新许可证,用于替换旧版本中提供的 RPA 开发者许可证、RPA 开发者 Pro 许可证和测试开发者 Pro 许可证。如果您使用授予 Studio Pro 访问权限的其中一个旧版许可证激活 Studio,则可以继续使用 Studio。

Studio 带来 StudioX 设计体验

The activities that were designed for StudioX are now also available by default in Studio, and you can use the Plus plus buttonplus button menu to interact with Excel and PowerPoint files, Outlook, Outlook 365, and Gmail accounts, or Google spreadsheets added to your automations.

When configuring activities, you can browse for and select data that matches the expected type of a property directly from the Plus plus buttonplus button menu of each property. Expressions are automatically generated without you having to manually enter them.

  • For Excel, as long as the modern design experience is enabled:

    • The modern StudioX activities are the Excel activities available by default in your projects, replacing the classic Excel App integration activities.
    • When you configure Excel activities inside the Use Excel File scope activity, you can browse the contents of the file and select data such as cells, ranges, tables, sheets, or charts from the menu. In addition, you can now install the Excel Add-in that allows you to switch between Studio and Excel to indicate the data you want to use in your automations from the file.
  • For PowerPoint, when you configure PowerPoint activities inside the Use PowerPoint Presentation scope activity, you can select data such as slides, shapes, or layouts from the menu.

  • For Mail, when you configure mail activities inside the Use Outlook 365, Use Gmail, or Use Desktop Outlook App scope activities, you can select Outlook folders, Gmail labels, the current mail in an iteration, or message fields such as Subject, Body, Body as HTML, Bcc, Cc, To, From, Date (as text), and Priority from the menu.

  • For Google Sheets, when you configure Sheets activities inside the Use Google Spreadsheet scope activity, you can select sheets and named ranges from the menu.

  • 对于“系统”活动包中的文件活动,当遍历文件或文件夹时,可以从菜单中选择文件属性和文件夹属性,例如“名称”、“全名”、“上次修改日期”、“上次访问日期”或“创建日期”。

    When working with the Use Excel File and Use PowerPoint Presentation activities, if the file that will be used at runtime does not exist yet, you can still use the Plus plus buttonplus button menu by defining a file with the same structure as a template for use at design time.

默认启用新式设计体验

The modern design experience is now enabled by default for all new Studio projects, allowing you to take advantage of the latest features in the UIAutomation activities package.

为简化转换过程,如果您在使用新式体验时搜索传统活动,则搜索结果中将包含该活动的新式对应项(例如,搜索“附加浏览器”传统活动时,系统会找到“使用应用程序/浏览器”新式活动)。

如果您仍想使用传统体验。您可以在全局或项目级别禁用新式体验,或者在“活动”面板中选择“显示传统”选项,以使系统在项目中提供传统活动。

📘

备注:

如果您要从 Studio v2020.10 或 v2021.4 升级,使用先前版本的“为新项目使用新式体验”设置不变。

调试期间编辑活动属性

Debugging your projects has just become easier. You can now fix issues while debugging is paused by editing the properties of the current activity. Hover over a property in the Locals panel, click editedit, make adjustments in the Local Value window, and then resume debugging.

收集 Azure Application Insights 中的遥测数据

Studio can now send telemetry data to your Application Insights instance in Azure, allowing you to monitor and analyze how Studio is used in your organization. To enable this feature, all you need to do is provide the Application Insights instrumentation key in your governance policies. For more information, see Governance, in the Studio guide and Settings for Studio policies in the Automation Ops guide.

与 Automation Hub 集成

To create a smoother automation journey, we've made it easier to link Studio projects to ideas in Automation Hub. A new project property called Automation Hub URL enables you to link an existing project to an idea in Automation Hub. Alternatively, in Automation Hub you have the option to start a Studio project directly from ideas that are in the Development phase and have the status Not started. For more information, see Linking a Project to an Idea in Automation Hub.

将流程标记为有人值守的自动化的选项

You can now indicate whether a process is designed for attended automation. Enable the Attended Automation project setting for processes that include UI Automation activities or other activities that require user interaction. Processes marked as attended automations should not be executed in unattended scenarios.

导出工作流分析器结果

You now have the option to export the results of each workflow analysis to a JSON file in the project folder.

新的来源控件功能

使用 GitHub 帐户登录以进行身份验证

You can now sign in with your GitHub account to authenticate to remote Git repositories hosted on github.com. When using HTTPS to clone a remote repository or copy a project to a repository, a new option called Sign in with GitHub is available under Use Credentials. This feature requires the UiPath GitHub App to be installed in your organization or account.

更改 Git 中的凭据

You can now change the credentials used to connect to remote Git repositories.

根据 Git 中先前提交的版本创建分支

You can now create a new branch from any previous commit. When viewing the history of a file, folder, or project, right-click a commit in the History window and select Create branch.

Git 存储库的监管

Organizations can now enforce the use of specific Git repositories through governance policies. When a list of allowed repositories is enforced, Studio users will only be able to use remote Git repositories from that list. In the file-based governance model, use the AllowEditRepositories parameter to indicate whether users should use only allowed repositories and the Repositories parameter to define the list of allowed repositories. For Automation Ops, see Settings for Studio policies in the Automation Ops guide.

复制存储库 URL

现在,您可以通过右键单击“项目”面板中的项目节点或文件,然后从上下文菜单中选择“复制存储库 URL”,以快速复制添加到来源控件的项目的存储库 URL。

安装和更新变更

更新了安装程序

  • 为使社区版用户的安装体验更一致、更灵活,我们已弃用社区版 UiPathStudioSetup.exe 安装程序。以前仅适用于企业版的 MSI 安装程序已更新,现在也适用于社区版 (UiPathStudioCommunity.msi)。从此版本开始,社区版用户还可以选择安装 Studio 企业版并使用社区版许可证激活。

  • The Studio MSI installer has a new interface and gives you two setup options:

    • 快速(建议社区版用户使用)– 以默认配置(包括用户模式 Robot)为当前用户执行安装,但不配置任何设置。
    • 自定义(建议企业版用户和高级用户使用)– 按计算机执行安装,选择 Robot 类型和要安装的组件,然后配置高级安装设置。

从 Orchestrator 自动更新客户端组件

Ever thought how great it would be to always have your robots up to date? We have some great news then! You are now able to update Robot, Studio, and UiPath Assistant clients to newer versions from Orchestrator. This provides an easy way to deliver a version update to a large base of machines from a centralized location, helping remove user friction and streamlining the update process.

新的测试自动化功能

测试探测器

准备好随时进行测试了吗?“测试资源管理器”面板将所有测试运行归入一个视图中,其中包括测试开发、执行和分析。在新面板中,您可以根据结果状态筛选测试,也可以根据通过/失败的方案运行或调试测试。已将“活动覆盖率”作为一个子面板包含在内,以使测试功能汇集在一起。

To learn how it works, see Test Explorer.

执行模板

在运行时将测试用例包含在动态模板中,以减少对测试执行排序的维护、特定于测试用例的恢复、可自定义的测试用例报告、设置和拆卸。

For more information, see Execution Templates.

文件模板

您可以为测试用例创建模板,以便在不同测试中重复使用它们。

For more information, see File Templates.

SAP Change Impact Mining

通过与 UiPath 技术合作伙伴的合作,我们将为 SAP ECC 和 SAP S/4HANA 项目引入 Change Impact Mining。

SAP 监控引入了“SAP 会话属性更改触发器”活动,以监控 SAP 会话属性。在运行时可以记录 SAP 会话属性中的任何更改。您可以定义 SAP 会话属性。默认情况下,系统会为 SAP 事务和 SAP 程序设置监控。

SAP 测试项目模板使用执行模板,该模板允许您同时运行 SAP 测试用例和 SAP 监控。通过此模板,您可以收集有关已执行的 SAP 事务和 SAP 程序及其在运行时的依赖项的信息。所有收集的信息都会自动提交给 UiPath Test Manager,并在测试用例级别可见。

For more information, see the following:

改进

对象存储库

  • The App/Web Recorder now supports using the Object Repository when recording, enabling you to use already existing objects or create new ones.
  • “对象存储库”现在使用“计算机视觉”技术实现“捕获所有元素”功能,该功能可以提取指定应用程序的所有元素并将其添加到“对象存储库”中。这可以大大缩短使用“对象存储库”所需的时间,因为您不必再逐个手动添加每个元素。
  • 使用“对象存储库”中新增的“高亮显示”功能,您可以高亮显示正在捕获的屏幕中已捕获的任何对象,从而更容易识别正在使用的元素。

机器人企业框架模板

Added 16 November 2021

The Robotic Enterprise Framework template has received several improvements:

  • We added OrchestratorQueueName in the Config.xlsx file and as an input argument in Main.xaml.
  • The Process.xaml file has been moved to the Framework folder.
  • Fixed an issue which consisted in setting a Successful status for a queue item in the event of a killed process:
    • We removed the invocation of Framework\SetTransactionStatus.xaml from inside the Finally block.
    • An invocation of Framework\SetTransactionStatus.xaml surrounded by a Try Catch activity was added after the invocation of Framework\Process.xaml for the successful cases in the same Try block.
    • In the Catch section, an invocation of Framework\SetTransactionStatus.xaml surrounded by a Try Catch activity was added for each type of exception (System Exception or Business Rule Exception).
  • We added a maximum consecutive retry number to avoid consuming the queue for persistent errors. A new global variable called ConsecutiveSystemExceptions and a constant called MaxConsecutiveSystemExceptions have been added in Config.xlsx.
  • In case the maximum consecutive retry number is reached, the Job is now marked as failed (Faulted). This behavior can be enabled by setting the Boolean value ShouldMarkJobAsFaulted in Config.xlsx to TRUE (by default, it is set to FALSE).
  • Failed queue items now include the name and location of associated screenshots.
  • We added retry mechanisms for the Set Transaction Status and Get Transaction Item activities in case an error occurs.
  • The screen resolution is now logged in the Init section.
  • The project now complies with the default Workflow Analyzer rules.
  • We improved asset management. In previous releases, when an asset was declared in the Assets sheet of the Config.xlsx file but the asset was missing in Orchestrator, there was a log message with the Warning level. The process continued even if there were values missing for those keys and was prone for errors later in the process. The framework now throws an exception when an asset is not found in Orchestrator and the process stops in the Init phase.
  • We added a new testing framework that uses the new features of Test Suite. A folder called Tests that contains some test cases related to the framework's workflows is now included in the REFramework project folder.
  • We updated the documentation file in the Documentation folder in the REFramework project folder with all the new improvements.

表达式编辑器

  • “表达式编辑器”的打开位置与您上次关闭窗口时的位置相同。
  • “表达式编辑器”顶部的标题栏中现在提供“最大化”/“还原”按钮,用于快速调整窗口大小。
  • 如果您放大或缩小以更改文本的大小(例如,通过使用 Ctrl + 滚动),然后关闭窗口,则“表达式编辑器”将以您上次关闭窗口时使用的相同缩放级别打开。
  • 如果在分辨率低于上次使用的“表达式编辑器”窗口大小的显示器上打开“表达式编辑器”,则窗口将自动重置为其默认大小,而不是保持先前的大小。

发布

  • 当针对库项目中的工作流文件访问“项目”面板上下文菜单时,该菜单中的“从发布中忽略”/“设为可发布”选项已重命名为“设为私有”/“设为公开”
  • 您发布到的最后一个订阅源现在是在发布向导的“发布选项”步骤中选择的默认位置。在您从 Studio 状态栏中选择另一个文件夹或重新启动 Studio 之前,该位置仍为默认位置。
  • You can now use governance policies to enforce the addition of release notes when publishing a project. In the file-based governance model, setting the value of the EnforceReleaseNotes parameter to true makes the Release Notes field in the Publish wizard a required field. For Automation Ops, see Settings for Studio policies in the Automation Ops guide.
  • 如果您选择在发布项目时包括来源的选项,则文件现在保存在 lib\net45 文件夹中的 .nupkg 文件中(适用于 Windows 旧版库)或 content 文件夹中(适用于 Windows 和跨平台库和项目)。对于 Windows - 旧版库,这些文件仍会保存在生成的程序集文件中。

测试自动化

  • 您可以一次性将测试数据添加到多个测试用例中。
  • 更新测试数据时,您可以选择覆盖测试用例中的现有数据。
  • 您可以更快速地识别数据变体文件夹和项目,因为它们具有更具暗示性的图标。

其他改进

  • 安装 Studio 时,如果计算机上已安装 Microsoft Edge Chromium,现会默认启用安装 Edge Chromium 扩展程序的选项。
  • You can now configure the ST-SEC-009 - SecureString Misusage Workflow Analyzer rule to exclude activities that can input sensitive data but do not support the SecureString type.
  • 现在,“主页”(Studio 后台视图)>“开始”选项卡中的最近项目列表中将显示每个项目的附加信息:
    • 用于表达式的语言(VBC#)。
    • 项目兼容性(Windows - 旧版Windows跨平台)。
    • Source control repository the project is under (GIT, SVN, or TFS), or local if the project is not under source control.
      If you are updating from an older version of Studio, the compatibility and source control information are displayed for projects that you opened in the previous version only after you open them in the current version.
  • 您现在可以使用 Ctrl + W 键盘快捷键,关闭“设计器”面板中聚焦的工作流文件。
  • You now have access to additional templates on which to base your automations. When you browse for templates in Home (Studio Backstage View) > Templates, the Marketplace location is now available, enabling you to select from a variety of pre-built templates published on the UiPath Marketplace.
  • 当您通过拖动、在面板内滚动并拖放的方式,在具有大型树状结构的项目中的“项目”面板内移动文件时,“项目”面板视图现会停留在文件移动的位置,而不是返回到文件的初始位置。
  • To make it easier to configure the If activity, the plus_iconplus_icon icon which allows quick access to the Add activity bar is now available inside the Then and Else branches of the activity.
  • 为了提高可靠性,托管 UiPath 官方支持的包的官方包来源的 URL 已从 https://www.myget.org/F/workflow 更改为 https://packages.uipath.com/activities
  • The Add Activity search bar now uses AI to suggest activities you may want to add next based on the current context of the workflow. You can opt out of this by deselecting the Enable AI activity suggestions option in the Design settings, and organizations can control this setting using governance policies.

Bug Fixes

  • 修复了以下问题:如果 Studio v2021.4 中创建的库名称包含点 (.),则由这类库生成的活动具有异常命名空间。
  • 当您将库安装为项目依赖项时,“活动”面板在该库的活动结构中将不再包含其他异常文件夹。从 Studio v2021.4 发布的库中出现此问题。
  • 当您尝试发布将 ServiceNow 和 Mail 包作为依赖项的库时,将不再发生指示“已添加具有相同键值的项目”的错误。
  • 修复了以下问题:在项目中安装库时,无法将添加到库项目文件中根活动的注释显示为所生成活动的工具提示。

易用性

  • 使用法语键盘时,现在可以按预期在表达式中键入字符 {[|
  • 当您使用土耳其语 Q 键盘并按 AltGr + 7AltGr + 8 键盘组合键以在表达式中键入字符 {[ 时,不会再发生错误。
  • 使用荷兰语-比利时键盘时,现在可以正常按 AltGr + 2 键盘组合键在表达式中键入 @ 字符。

测试自动化

  • 对于包含模拟活动的文件,未正确计算活动覆盖率。
  • 在“设计器”面板中使用模拟包围放大活动不会将焦点更改为这个新操作。

其他修复

  • 修复了导致 Studio 随机停止响应,并显示“集合已遭修改;枚举操作可能无法执行”错误的问题。
  • 修复了将活动从“活动”面板拖放到工作流中时,有时会导致发生错误以及 Studio 停止响应的问题。
  • 修复了尝试使用“后台流程”模板创建新项目时,可能导致发生错误的问题。
  • 当另一个应用程序处于焦点状态时,从 Studio 功能区中选择一个项目不再需要第二次单击。
  • 当使用多个显示器时,如果您在一个显示器上最大化 Studio 窗口,则该窗口将不再覆盖另一个显示器的部分区域。
  • 修复了在同一 Studio 实例中并排打开两个工作流文件时导致异常(例如在错误的文件中添加活动)的问题。
  • 现在,无论哪个 Studio 面板处于焦点状态,都可以正常单击 Studio 标题栏中的图标来打开“登录”/“注销”弹出菜单。
  • 仅可用于开发自定义活动的 UiPath.Activities.API SDK 包无法再安装为项目依赖项。
  • 修复了当图像活动(如“查找图像”)未能触发“选取分支”活动时,“Try Catch 异常处理”活动无法处理 System.InvalidOperationException 错误的问题。
  • 当您使用“调用代码”活动并将调用代码的语言设置为 CSharp 时,与该活动相关的验证错误消息现在可以正确指示检测到错误的代码行号。
  • 修复了导致在“调用工作流文件”活动的“调用工作流参数”对话框中创建的参数(例如,“值”字段中的 CTRL + M)仅在关闭并重新打开包含活动的文件后才可见的问题。
  • 如果项目中未使用包中的活动,但使用了包中的函数,则 ST-USG-010(未使用的依赖项)工作流分析器规则不再检测到违规情况。
  • 在项目中强制执行“对象存储库”时,无法再从“录制器”中禁用“对象存储库”。
  • 如果在 Studio 最大化的情况下,“输出”、“错误列表”、“查找引用”或“断点”面板未固定并覆盖窗口的大部分区域,则单击状态栏中的“还原”按钮以缩小 Studio 时,不再导致该面板几乎覆盖整个窗口和 Studio 无法正常显示。

11 天前更新

2021.10.3



UiPath 修补程序文档编制方法


🛈 UiPath 会根据业务需要定期发布补丁,其中包括修复和改进。特定版本的文档会反映该版本的最新补丁。用户可以在发行说明中查看补丁之间的产品更改。
例如,2021 年 5 月,Studio 2020.10 的文档说明了其最新补丁,即 2020.10.7。



建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。