uipath-cli
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath CLI 用户指南
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
相关内容
uip rpa add-test-data-entity— 绑定 Data Service 实体而不是队列。uip rpa add-test-data-variation— 绑定 CSV 或 Excel 变体文件。uip rpa create-project— 在添加数据源之前构建测试项目。uip tm testcases— 在 Test Manager 中管理匹配的测试用例。