- 发行说明
- 入门指南
- 设置和配置
- 自动化项目
- 依赖项
- 工作流类型
- 文件比较
- 自动化最佳实践
- 源代码控件集成
- 调试
- 诊断工具
- 工作流分析器
- 变量
- 参数
- 导入的命名空间
- 控制流程
- 对象存储库
- 日志记录
- ScaleCoordinates 迁移工具
- ScreenScrapeJavaSupport 工具
- StudioPro
- 扩展程序
- 故障排除
发行日期:2020 年 10 月 28 日
新增功能
对象存储库
The Object Repository is here to cover all your needs in terms of the management, reusability, and reliability of UI elements by capturing them as objects in a DOM-like repository, sharable across projects.
存储您在 UI Automation 中使用的元素,然后在项目中重复使用,或将其作为存储库发布,并作为其他项目的依赖项进行安装。当基础应用程序界面更改时,您所需要做的就是更新您的库和依赖项。另外,您可以从对象库中的“UI 活动”选项卡查看项目中使用的所有用户界面自动化活动。
新式设计体验
You can now enable a new experience of working with UI Automation that makes it easier to indicate and configure UI elements, and brings more accuracy in element detection by combining the selector and image targeting methods, along with anchors. The modern experience comes with new activities, an all-in-one recorder, a new data scraping wizard, and support for the Object Repository. Projects created in the StudioX profile use the modern experience by default.
入门体验
UiPath Studio 入门变得非常容易:
-
在用户模式下安装 Robot 时,只需登录 UiPath 帐户即可将 Studio 和 Assistant 连接到 Orchestrator,而无需任何计算机密钥。您可以立即访问 Orchestrator 资源。产品已激活,您可以发布到组织中。
If you don't sign in when you first launch Studio, you can still activate by connecting to Orchestrator with a machine key or by using a license key, and then sign in later from Studio or Assistant. To find out more about how to connect all your UiPath products by signing in, see Setting Up Interactive Sign-In.
-
首次打开 Studio 时,可以在快捷交互式教程的指导下完成创建、运行和发布自动化的整个流程。如果您想重新访问此教程,可以随时从 Studio 后台视图的“帮助”选项卡中访问。
创建和共享模板
You can now create and publish your own templates in the same way as you do processes. Build templates with a particular set of dependencies and workflows with already defined variables and arguments, and save time by creating new projects based on your templates.
与他人共享模板就像将它们发布到 Orchestrator 一样简单。您可以从 Studio 中新增的“模板”标签访问自己的模板和他人共享的模板。
Data Service 集成
Studio features integration with the Data Service that offers data modeling and storage capabilities. In the Data Service, you can create entities to store data that can later be used in automation projects. From within Studio, import entities and collect, update, and pass data to other processes.
By using entities created in the Data Service, you can manage and manipulate data aggregated in a single object. This means that you no longer need to pass large numbers of variables and arguments between processes and workflows, and you can use the same organization-specific data types across all UiPath services.
查找对活动、变量和参数的引用
Finding all the places in your project where each activity, variable, and argument is referenced is now a lot easier. Right-click the element, select Find References, and view the results in the Find References panel.
多个入口点
You can now mark any workflow file as an entry point for a process by right-clicking it in the Project panel and selecting Enable Entry Point. A file marked as an entry point can be selected as the workflow to run first when using the Invoke Process and Run Parallel Process activities in other processes. This feature is not yet supported in Orchestrator, but you can start to logically map your entry points.
画中画
画中画 (PiP) 功能使您能够在单独的会话中运行有人值守的自动化,该功能现已从实验性过渡到普遍可用。在 PiP 中测试一个流程并将其标记为 PiP 就绪,以指明可以在“画中画”中执行此流程。如果要在执行已发布的流程时将其设为默认选项,则可以将其标记为在 PiP 中启动。
Studio Pro 的新功能
模拟测试
模拟测试现在可用于装置测试,因此您可以隔离和测试特定的测试用例功能(需要 UiPath.Testing.Activities 1.2.1或更高版本)。
C#支持
You can now choose between VB.NET and C# as the language to use for expressions in all projects. You can set a global default language, select the language to use whenever you create a new project, and organizations can enforce the language to use through the governance file. For more information about C# support, see About Automation Projects.
改进
管理包
- To make it easier for you to find just the packages you need when you are managing the dependencies installed in your projects, we’ve added additional filtering options to the Manage Packages window. You can select to view only activities packages, libraries, UI libraries, or packages published by UiPath, and show or hide prerelease versions.
- 现在,“管理包”窗口中的搜索将在活动包的描述中查找,而不仅仅是在名称中查找。
发布项目
-
现在,在发布流程时,您可以防止包中包含项目文件夹中的某些文件。右键单击“项目”面板中的一个文件或一组文件,然后选择“从发布中忽略”。要还原更改,请右键单击并选择“设为可发布”。
库的“项目”面板上下文菜单中提供的“私人”/“公开”选项也已重命名为“从发布中忽略”/“设为可发布”,并且在选择多个文件时可用这些选项。
-
When Workflow Analyzer before publish is enforced, the published packages now contain a file with details about the results of the analysis for each enabled rule.
监管
- Organizations can now configure whether or not users are allowed to change Studio design settings using the new
"AllowEdit"parameter available for the settings in the governance file.
源代码控件
- 现在,将大型项目检入到 TFS 信息库的速度更快。
- 现在,您可以更改 GIT 提交签名。
- 现在,您可以更改 SVN 存储库凭据。
工作流分析器
新规则
- 提供新的工作流分析器规则以确保在支持暂留的项目中遵循设计最佳实践:
- Persistence Activity Check (ST-DBP-024) - Restrict the use of Wait ... and Resume persistence activities only to the workflow file that is set as Main.
- Data Serialization Prerequisite (ST-DBP-025) - Check if there are any variables that are not serializable in the scope of Wait ... and Resume persistence activities or in the scope of their parent activities.
- Delay Activity Usage (ST-DBP-026) - Check whether the Delay activity is used in the workflow file set as Main.
- Persistence Best Practice (ST-DBP-027) - Check whether Wait ... and Resume persistence activities are used inside the For Each activity.
- Arguments Serialization Prerequisite (ST-DBP-028) - Check if there are any arguments that are not serializable in the scope of Wait ... and Resume persistence activities or in the scope of their parent activities.
- 有两个新的使用规则:
- Required Packages (ST-USG-027) enforces the use of certain activities packages in a project. For example, you can use this rule to ensure a NuGet package containing custom Workflow Analyzer rules is installed as a project dependency.
- Minimum Log Messages (ST-USG-020) checks whether the Log Message activity is used at least once per workflow.
- The new naming rule Prefix Datatable Variables (ST-NMG-009) checks whether the names of
DataTablevariables defined in the workflow with the typeDataTablestart with thedt_prefix.
命令行改进
- Additional information is now available when you run the Workflow Analyzer from the command line:
- 输出包括生成每个工作流分析器错误之项目的名称和类型。
- 您可以返回命令的退出代码。
- 在下列情况下,从命令行运行工作流分析器时,系统现在会返回带有相关信息的消息:
- 没有遇到违反规则的情况。
- 提供了错误的项目或工作流文件路径。
- 项目的完整路径超出了 260 个字符(若是文件名)或 248 个字符(若是目录路径,不含文件名)的最大限制,或两者同时超出最大限制。
其他改进
- By default, Workflow Analyzer rules are arranged by code in the window, and enabled rules are displayed first.
- 我们通过以下更改改进了工作流分析器的功能:
- 当您手动分析单个文件时,系统也会对该文件执行含项目范围的规则。
- 如果启用了“运行前执行分析器”,则在您运行或调试单个工作流文件时,系统将对项目中的所有工作流文件执行所有含
Error操作的规则。如果该文件是测试用例,则还会分析所有测试用例文件。 - 在分析项目时,您可以选择从工作流分析中排除测试用例文件。
- 您可以手动分析单个测试用例文件。
- 如果启用了“运行前执行分析器”,则当您选择一次运行或调试多个测试用例时,系统将对项目中的所有工作流和测试用例文件执行所有含
Error操作的规则。
- 现在,许多针对活动的工作流分析器规则也适用于流程图和状态机:
- Rules that apply to activities added to the branches of Flow Decision and Flow Switch activities in flowcharts: Display Name Duplication, Activity Name Defaults.
- Rules that apply to activities added inside the State activity in state machines: Display Name Duplication, Data Serialization Prerequisite, Prefix Datatable Arguments, Variable Length Exceeded, Variable Overrides Variable, Variables Naming Convention, Variable Overrides Argument, SecureString Misusage, SecureString Variable Usage, Unused Dependencies, Unused Variables.
- The rule Undefined Output Properties (ST-DBP-020) now identifies output properties that are defined using expressions. In addition, because there are many cases in which it is not necessary to define output properties for an activity, the rule is now disabled by default.
可用性和速度
2020.10 版 Studio 在可用性上有许多改进。在速度方面,我们缩短了项目加载时间和启动时间,而且现在可以从“命令面板”更快地添加活动。此外,我们还改进了库编译器,从作为项目依赖项安装的库执行活动时,性能会有所提升。我们希望通过这些改进,为您提供更加快捷无缝的自动化体验。
- 在“设计器”面板中为折叠的活动启用精简视图。
- 依赖项更改后,仍保留其在当前已打开文件中的位置。
- 您可以在“活动”面板中按描述搜索活动。
- 在“活动”面板中,当您将鼠标悬停在活动上方时,系统将显示该活动的描述文字。
- 现在,当您在“设计器”面板中将鼠标悬停在某个活动的上方时,屏幕上出现的工具提示会显示其中包含该活动的活动包。
- 按 Esc 键可关闭“表达式编辑器”。
- 现在,在活动标题栏中编辑显示的名称时,可以按 Enter 键保存更改。
- 现在,按下键盘快捷键 Ctrl + Alt + E 可以显示“错误列表”面板。
- 将文件资源管理器中的文件直接复制并粘贴到“项目”面板。您还可使用拖放功能对一个或多个文件执行相同操作,包括
.xaml工作流。使用 Ctrl + C 和 Ctrl + V 快捷方式,您还可以复制文件并在树中的任意位置复制它。 - 在“命令面板”中搜索活动时,在仅在描述中包含搜索词的活动前列出标题中包含搜索词的活动,可以返回更好的结果。
- The performance of searching and adding activities using the Add Activity search bar is now improved.
- 将资产、队列或流程直接从“资源”面板拖放到自动化项目中。这样,系统会在“添加活动”搜索栏中建议合适的活动。
- 现在,您可以直接从“项目”面板导入添加到库项目中的 Web 服务的命名空间:在“项目”面板中右键单击服务,然后选择“导入命名空间”。
机器人企业框架模板
2020.10 版 Studio 对 Robotic Enterprise Framework 模板做了一些改进,以合并当前的一些功能:
- Studio Pro 配置文件中的 C#项目可使用 Robotic Enterprise Framework 模板。
- 更新了模板,以支持 Orchestrator 中的现代文件夹。为此,Config.xlsx 文件中的“资产”表得到一个新列,用于指定存储资产的文件夹。另外也修改了 InitAllSetting.xaml文件。
已知问题
-
由于在 19.4 版之后,多个系统活动的命名空间已更改,因此,如果您使用 19.4 版或更早版本的系统活动包将其中一个受影响的活动添加到“收藏夹”列表中,则当您将包更新为 19.4 之后版本时,“收藏夹”列表中将不再显示该活动。现有的解决方法是将活动重新添加到“收藏夹”列表中。
命名空间已更改的活动是:日志消息、筛选器数据表、消息框、文件更改触发器、调用代码、重试范围、后条件循环和前条件循环。
-
当您将项目发布到自定义的 URL 时,该 URL 在发布流程末尾的“信息”对话框打开时不可用,如果单击对话框中的“位置”链接,则系统可能要花费比预期更长的时间(超过1分钟)才会显示错误,并通知您找不到该位置。
-
An error occurs when you use the Test Activity feature for an activity that requires a scope.
在 Studio Pro 中
- 发布测试时,重命名包含测试用例的 Studio Pro 测试项目会导致错误。
- 与 VB.NET 相比,C#项目的设计时间和运行时性能较低。当运行时性能至关重要时,我们建议使用 VB.NET 而不是 C#。我们计划在以后的更新中更新与 C# 相关的速度。
- 如果模拟文件源自未解析的活动,则无法删除该模拟文件中的活动。
错误修复
- “通用搜索”栏从在“设计器”面板中打开的
.xaml文件返回注释。请注意,搜索结果中会修剪完全匹配的注释。 - 现在,无论计算机上的区域设置如何,工作流分析器都可以正确地分析项目。
- 将项目从 v2018.3 之前版本迁移到当前的 Studio 版本时,默认情况下不再安装 UiPath.UIAutomationNext.Activities 包。在迁移到 Studio v2020.4.1 版时已添加此包。
- 修复了一个问题,该问题会导致用户即使有权访问目录,仍无法将项目发布到网络驱动器,并且会导致“目录没有写入权限”错误。
- 在与 TFS 来源控件连接的项目中工作后,如果将 Studio 长时间闲置,Studio 不再会变得无响应。
- 在“项目”面板中右键单击工作流文件并选择“查找参考”时,“查找参考”面板现在将按预期显示。
- 当您使用 Ctrl + K、Ctrl + M 或 Ctrl + Shift + M 在“分配”活动的“至”字段中创建变量或参数,然后使用表达式编辑器在“值”字段中添加带双引号的字符串时,不再发生验证错误。默认情况下,现在在“至”字段中创建的变量和参数类型为“字符串”。如果将类型更改为 GenericValue,则在表达式编辑器的“值”字段中添加字符串将导致验证错误。
- 修复了一个问题,该问题可阻止用户从项目依赖项批量更新工具发布项目至 Orchestrator 中的个人工作区。
- 当您使用 pull (rebase) GIT 选项时,新创建的分支现在会显示于来源控件“状态栏”中的远程存储库中。
- The Unused Variables (ST-USG-009) Workflow Analyzer rule now correctly identifies variable usage in Multiple Assign activities.
- The Unused Variables (ST-USG-009) Workflow Analyzer rule no longer generates a rule violation warning when there is a case mismatch between a variable name and the name used to reference it in an activity.
- “本地”面板现在按名称、类型或值对变量、参数和活动属性进行排序。
- 在“调用工作流文件”活动中提供的 工作流文件名若大写形式与调用的文件名不同,则在调用的工作流文件中对活动设置的断点现在会起作用。
- 修复了一个问题,该问题会阻止代码自动完成功能处理 Main.xaml 工作流文件中 System.Data.DataSetExtensions 命名空间的表达式。请注意,此修复程序仅适用于在此 Studio 版本中创建的新项目。
- 当遇到以不符合要求的数据填充的注册表区域时,安装程序不再失败。