UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

上次更新日期 2026年5月7日

uip rpa add-test-data-queue

uip rpa add-test-data-queue wires an Orchestrator Test Data Queue into a test case as its data source. Studio adds an IDictionary<string, object> argument to the test case, named after the queue — at execution time, each iteration of the test pulls one item from the queue and feeds its key/value pairs into the argument.

Studio drives the operation, so a Windows runner is required. The queue must already exist in Orchestrator; resolve its name, ID, and folder path first (the uip or Orchestrator commands list queues in your tenant).

Synopsis

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>Relative path to the test case file (.xaml or .cs) within the project directory.
--queue-name <string>Name of the Test Data Queue in Orchestrator.
--folder-path <string>Orchestrator folder path where the queue resides.
--queue-id <number>Orchestrator ID of the Test Data Queue.

For the complete option list on your installed tool version, run:

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

另请参阅

  • Synopsis
  • 选项
  • 示例
  • Related
  • 另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新