activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年3月26日

GetTestDataQueueItems

从指定的测试数据队列中提取数据行。

定义

命名空间: UiPath.Testing.API

程序集: UiPath.Testing.Activities.Api(在 UiPath.Testing.Activities.Api.dll 中)

重载

GetTestDataQueueItems(String)从指定的测试数据队列中提取数据行。
GetTestDataQueueItems(String, String)从某个 Orchestrator 文件夹中的指定测试数据队列中提取数据行。
GetTestDataQueueItems(String, String, TestDataQueueItemStatus, Nullable<Int32>)从某个 Orchestrator 文件夹中的指定测试数据队列中提取数据行,您将为其应用筛选器,以便更精确地进行搜索。

GetTestDataQueueItems(String)

从指定的测试数据队列中提取数据行。

List<TestDataQueueItem> GetTestDataQueueItems(
    string queueName
)
List<TestDataQueueItem> GetTestDataQueueItems(
    string queueName
)

queueName String : The queue where the queue item is fetched from. The name is not case sensitive. For example, if you have defined your test data queue as TestDataQueue in Orchestrator, it matches testdataqueue.

GetTestDataQueueItems(String, String)

从某个 Orchestrator 文件夹中的指定测试数据队列中提取数据行。

List<TestDataQueueItem> GetTestDataQueueItems(
    string queueName,
    string folderPath
)
List<TestDataQueueItem> GetTestDataQueueItems(
    string queueName,
    string folderPath
)

queueName String : The queue where the queue item is fetched from. The name is not case sensitive. For example, if you have defined your test data queue as TestDataQueue in Orchestrator, it matches testdataqueue.

folderPath String : 指定测试数据队列所在文件夹的路径(如果与运行流程的文件夹不同)。此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。例如"Testing/Automated Testing"

GetTestDataQueueItems(String, String, TestDataQueueItemStatus, Nullable<Int32>)

从某个 Orchestrator 文件夹中的指定测试数据队列中提取数据行,您将为其应用筛选器,以便更精确地进行搜索。

List<TestDataQueueItem> GetTestDataQueueItems(
    string queueName,
    string folderPath,
    string idFilter,
    TestDataQueueItemStatus testDataQueueItemStatus,
    int? skip,
    int? top,
    int timeoutMs
)
List<TestDataQueueItem> GetTestDataQueueItems(
    string queueName,
    string folderPath,
    string idFilter,
    TestDataQueueItemStatus testDataQueueItemStatus,
    int? skip,
    int? top,
    int timeoutMs
)

queueName String : The queue where the queue item is fetched from. The name is not case sensitive. For example, if you have defined your test data queue as TestDataQueue in Orchestrator, it matches testdataqueue.

folderPath String : 指定测试数据队列所在文件夹的路径(如果与运行流程的文件夹不同)。此字段仅支持字符串值,并使用/作为分隔符来表示子文件夹。例如"Testing/Automated Testing"

idFilter String : 队列项目的 ID。

testDataQueueItemStatus TestDataQueueItemStatus :通过从下拉列表中选择一个选项,按队列项目状态进行筛选:

  • All - 所有项目,无论它们是否已标记为“已消耗”“未消耗”
  • ItemConsumed - 按标记为“已消耗”的测试数据队列项目筛选。
  • ItemsNotConsumed - 按标记为“未消耗”的测试数据队列项目筛选。

skip可空< Int32 >:指定在检索项目之前要跳过的项目数。如果指定值大于记录总数,则不提取任何记录。此属性支持最大为测试数据队列长度的值。默认情况下,该值设置为0

top Nullable < Int32 >:指定从总记录中提取的测试数据队列项目的最大数量。仅当您想要获取特定数量的项目时才设置此项。

timeoutMs Int32 :指定等待时间(以毫秒为单位),如果超出该时间后活动并未运行,系统便会抛出错误。默认值为 30000 毫秒(30 秒)。

返回值

列表<TestDataQueueItem>

输出测试数据队列项目。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新