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

uip tm 测试步骤日志

“uip tm teststeplog list”的语法和选项,可检索手动或混合测试用例运行各个步骤的执行日志。

uip tm teststeplog管理测试用例执行期间记录的步骤级别日志。测试步骤日志捕获测试用例日志中单个步骤的结果,提供测试用例级别以下的精细通过/失败信息。

大纲

uip tm teststeplog list --test-case-log-id <uuid> [--project-key <key>] [--limit <n>] [--offset <n>]
uip tm teststeplog list --test-case-log-id <uuid> [--project-key <key>] [--limit <n>] [--offset <n>]

所有动词都遵循全局选项和标准退出代码。每个动词接受 --log-level <level>(默认值 Information)。

uip tm 测试步骤日志列表

列出特定测试用例日志的步骤日志。

参数

无。

选项

  • --test-case-log-id <uuid> (必填) — 要检索其步骤日志的测试用例日志的 UUID。从uip tm executions testcaselogs listuip tm testcases list-result-history获取。
  • --project-key <key> — 拥有项目。可选;非必需。
  • --limit <n> — 页面大小。默认为50
  • --offset <n> — 要跳过的结果。默认为0

示例

uip tm teststeplog list \
  --test-case-log-id c3d4e5f6-0000-0000-0000-000000000001
uip tm teststeplog list \
  --test-case-log-id c3d4e5f6-0000-0000-0000-000000000001

数据形状

{
  "Code": "TestStepLogsList",
  "Data": [
    {
      "Id": "d4e5f6a7-0000-0000-0000-000000000001",
      "StepName": "Navigate to login page",
      "Result": "Passed",
      "Duration": "00:00:02"
    },
    {
      "Id": "d4e5f6a7-0000-0000-0000-000000000002",
      "StepName": "Enter credentials",
      "Result": "Failed",
      "Duration": "00:00:01",
      "ErrorMessage": "Element not found: #password-field"
    }
  ]
}
{
  "Code": "TestStepLogsList",
  "Data": [
    {
      "Id": "d4e5f6a7-0000-0000-0000-000000000001",
      "StepName": "Navigate to login page",
      "Result": "Passed",
      "Duration": "00:00:02"
    },
    {
      "Id": "d4e5f6a7-0000-0000-0000-000000000002",
      "StepName": "Enter credentials",
      "Result": "Failed",
      "Duration": "00:00:01",
      "ErrorMessage": "Element not found: #password-field"
    }
  ]
}

另请参阅

  • 大纲
  • uip tm 测试步骤日志列表
  • 参数
  • 选项
  • 示例
  • 数据形状
  • 相关内容
  • 另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新