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

UiPath CLI 用户指南

uip rpa 添加测试数据队列

uip rpa add-test-data-queue将 Orchestrator 测试数据队列连接到测试用例中,作为其数据源。Studio 向测试用例添加一个IDictionary<string, object>参数,并以队列命名,在执行时,测试的每次迭代都会从队列中拉取一个项目,并将其键/值对提供给参数。

Studio 驱动操作,因此需要 Windows 运行器。Orchestrator 中必须已存在此队列;首先解析其名称、ID 和文件夹路径( uip or Orchestrator 命令会列出租户中的队列)。

大纲

uip rpa add-test-data-queue --test-case-path <string> --queue-name <string> --folder-path <string> --queue-id <number>
uip rpa add-test-data-queue --test-case-path <string> --queue-name <string> --folder-path <string> --queue-id <number>

选项

标记描述
--test-case-path <string>项目目录中测试用例文件( .xaml.cs )的相对路径。
--queue-name <string>Orchestrator 中测试数据队列的名称。
--folder-path <string>队列所在的 Orchestrator 文件夹路径。
--queue-id <number>测试数据队列的 Orchestrator ID。

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

uip rpa add-test-data-queue --help
uip rpa add-test-data-queue --help

示例

# Bind a queue from the Shared folder to a XAML test case
uip rpa add-test-data-queue \
  --test-case-path Tests/InvoiceFlow.xaml \
  --queue-name InvoicesToProcess \
  --folder-path Shared \
  --queue-id 4271

# Bind a queue from a sub-folder to a coded test case
uip rpa add-test-data-queue \
  --test-case-path Tests/CustomerOnboarding.cs \
  --queue-name OnboardingFixtures \
  --folder-path "Finance/QA" \
  --queue-id 5106
# Bind a queue from the Shared folder to a XAML test case
uip rpa add-test-data-queue \
  --test-case-path Tests/InvoiceFlow.xaml \
  --queue-name InvoicesToProcess \
  --folder-path Shared \
  --queue-id 4271

# Bind a queue from a sub-folder to a coded test case
uip rpa add-test-data-queue \
  --test-case-path Tests/CustomerOnboarding.cs \
  --queue-name OnboardingFixtures \
  --folder-path "Finance/QA" \
  --queue-id 5106

另请参阅

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新