studio
2024.10
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Studio 用户指南

上次更新日期 2025年9月29日

2024.10.1

发布日期:2024 年 7 月 1 日

新增功能

借助 Autopilot™ 提升您的工作效率

Autopilot™ 提供一组 AI 驱动的功能,旨在帮助您更快、更轻松地创建和测试自动化。要查看 Autopilot 在 UiPath Business Automation Platform 上提供的服务,请查看 Autopilot 指南

To enhance productivity and streamline the automation development process, you can now generate complex expressions using natural language. An integral part of the new Autopilot™ developer capabilities, AI-generated expressions enable you to describe the desired outcome for a particular activity input, while an AI-based model will generate a valid expression based on the request. For more information, see Designing Automations.



With Autopilot, you can use natural language to describe the structure and outcome of a workflow. Autopilot will then process your instructions and create a preview of the resulting workflow. If you want to modify the structure created by Autopilot, you can further refine your instructions and generate a new preview. After confirming that the automation works as expected, Autopilot automatically creates the workflow. You can also generate a workflow from annotations added to Sequence activities. For more information, see The User Interface.



With its summarization capabilities, Autopilot can also describe the inner workings of activities and sequences by creating meaningful names that take into account the elements that define the activity or sequence. To learn more, see The User Interface.

Autopilot is enabled by default for all users. However, organizations can use governance policies to control Autopilot capabilities.

调试期间编辑活动属性

通过直接从“设计器”面板或“属性”面板动态编辑活动属性、变量和参数,您可以更轻松地调试项目。作为“本地”面板速度更快的替代方案,更改活动属性不再需要您停止调试流程、实施更改并重新启动调试。

当调试暂停(通过断点、错误或手动暂停执行)时,您可以从“属性”面板或直接从设计器选择当前活动并修改选取器、输入或输出值、超时设置,或其他特定于活动的属性。恢复执行后,修改后的活动将使用更新后的属性运行。

在调试流程结束时或手动停止调试时,将出现一个消息窗口,询问是否保留调试期间执行的更改。放弃更改会将活动还原为其原始属性。



新的项目导航快捷方式

You can now go back or forward inside project files and between project files using new shortcuts. You can also use the new Navigate forward and Navigate backward buttons and keyboard shortcuts in the Command Palette.

Studio 书签

To make it easier to navigate large workflows, you can now set bookmarks by right-clicking an activity and selecting Toggle Bookmark. The Breakpoints panel has been redesigned to include bookmarks and is now named Breakpoints & Bookmarks. New keyboard shortcuts are also available for enabling, disabling, and navigating bookmarks. For more information about the redesigned panel and how to use bookmarks, see The Breakpoints and Bookmarks Panel.



新的编码自动化功能

在编码自动化中动态调用工作流

The workflows object can dynamically execute all workflows in a project, including coded (CS) and low-code (XAML) automations. The object automatically adjusts to changes in the invoked files across a project, such as a new name or updated arguments, ensuring a smooth way to create hybrid automations. Visit Creating hybrid automations using the Workflows object to learn how to invoke workflows more efficiently in your coded automations.

使用库调用编码自动化

You can now publish your coded automations as a library and easily reuse them in different projects, allowing you to save time and effort. Whether you're working with low-code (XAML) or coded automations (CS), you can use the published coded automations from the library directly into your project. Visit Invoking coded automations using libraries to learn how to invoke coded automations in different projects and streamline your processes.

编码自动化中的服务连接

We have introduced a feature that allows you to use existing Integration Service connections within your coded automations. This feature helps you to access APIs from corresponding services more efficiently. Visit Creating Connections for services in coded automations to learn how to recreate and use these connections in your coded automations.

在编码自动化中自动导入命名空间

You can reduce the time taken when building coded testing automations by activating Enable Import Completion in the Code editor settings. This setting automatically imports namespaces that include a selected symbol, so you don't have to manually add the using statements in your CS file. Visit Studio IDE to check the available code editor settings.

新的测试自动化功能

AI 驱动的测试数据生成

You can now generate synthetic test data using AI capabilities offered by AutopilotTM. Use prompts to customize your test data so it suits your specific testing needs. Visit AI-generated test data to check how to use AI-powered test data generation.

使用 AI 生成编码测试用例

You can now generate a fully automated coded test case from your manual tests using AutopilotTM. Connect Studio to Test Manager, and generate the entire code for your manual tests, with the manual steps as comments before the automated steps. Visit Generating test cases using AI to check how generate coded test cases using AutopilotTM.

将文本转换为代码

You can now generate code from multiple sources within your coded automation, to streamline your processes. You can directly generate code from comments, specific lines in your automation, or using custom prompts. Visit Generating code to check how to leverage the capability.

通过手动测试创建低代码测试用例

To ease your automation efforts, you can convert your manual tests into low-code test cases, with the manual steps displayed as Comment activities. Visit Creating a low-code test case from a manual test case to learn how to use the feature.

testCase.json 文件

现在,您可以在 testCase.json 文件中找到有关打包的 RPA 测试项目的重要元数据。该文件将在项目 NUPKG 文件的 .tmh 目录中自动生成。

已保存到云端的 Windows 项目

为了便于访问自动化并改善开发者之间的协作,而无需共享项目文件或提前设置来源控件环境,现在可以将 Windows 项目另存为云项目。

Cross-platform cloud projects are integrated seamlessly with Studio Web, giving you the flexibility to start working on a project in Studio and continue in your browser, while Windows projects can be stored in the cloud but not edited in Studio Web. For more information, see Designing Cross-platform Projects.

Organizations can use governance policies to determine if projects are saved locally or to the cloud by default.

其他新功能

  • Studio 现在支持 C# 11
  • Azure Active Directory SSO 设置中,用户模式 UiPathStudio.msi 安装现在包括适用于 Automation DeveloperAttended Robot 包的“自动登录”复选框。有关更多信息,请参阅安装 Studio
  • 现在,使用“通用搜索”栏以及“当前文件”、“所有文件”和“变量”选项时,全局变量和常量会显示为搜索结果。从搜索栏中选择全局变量或常量后,该变量或常量会在“Data Manager”面板中高亮显示。

改进

流程图改进

我们对流程图的外观和功能进行了全面改进。改善流程图设计和使用体验的更改包括:
  • “流程决策”“流程切换”活动已重新设计,现在支持添加断点、书签和注释。
  • “开始”节点拥有新设计。
  • 现在,“设计器”面板是一个无限大的画布,会在您构建工作流时扩展。“设计器”现在还具有带有“对齐网格”功能的网格系统,可帮助您精确定位活动。此外,我们已在 Windows 和跨平台项目中删除了围绕流程图的序列。
  • 在流程图中添加的活动经过改进,更易于链接,并且在被选中时会高亮显示。此外,现在默认情况下,流程图中添加的所有活动都会在“设计器”面板中折叠。如果活动存在验证错误,系统现在会在折叠的活动卡中显示错误图标。
  • 从序列复制的活动保留其顺序,并粘贴到流程图中的当前焦点处。
  • 现在,您可以通过选择连接箭头并从“属性”面板中设置标签,在流程图的步骤之间添加标签。标签可以添加到所有连接箭头,但来自“开始”节点的第一个连接箭头除外。
  • 选定的连接箭头现在会高亮显示,右击即可重命名和删除这些箭头。
  • 如果“流程图”画布由于重叠的节点或活动卡而变得难以阅读,您可以右键单击“设计器”面板,然后选择新的“整理画布”上下文菜单选项,以重新排列卡并使流程图更易读。“清理画布”替换了“自动排列”选项。

简化的功能区布局

A simplified ribbon layout is now available, allowing you to increase the size of the Designer panel. For information on how to enable the new layout, see The User Interface.



简化的“设计器”面板上下文菜单

现在,在“设计器”面板中右键单击时,上下文菜单的设计更简洁。一些更改包括:
  • 已删除“打开工作流”选项。
  • 现在会动态显示“禁用活动”和“启用活动”选项。
  • “运行至此活动”、“从此活动运行”和“测试活动”选项已合并到单个“调试”选项下。

For an updated list of available context menu options, see The User Interface.

有关参数属性的更多信息

Studio now offers access to additional argument information in Assistant and Automation Ops - Pipelines after publishing a project. You can now use the new Argument Properties window to configure argument properties (name, associated tooltip, and whether the argument is required), as well as set the order in which arguments appear. For more information, see Managing Arguments.



自定义库中使用的连接

To take advantage of the full potential of Integration Service activities, you can now customize the connections used within a Windows and cross-platform library. This allows you to manage specific connections in a project when adding a library which uses connections or invokes workflows with connections, regardless of initial configurations. For more information, see About Libraries.

直接从“属性”面板复制错误消息

现在,您可以在执行或调试之前使用“属性”面板中新的剪贴板图标复制活动中出现的错误消息。

改进了工作流的可读性和导航体验

为了提高工作流的可见性和可用性,现在,即使选择了“显示活动属性内联”设计设置,折叠活动时,您也可以在折叠活动时在“属性”面板中查看所有活动属性(包括高级属性)。

现在,您还可以重命名活动中的活动容器并为其添加注释,例如“If”、“Else If”、“While”、“Do While”或“For Each”活动。

编码自动化中的自动折叠命名空间

为了让您轻松在编码自动化中导航,现在默认情况下它们的命名空间会在代码编辑器中折叠。

从任务栏中打开最近的项目

为了在多个项目之间快速导航,您现在可以通过右键单击 Studio 图标直接从任务栏中打开最近访问的项目。您还可以使用与“后台”视图中相同的方式固定最近的项目。



改进的来源控件身份验证选项

We have consolidated the options to authenticate in projects managed through GIT and SVN. For more information, see Managing Projects with GIT and Managing Projects with SVN.

改进了对活动包预发行版本的控制

Organizations now have more control over prerelease (beta) versions of activities packages. Using new governance policies that restrict access to prerelease packages, the Include Prerelease filter options in the Manage Packages window can now be hidden, which means that users can have access only to stable versions of an activity package.

如果未通过监管限制访问,则现在可以使用新的“活动”面板筛选器选项“预览”。选择此筛选选项将显示在“活动”面板和“添加活动”搜索栏中标记为预览的可安装活动。

安装和升级

  • 为了提高安全性并缩小安装程序的大小,我们已从 UiPathClipboard.MSI 安装程序中删除了 PDB 文件。
  • Studio MSI 安装程序现在执行额外的清理步骤,该步骤会删除先前失败的安装所存储的文件、设置和计划的任务。

其他改进

  • Studio 现在使用更少的 RAM 资源。
  • 现在,打开包含许多活动的工作流的速度更快。
  • 从活动输出中自动生成的变量现在具有更具可读性的名称。如果已存在具有相同名称的变量,则输出变量的名称将加上 1。
  • 现在,每当编辑选取器名称时,对象存储库都会自动更新编码自动化中的所有选取器引用,从而减少了维护工作。
  • 现在,“测试资源管理器”面板提供了测试用例的更好概述,使您可以查看已连接的 Test Manager 项目中的 100 多个测试用例。

错误修复

  • 使用 Ctrl + Z 键盘快捷方式无法撤消包含多个“日志消息”活动的工作流中的最后一个操作。
  • ST-NMG-004 - “显示名称重复” 工作流分析器规则在包含“先条件循环”和 “Do While 循环” 活动 的工作流中错误地检测到重复的显示名称。
  • 如果值为表达式,则执行“进入”和“退出”调试操作会导致某些活动属性的值在“局部”面板中计算两次。
  • 将库安装为项目依赖项后,在启用了“分离运行时依赖项”项目设置的库中使用的对象存储库用户界面元素不可见。
  • Studio 没有指出在包含只读文件的项目中自动引用导入后无法解决的验证错误。“项目”面板现在显示一条消息,指出项目文件的只读状态可能会阻碍项目清理。
  • 发布从“Windows - 旧版”迁移到“Windows 兼容性”的项目时,如果项目在“将 PDF 页面导出为图像”活动中包含错误设置的“ImageDpi”活动字段,则 Studio 无法提供准确的验证错误详细信息。
  • 如果 Studio 已连接到 On-Premises Orchestrator,则使用 Orchestrator 资产强制执行每用户监管策略不会按预期工作。
  • 使用“分配”活动更正类型不匹配的变量后,未清除编译错误。
  • 编辑并关闭安装了多个相互依赖的库的项目后,Studio 使用的内存比预期更多。
  • 当使用的监管策略将默认项目目标框架设置为“Windows”并允许创建或打开“Windows - 旧版”项目时,使用“Windows - 旧版”模板创建项目未按预期进行。
  • 将某些项目发布到 Orchestrator 或本地会导致 .local 文件夹发生意外更改,并且发布失败,但不会显示错误消息。
  • 从包含状态机转换的库中添加自定义活动时,某些项目中发生验证错误。
  • 之前若工作流中的活动包含子活动(例如,多重分配),“通用搜索”栏中会错误地聚焦子活动。
  • 将 Orchestrator 升级到较新版本时,使用在 Orchestrator 的先前版本中创建的资产强制执行监管策略未按预期工作。
  • “Try Catch 异常处理”字段中选择并删除活动也会删除另一个展开字段中的活动。
  • 在某些“Windows”和“Windows - 旧版”项目中,更改“遍历循环”活动中“In”配置字段的值会重置断点、注释、“类型参数”字段的值和活动的名称。
  • 在使用项目依赖项批量更新工具成功更新依赖项后,有些项目被错误地报告为已发布。
  • 升级 Studio 时,某些“Windows - 旧版”项目中的流程图显示不正确。
    注意:需要访问原始项目文件。避免首先在存在此问题的 Studio 版本中打开受影响的项目。
  • 从文件中添加现有测试数据时,下拉列表从第六个文件开始被截断并失去焦点。
  • 使用“删除未使用的设计”选项卡选项时,错误地删除了某些 Windows 和跨平台项目中使用的变量或参数。
  • SY-USG-013 - 私有文件调用规则是从禁用的“调用工作流文件”活动错误触发的,或者从调用从发布中忽略的文件的“调用工作流文件”活动错误触发的。
  • 在某些 Windows 项目中,当调试到达放置在“日志消息”活动上的断点时,“本地”面板不会加载信息。
  • Main.xaml 文件打开某些项目时,发生与无法解析的依赖项相关的错误。
  • 在某些 Windows 项目中,您无法使用“获取列表项目”“获取单个列表项目”活动来检索列。
  • 如果因为在“流程切换”活动中两个 Case 子句具有相同值而导致错误消息,当在该错误消息中单击“确定”时,系统会生成错误消息循环。
  • 在某些 Windows 项目中,当调试到达放置在“日志消息”活动上的第二个断点时,“本地”面板不会加载信息。
  • 将更改推送到远程 GIT 存储库会导致某些项目中出现意外错误。
  • 在某些将 Microsoft Identity Web 包添加为依赖项的 Windows 项目中,出现“无法加载文件或程序集”错误。
  • 勘误 - 于 2024 年 8 月 7 日添加:在某些包含“中断”活动或调用了包含“中断”活动的工作流的项目中,可见名为“在参数中中断触发器作用域”的参数。

勘误

.NET 8 支持

添加于 2024 年 9 月 23 日

Windows 和跨平台项目现在使用 .NET 8,即 .NET Framework 的最新版本。请注意,使用 Studio 2024.10 创建的 Windows 和跨平台项目现在需要使用 .NET 8 的机器人(Robot 2024.10 或更高版本)。

适用于 Studio 的 AI Trust Layer 监管策略功能简介

2024 年 8 月 13 日添加

AI Trust Layer 监管策略现在包含对 Studio 中 AI 驱动的功能的控制,从而使您可以阻止调用第三方 AI 模型。要了解更多信息,请参阅 Automation Ops 指南中的 AI Trust Layer 策略设置
注意:要在 Studio 中禁用 Autopilot 用户界面功能,您需要定义禁用 Autopilot 功能的 Studio 监管策略。

代理设置的命令行参数

添加于 2024 年 7 月 15 日

A new set of command line arguments allows you to set the proxy configuration during installation of your robots. These proxy-related parameters are available for both Studio and Robot installers.

已知问题

  • 重要提示: 勘误 - 于 2024 年 8 月 21 日添加:在包含 CS 文件的项目中调试 XAML 文件会导致以下错误:“库编译过程中发生意外错误:值不能为空。(参数“类型”)”。

    解决方法:将项目重命名为与您在项目中引用的 Data Service 实体不同的字符串。

  • 重新打开引用不存在的变量的项目时,即使在接受添加缺少的引用之后,也会出现要求自动导入缺少的引用的消息窗口。
  • 在 Studio Web 中编辑项目时会删除断点。

即将弃用

在编码自动化中弃用 serviceContainer

编码自动化中的 serviceContainer 将在 Studio 2025.10 中弃用,并将由替代方案 ICodedWorkflowServices services.Container 所取代。此新方法为编码工作流提供资源管理,并可以自动导入命名空间和类型,以及使用 Resolve 方法配置特定的服务实例。

请访问弃用时间线,了解即将弃用的内容的最新信息。

已删除的功能

  • 传统设计体验(包括 Studio 2021.4 和更早版本中默认提供的活动、向导和录制器)将不再作为项目级别的选项或全局设置。“用户界面自动化”“Excel”传统活动仍会显示在“传统”类别下,并且可以通过“活动”面板或“添加活动”搜索栏添加到项目中。
  • Starting with this Studio release, you can only create new projects using the Windows and cross-platform compatibilities. This includes new processes, libraries, test automations, and templates. We continue to support editing existing Windows - Legacy projects and organizations are still able to use governance policies to restore the option of creating Windows - Legacy projects. For more information, see About the Windows - Legacy compatibility.
  • Starting with this release, the task to Run/Debug with Data Variations in the context menu of data-driven test cases within the Project Explorer was removed, because it didn't support dynamic test data variations. Instead, you can run/debug your data-driven test cases from the Test Explorer. If the static or dynamic data is run at least once, you can see all the data variations as child elements within your data-driven test case, within the Test explorer. Then, you can individually select the child elements and trigger their execution.

活动包版本

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

活动包

版本

UiPath.UIAutomation.Activities

UiPath.System.Activities

UiPath.Excel.Activities

UiPath.Mail.Activities

UiPath.Word.Activities

UiPath.ComplexScenarios.Activities

UiPath.Presentations.Activities

UiPath.Testing.Activities

UiPath.WebAPI.Activities

UiPath.Form.Activitiesv24.10.2
UiPath.Callout.Activitiesv24.10.2

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。