mcpField
Z
zentao-testtask

zentao-testtask

github.com/imyuyuTesting & quality352 installsUpdated 22w ago
Repository

About zentao-testtask

zentao-testtask is a skill for using zentao-cli to list and inspect ZenTao test tasks associated with projects and executions. It reports task status and related identifiers.

Key features

  1. 01List test tasks by project
  2. 02Get test task details
  3. 03View status and related IDs

Use cases

  1. 01Review test tasks for a project
  2. 02Check a task’s execution and status

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/imyuyu/zentao-cli --skill zentao-testtask

After installing, type/zentao-testtaskin Claude Code to confirm it loaded.

Bundled filesreferences/zentao-testtask-get.mdreferences/zentao-testtask-list.md

Details

From the project README

testtask (v1)

CRITICAL — 开始前 MUST 先用 Read 工具读取 ../zentao-shared/SKILL.md,其中包含认证、环境变量配置、错误处理和通用选项说明。

Commands

Core Concepts

  • Testtask(测试单):ZenTao 中用于管理测试任务的单元。
  • 与执行的关系:测试单关联到特定项目(project)和执行(execution)。
  • 测试单状态:wait(等待)/ doing(进行中)/ done(已完成)/ closed(已关闭)

Testtask Status Values

Status中文说明
wait等待测试任务还未开始
doing进行中测试正在执行
done已完成测试已完成
closed已关闭测试单已关闭

Common Use Cases

1. 查看项目的测试单
# 列出项目 1 下的所有测试单
zentao-cli testtask list --project 1
2. 查看特定测试单详情
# 获取测试单详情
zentao-cli testtask get 1

Examples

# 列出项目 1 下的所有测试单
zentao-cli testtask list --project 1

# 获取测试单详情
zentao-cli testtask get 1

Output Fields

FieldTypeDescription
idu64测试单 ID
namestring测试单名称
projectu64所属项目 ID
executionu64所属执行/迭代 ID
statusstring测试单状态:wait / doing / done / closed
typestring测试单类型
productu64所属产品 ID

Gotchas

  1. Project Required:testtask list 需要指定 --project 参数来筛选特定项目的测试单。

  2. 与 Testcase 的区别:Testtask 是测试任务,Testcase 是具体的测试用例。

  3. 执行关联:测试单通过 execution 字段关联到具体的执行/迭代。

Comments

Markdown supported