- 发行说明
- 入门指南
- 设置和配置
- 自动化项目
- 依赖项
- 工作流类型
- 文件比较
- 自动化最佳实践
- 源代码控件集成
- 调试
- 诊断工具
- 工作流分析器
- 变量
- 参数
- 导入的命名空间
- 控制流程
- 对象存储库
- 日志记录
- ScreenScrapeJavaSupport 工具
- Studio 测试
- 扩展程序
- 故障排除
发行日期:2022 年 10 月 27 日
新增功能
支持全局变量和常量
现在可以更轻松地在项目中全局重用数据:
- 现在,您可以为变量设置全局作用域,并在整个项目中使用它们。这样一来,您就可以在多个工作流中引用同一变量,而无需使用参数并将其传递给每个工作流。
- 我们引入了常量,使您能够定义在项目执行期间不会更改的全局固定值。
Find out how to create global variables and constants from the Data Manager.
活动的新设计
Activities have a new design and an improved user experience. We've introduced new controls, editors, and builders for the most common data types, making it easier to configure activities without writing expressions. All activity properties are now available in the activity cards in the workflow designer, and you no longer need to use the Properties panel to configure advanced properties. This experience is available in cross-platform projects and for some activities in projects with the Windows compatibility. For more information, see Designing Automations.
此外,所有活动都有一个重新设计的标头,其中还包括一个用于快速访问活动上下文菜单的按钮,并且边框具有不同的颜色,具体取决于源包,左边框较粗以提高可见性。
设计时触发器
Studio 现在支持向项目添加手动、基于时间或基于事件的触发器,使您能够在设计时配置自动化的运行时间。我们提供了许多可自定义的触发器活动,并且正在开发更多基于事件的触发器。
For more information, see Adding a trigger.
Windows 是新的默认项目兼容性
我们努力始终提供最新且最好的技术。在最近的版本中,我们朝着这个方向采取的步骤之一是引入了 Windows 和基于 .NET 6 的跨平台项目兼容性。我们致力于扩展对新框架的支持并改善设计体验,以便到 2022.10 版本时,我们可以告别基于 .NET 4.6.1 的 Windows - 旧版兼容性。尽管您仍然可以创建 Windows - 旧版项目,但 Windows 现在默认兼容新项目,我们建议您开始采用 Windows 和跨平台选项。2023.4 版本将支持编辑现有的 Windows 旧版项目,但不支持创建新项目。现在,在 StudioX 中创建项目时,您还必须选择项目兼容性,而“Windows 旧版”曾是唯一的选项。
为了更轻松地进行转换,StudioX 现在附带了一个内置的转换工具,您能够使用该工具轻松地将任何 Windows - 旧版项目转换为 Windows 项目。Studio 和 StudioX 均提供该转换工具。
For more information, see Deprecation of the Windows-Legacy Compatibility. We recommend that you regularly check the deprecation timeline for any updates regarding features that will be deprecated and removed.
Studio 和 Studio Web 中的设计自动化
With the introduction of Studio Web, you can now design automations on-the-go, from a web browser on any device. If you use Studio and Studio Web, your cross-platform projects are always kept in sync and you can develop on both. Find out how to switch between Studio and Studio Web.
当前 Studio Web 处于预览阶段。
配置文件执行
Keep the execution performance of your automation to optimal levels by profiling your workflows. The Profile Execution identifies performance bottlenecks when you execute your workflows by capturing the execution time of each activity alongside other descriptive stats.
数据管理器简介
You can now manage all the data in a project from a single location, the Data Manager. After making its debut in StudioX, the Data Manager is now available in Studio to help you manage variables, arguments, constants, namespaces, entities, resource activities, connections, processes, assets, and queues. The Resources panel has been retired, but you still have the option to continue using the old Variables, Arguments, and Namespaces panels.
自定义从库生成的活动
现在,您可以更好地控制从库生成的活动的设计。您可以设置作为属性显示的参数的顺序,添加标签、工具提示,以及选择是否需要属性。对于 Windows 和跨平台库,您还可以为每个活动添加 SVG 图标和高亮显示颜色,在类别下对属性进行分组,或为每个属性配置输入类型(例如,对于布尔值参数,您可以将输入设置为切换开关或条件生成器)。
For more information, see Configuring the Layout of an Activity.
将流程提取为库
You can now extract any process or test automation project as a library that you can publish on shared feeds. Through this capability, you can easily share workflows, test cases, execution templates, or activity packages to help others automate.
首次运行时快速浏览
现在,当您首次在 Studio 中打开项目时,可以快速浏览,以熟悉可用于构建自动化的各种面板和工具。其中一些亮点包括:
- 基本面板及其功能。
- 如何添加活动。
- 如何配置活动。
- 如何运行和发布流程。
在 Studio 中编辑文本文件
Studio 现在具有带有语法高亮显示的内置文本编辑器。您可以双击小于 10MB 的 TXT、CS、VB、JSON(不包括 project.json)和 XML 文件,以便在 Studio 中进行编辑。
改进
工作流分析器
现在,您可以使用“工作流分析器”窗口顶部的新搜索框,按名称和代码搜索规则。通过添加新的筛选器下拉列表(支持搜索框旁边的多选),我们对按作用域和操作进行筛选也进行了改进。
新规则
- ST-USG-032 (Required tags) - Enables organizations to define a list of required project tags.
- ST-USG-034 (Automation Hub URL) - Enables organizations to enforce linking each project to an Automation Hub idea.
改进的规则
ST-USG-014 (Package restrictions) now enables you to define a list of allowed packages, not just prohibited packages. The Allowed Packages box supports the * wildcard character, so for example you can enter UiPath.* to allow only packages published by UiPath.
易用性
隐藏序列
You now have the option to declutter the project canvas by hiding unnecessary containers. Select the Hide sequences design setting to no longer display the main sequence and other containers that are added by default to your projects.
活动缺失或无效
现在,您可以更轻松地对缺失或无效的活动进行故障排除,并且还可获得帮助您找到替代活动的其他信息:
- 活动顶部会出现显示名称,而不是文本“缺失或无效活动”。
- 如果活动是容器活动,则其中添加的活动现在在工作流中可见。
- 在活动中设置的属性和值将显示在“设计器”或“属性”面板中。
- 活动中提供了“替换”按钮,使您能够使用“添加活动”搜索栏快速搜索替代活动,并替换缺失或无效的活动。
测试自动化
使用测试数据队列进行数据驱动测试
使用测试数据队列作为测试用例的来源,数据驱动测试变得更加方便。如果要使用队列中的动态测试数据,可以使用此选项。
For more information, see Add test data queue as data source to a test case.
自动生成的测试数据
- 自动生成的数据已收到幕后更新,其中包含可理解工作流上下文的智能字符串模式,为您提供常用表达式的相关数据(例如 IBAN、信用卡号)。
- 您可以为“输出”和“输入/输出”参数设置自动验证,以支持测试工作。
- 现在支持基于时间的参数,例如“日期时间”和“时间跨度”。
Orchestrator assets are now taken into consideration when you generate values for workflows that are using these asset types.
数据驱动的测试
- The Add Test Data Queue Item activity now supports fields with user-defined names.
- 您可以重命名测试文件。
模板
库项目支持测试用例和执行模板,因此您可以共享、重用和更新测试资产。测试用例模板不应包含对库中资产的任何引用,因为它们不会被复制到要导入库的项目中。
Create test cases through the Test with Timeout template for time-based exceptions, or to take screenshots of failed workflow verifications (see Test Case Templates).
Test Manager 集成
现在,如果您在测试资源管理器中选择“将测试结果上传到 Test Manager”,则在 Studio 中本地执行的测试会显示在 Test Manager 中。
For more information, see Working with Test Explorer.
测试探测器
- 测试用例变体现在包含在活动覆盖率计算中。
- 您可以使用测试资源管理器的上下文菜单复制数据变体信息。
其他改进
- Organizations can now use governance policies to control which feeds users can publish to and which templates feeds are enabled in Studio.
- 通过减少 UiPathStudio.msi 中包含的活动包数量,Studio MSI 安装程序已精简,因此您可在本地订阅源中使用。只有以下包是在 Studio 和 StudioX 中创建项目时的默认依赖项,安装程序中已包含这些包以及 Studio 和 StudioX 的依赖项:Excel、Mail、System、UIAutomation、Testing、Presentations、ComplexScenarios、WebAPI 和 Word。您可以从官方订阅源或 Orchestrator 订阅源安装其他官方包。
- 现在,您可以选择删除在发布时未在项目中引用的已安装包,从而提高性能并避免潜在的依赖项冲突。发布向导的“发布选项”选项卡中提供了一个名为“删除未使用的依赖项”的新选项,适用于所有库以及 Windows 和跨平台流程。默认情况下为库启用该选项。
- 现在,您可以使用远程调试在通过 Unattended Robot 连接的远程机器人上运行和调试长时间运行的工作流。
- The URL of the official feed for packages has changed to https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json.
重大变更
Studio 2022.10 与 Studio 2022.4 或更早版本中提供的旧版跨平台活动包版本不兼容。如果您在 Studio 2022.10 之前的版本中创建了跨平台项目,在 Studio 2022.10 中编辑已安装的包之前,请将其更新为最新版本。某些属性可能无法再进行编辑。
错误修复
- 在日语键盘上的键盘快捷方式中使用时,右侧的 Ctrl 和 Alt 键不起作用。
- 打开包含多个连接到同一活动的流程切换活动的工作流文件时发生错误。
- 如果在 VB 项目中安装了包含 UiPath.DataService.Activities 包依赖项的 C# 库,则在尝试运行项目时会发生由于对 UiPath.DataService.Definition 程序集的重复引用而导致的错误。
- 如果在安装期间未禁用遥测并且正在使用代理服务器,则安装有时会失败。
- 如果在主工作流文件打开且包含未保存的更改时触发项目分析,则 Studio 可能会在项目验证期间无响应。
- 如果项目路径包含空格,则项目依赖项批量更新工具无法从 TFS 成功更新项目。
- Studio 允许添加具有 ICO 扩展名的包图标,这会在发布项目时导致错误。
- 未保存添加到库项目中的工作流文件的工具提示。
- 当项目包含“调用代码”活动时,工作流分析有时无法运行。
- 删除未使用的变量有时也会删除已使用的变量。
- 某些参数类型的“设计属性”窗口未打开,从而使您无法向参数添加工具提示。
- 当在更高版本的 Studio 中更新在 2021.4 之前的 Studio 版本中创建的库时,在将更新的库作为依赖项安装的项目中,执行速度很慢。
- 在“活动”或“项目”面板内单击有时会导致面板意外移动。
- 重命名“字典”类型变量和参数不会更新使用它们的活动中的名称。
- 执行测试用例后,系统会提示您重新启动 Studio。
- 从“项目”面板的不同子文件夹中选择多个文件,然后删除它们会导致整个项目被删除。
- 将活动提取为工作流时,错误地更改了活动中使用的“字典”类型参数的方向。
- 在项目中安装多个相互依赖的库时,从该项目打开工作流文件会导致内存消耗高于预期,Studio 有时会崩溃。
- 在执行作为依赖项安装库的项目时,在库活动中引用文件路径会导致当前目录意外更改。为避免此问题,当您需要引用库项目中的文件路径时,请使用新的全局常量 UiPath.Constants.Project.Location。例如
UiPath.Constants.Project.Location+"InputData\Employee.txt"。 - 通过 SCCM 在大规模部署中执行安装时,安装未成功完成。
- 现在,当您配置设备时,“Appium URL”字段会提供一条内联错误消息,指出不支持 HTTPS。
- 当某个占位符未放置在“序列”活动中时,使用包含多个占位符的模板执行测试用例不会失败。已通过 Studio 日志提供错误消息来解决此问题。
- 当工作流具有参数时,使用包含多个占位符的模板运行测试用例失败。
- Addressed an issue in which the Test Case Without Annotations rule was not updated properly.
- 由于语言兼容性问题,从 Excel 导入数据有时会导致单元格格式为“日期”。
- 在设计期间,在“随机日期”活动中使用变量失败。
已知问题
-
您无法关闭或浮动 Studio 面板。
-
在极少数情况下,在项目编译期间系统会显示错误消息“系统参数异常:无法停靠到自动隐藏目标的一侧(参数“target”)”。解决方法是重新加载项目。
-
全局变量未序列化,因此与长时间运行的持久性活动不兼容。
-
For projects that don’t have Manage Access enabled, the Open Test and Unlink Test options aren't available to perform from the designer ribbon in Studio, due to a faulty API.
重要提示:Erratum 9 November 2022: Added a known issue related to opening and unlinking Test Cases from the designer ribbon in Studio.
即将移除
从 2023.4 企业版开始,32 位安装程序将停用,您将只能在 64 位操作系统上安装 Studio、Robot 和 Assistant。
我们建议您定期查看弃用时间表,以获取有关针对即将弃用和删除功能的任何更新。
活动包版本
UiPathStudio.msi 安装程序中包含以下活动包和版本,均可在本地订阅源中找到。
| 活动包 | 版本 |
|---|---|
| UiPath.UIAutomation.Activities | v22.10.3 |
| UiPath.System.Activities | v22.10.3 |
| UiPath.Excel.Activities | v2.16.0 |
| UiPath.Mail.Activities | v1.18.1 |
| UiPath.Word.Activities | v1.13.0 |
| UiPath.ComplexScenarios.Activities | v1.3.0 |
| UiPath.Presentations.Activities | v1.7.0 |
| UiPath.Testing.Activities | v22.10.0 |
| UiPath.WebAPI.Activities | v1.13.2 |