uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
“uip tm teststeplog list”的语法和选项,可检索手动或混合测试用例运行各个步骤的执行日志。
uip tm teststeplog管理测试用例执行期间记录的步骤级别日志。测试步骤日志捕获测试用例日志中单个步骤的结果,提供测试用例级别以下的精细通过/失败信息。
大纲
uip tm teststeplog list --test-case-log-id <uuid> --project-key <key>
uip tm teststeplog list --test-case-log-id <uuid> --project-key <key>
uip tm 测试步骤日志列表
列出特定测试用例日志的步骤日志。返回未分页的完整集合 — 没有 --limit/--offset。
参数
无。
选项
--test-case-log-id <uuid>(必填) — 要检索其步骤日志的测试用例日志的 UUID。从uip tm executions testcaselogs list或uip tm testcases list-result-history获取。--project-key <key>(必填) — 拥有项目(例如DEMO)。
示例
uip tm teststeplog list \
--test-case-log-id c3d4e5f6-0000-0000-0000-000000000001 \
--project-key DEMO
uip tm teststeplog list \
--test-case-log-id c3d4e5f6-0000-0000-0000-000000000001 \
--project-key DEMO
数据形状
{
"Code": "TestStepLogList",
"Data": [
{
"Id": "e5f6a7b8-0000-0000-0000-000000000001",
"TestStepId": "d4e5f6a7-0000-0000-0000-000000000001",
"Result": "Passed",
"Comment": "Opened login page",
"HasError": false,
"HasAttachment": false,
"TestCaseLogId": "c3d4e5f6-0000-0000-0000-000000000001",
"OrderNo": 1,
"ActionType": "Manual",
"Description": "Open login page",
"ExpectedResult": "Login form is displayed",
"ClipboardData": ""
},
{
"Id": "e5f6a7b8-0000-0000-0000-000000000002",
"TestStepId": "d4e5f6a7-0000-0000-0000-000000000002",
"Result": "Failed",
"Comment": "Selector not found",
"HasError": true,
"HasAttachment": true,
"TestCaseLogId": "c3d4e5f6-0000-0000-0000-000000000001",
"OrderNo": 2,
"ActionType": "Manual",
"Description": "Submit valid credentials",
"ExpectedResult": "User is signed in",
"ClipboardData": ""
}
]
}
{
"Code": "TestStepLogList",
"Data": [
{
"Id": "e5f6a7b8-0000-0000-0000-000000000001",
"TestStepId": "d4e5f6a7-0000-0000-0000-000000000001",
"Result": "Passed",
"Comment": "Opened login page",
"HasError": false,
"HasAttachment": false,
"TestCaseLogId": "c3d4e5f6-0000-0000-0000-000000000001",
"OrderNo": 1,
"ActionType": "Manual",
"Description": "Open login page",
"ExpectedResult": "Login form is displayed",
"ClipboardData": ""
},
{
"Id": "e5f6a7b8-0000-0000-0000-000000000002",
"TestStepId": "d4e5f6a7-0000-0000-0000-000000000002",
"Result": "Failed",
"Comment": "Selector not found",
"HasError": true,
"HasAttachment": true,
"TestCaseLogId": "c3d4e5f6-0000-0000-0000-000000000001",
"OrderNo": 2,
"ActionType": "Manual",
"Description": "Submit valid credentials",
"ExpectedResult": "User is signed in",
"ClipboardData": ""
}
]
}
Code 为 TestStepLogList(单数“Log”)。HasAttachment: true表示已将屏幕截图或其他工件附加到该步骤 — 使用attachment download下载。
相关内容
- 执行测试用例日志列表—
--test-case-log-id的来源。 - testcaselog list-assertions — 测试用例日志的断言级别详细信息。
- 报告— 简要执行摘要。