Orchestrator
2023.4
False
横幅背景图像
Orchestrator 用户指南
上次更新日期 2024年4月19日

在 Orchestrator 中管理测试数据队列

概述

在 Orchestrator 中管理测试数据队列和队列项目。新。创建的测试数据队列为空,但是您可以基于定义的 JSON 架构直接在 Orchestrator 中或通过 Studio 上传队列项目。

JSON 架构定义

要创建测试数据队列,您需要定义一个 JSON 架构以正确格式化数据。这将支持将项目上传到您的测试数据队列,其中列是 JSON 内容的第一级属性,由您的模式定义。

以下 JSON 架构示例包含根架构。

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "http://example.com/example.json",
    "type": "object",
    "title": "The root schema",
    "description": "The root schema comprises the entire JSON document.",
    "default": {},
    "examples": [
        {
            "id": 1,
            "first_name": "John",
            "last_name": "doe",
            "email": "john.doe@aol.com",
            "gender": "male",
            "ip_address": "148.38.201.83",
            "skills": "UHV"
        }
    ],
    "required": [
        "id",
        "first_name",
        "last_name",
        "email",
        "gender",
        "ip_address",
        "skills"
    ],
    "properties": {
        "id": {
            "$id": "#/properties/id",
            "type": "integer",
            "title": "The id schema",
            "description": "An explanation about the purpose of this instance.",
            "default": 0,
            "examples": [
                1
            ]
        },
        "first_name": {
            "$id": "#/properties/first_name",
            "type": "string",
            "title": "The first_name schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "John"
            ]
        },
        "last_name": {
            "$id": "#/properties/last_name",
            "type": "string",
            "title": "The last_name schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "doe"
            ]
        },
        "email": {
            "$id": "#/properties/email",
            "type": "string",
            "title": "The email schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "john.doe@aol.com"
            ]
        },
        "gender": {
            "$id": "#/properties/gender",
            "type": "string",
            "title": "The gender schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "male"
            ]
        },
        "ip_address": {
            "$id": "#/properties/ip_address",
            "type": "string",
            "title": "The ip_address schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "148.38.201.83"
            ]
        },
        "skills": {
            "$id": "#/properties/skills",
            "type": "string",
            "title": "The skills schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "UHV"
            ]
        }
    },
    "additionalProperties": true
}{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "http://example.com/example.json",
    "type": "object",
    "title": "The root schema",
    "description": "The root schema comprises the entire JSON document.",
    "default": {},
    "examples": [
        {
            "id": 1,
            "first_name": "John",
            "last_name": "doe",
            "email": "john.doe@aol.com",
            "gender": "male",
            "ip_address": "148.38.201.83",
            "skills": "UHV"
        }
    ],
    "required": [
        "id",
        "first_name",
        "last_name",
        "email",
        "gender",
        "ip_address",
        "skills"
    ],
    "properties": {
        "id": {
            "$id": "#/properties/id",
            "type": "integer",
            "title": "The id schema",
            "description": "An explanation about the purpose of this instance.",
            "default": 0,
            "examples": [
                1
            ]
        },
        "first_name": {
            "$id": "#/properties/first_name",
            "type": "string",
            "title": "The first_name schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "John"
            ]
        },
        "last_name": {
            "$id": "#/properties/last_name",
            "type": "string",
            "title": "The last_name schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "doe"
            ]
        },
        "email": {
            "$id": "#/properties/email",
            "type": "string",
            "title": "The email schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "john.doe@aol.com"
            ]
        },
        "gender": {
            "$id": "#/properties/gender",
            "type": "string",
            "title": "The gender schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "male"
            ]
        },
        "ip_address": {
            "$id": "#/properties/ip_address",
            "type": "string",
            "title": "The ip_address schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "148.38.201.83"
            ]
        },
        "skills": {
            "$id": "#/properties/skills",
            "type": "string",
            "title": "The skills schema",
            "description": "An explanation about the purpose of this instance.",
            "default": "",
            "examples": [
                "UHV"
            ]
        }
    },
    "additionalProperties": true
}

管理测试数据队列

创建测试数据队列

  1. 登录到 Orchestrator。
  2. 打开文件夹。
  3. 导航到“测试”>“测试数据队列”
  4. 单击“添加测试数据队列”
  5. 输入测试数据队列的名称
  6. 添加描述(可选)以轻松识别每个测试数据队列的用途。
  7. 单击“浏览”以查找并上传您的 JSON 架构。
    重要提示:要创建 JSON 架构,请单击“如何创建 JSON 架构?”,并参阅 JSON 架构定义
  8. 单击“添加”以保存更改。

    您的测试数据队列将添加到列表中。您可以通过以下方式开始将项目上传到队列中:

编辑测试数据队列

  1. 登录到 Orchestrator。
  2. 打开文件夹。
  3. 导航到“测试”>“测试数据队列”
  4. 选择一个测试数据队列,然后单击垂直省略号以打开下拉菜单。
  5. 单击“编辑”
  6. 配置您的测试数据队列设置。
  7. 单击“创建”以确认更改。

删除测试数据队列

  1. 登录到 Orchestrator。
  2. 打开文件夹。
  3. 导航到“测试”>“测试数据队列”
  4. 选择一个测试数据队列,然后单击垂直省略号以打开下拉菜单。
  5. 单击“删除”
  6. 单击“确定”以确认更改。

将项目上传到测试数据队列

在上传项目之前,请确保您已 创建 JSON 架构并添加了测试数据队列

  1. 登录到 Orchestrator。
  2. 打开文件夹。
  3. 导航到“测试”>“测试数据队列”
  4. 选择一个测试数据队列,单击垂直省略号,然后从下拉列表中选择“ 上传项目 ”。
  5. 选择一个 CSV 文件,然后单击“ 上传”。
    重要提示: 确保您的 CSV 内容与 JSON 架构匹配。

管理测试数据队列项目

在 Orchestrator 中管理队列项目以准备测试队列以供使用。

要管理测试数据队列项目,请导航至测试>测试数据队列,单击队列上的垂直省略号,然后单击查看项目

下表列出了可以用来管理测试数据队列项目的操作

操作

描述

程序

上传项目

将项目上传到您的测试数据队列。

  1. 在“测试数据队列”页面中,选择一个队列,然后单击垂直省略号以打开下拉菜单。
  2. 单击“上传项目”

已消耗

该项目在测试数据队列中使用。标记为“已消耗”的项目将从将来的测试数据队列运行中排除。

  1. 在“测试数据队列”页面中,选择一个队列,然后单击垂直省略号以打开下拉菜单。
  2. 单击“查看项目”
  3. 单击单个项目上的“已消耗”框。

将队列中的所有项目设置为已消耗

将所有项目标记为“已消耗”,以从将来的测试数据队列运行中排除。

  1. 在“测试数据队列”页面中,选择一个队列,然后单击垂直省略号以打开下拉菜单。
  2. 单击“查看项目”
  3. 单击“将队列中的所有项目设置为已消耗”

将队列中的所有项目设置为未消耗

将所有项目标记为“未消耗”,以将其加人将来的测试数据队列运行。

  1. 在“测试数据队列”页面中,选择一个队列,然后单击垂直省略号以打开下拉菜单。
  2. 单击“查看项目”
  3. 单击“将队列中的所有项目设置为已消耗”

删除

从测试数据队列中删除项目。

  1. 在“测试数据队列”页面中,选择一个队列,然后单击垂直省略号以打开下拉菜单。
  2. 单击“查看项目”
  3. 单击“将队列中的所有项目设置为已消耗”

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.