UiPath Documentation
uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

uip rpa 添加测试数据实体

“uip rpa add-test-data-entity”的语法和选项,将 Data Service 实体连接到测试用例中,作为其数据源。

uip rpa add-test-data-entity将 UiPath Data Service 实体连接到测试用例中,作为其数据源。Studio 将实体类型的参数添加到以实体命名的测试用例文件中,因此每次测试调用都会收到一个强类型实体记录。

该动词由 Studio 驱动,因此需要 Windows 运行器。还需要 Automation Cloud 中启用 Data Service 的租户 — 在调用此动词之前,在其中发现实体名称及其完整类型名称。

大纲​

uip rpa add-test-data-entity --test-case-path <string> --entity-name <string> --entity-type-name <string>
uip rpa add-test-data-entity --test-case-path <string> --entity-name <string> --entity-type-name <string>

选项​

标记描述
--test-case-path <string>项目目录中测试用例文件( .xaml或.cs )的相对路径。
--entity-name <string>Data Service 实体的名称。
--entity-type-name <string>实体的完整类型名称(例如或命名空间限定类型) MyEntity

有关已安装工具版本的完整选项列表,请运行:

uip rpa add-test-data-entity --help
uip rpa add-test-data-entity --help

示例​

# Bind the Customer entity as a data source to a XAML test case
uip rpa add-test-data-entity \
  --test-case-path Tests/CustomerOnboarding.xaml \
  --entity-name Customer \
  --entity-type-name Customer

# Bind a namespace-qualified entity to a coded test case
uip rpa add-test-data-entity \
  --test-case-path Tests/InvoiceFlow.cs \
  --entity-name Invoice \
  --entity-type-name MyOrg.Finance.Invoice
# Bind the Customer entity as a data source to a XAML test case
uip rpa add-test-data-entity \
  --test-case-path Tests/CustomerOnboarding.xaml \
  --entity-name Customer \
  --entity-type-name Customer

# Bind a namespace-qualified entity to a coded test case
uip rpa add-test-data-entity \
  --test-case-path Tests/InvoiceFlow.cs \
  --entity-name Invoice \
  --entity-type-name MyOrg.Finance.Invoice

另请参阅​

  • 大纲​
  • 选项​
  • 示例​
  • 相关内容​
  • 另请参阅​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新