测试计划 CODEARTS TESTPLAN-通过用例编号获取测试用例详情:响应示例

时间:2024-11-19 11:06:48

响应示例

状态码: 200

OK

{
  "assigned_user" : {
    "id" : "ID",
    "name" : "名称"
  },
  "execute_count" : 4,
  "extend_info" : {
    "author" : {
      "id" : "1111",
      "name" : "名称",
      "time" : "2000-01-01 00:00:00"
    },
    "defect_list" : [ {
      "id" : "ID",
      "name" : "名称"
    } ],
    "description" : "描述信息",
    "domain" : {
      "id" : "ID",
      "name" : "名称"
    },
    "fixed_version" : {
      "id" : "ID",
      "name" : "名称"
    },
    "issue" : {
      "id" : "ID",
      "name" : "名称"
    },
    "label_list" : [ {
      "id" : "ID",
      "name" : "名称"
    } ],
    "module" : {
      "id" : "ID",
      "name" : "名称"
    },
    "preparation" : "前置条件",
    "steps" : [ {
      "expect_result" : "[\"\\u003cp\\u003e预期结果1\\u003c/p\\u003e\",\"\\u003cp\\u003e预期结果2\\u003c/p\\u003e\"]",
      "test_step" : "[\"\\u003cp\\u003e步骤描述1\\u003c/p\\u003e\",\"\\u003cp\\u003e步骤描述2\\u003c/p\\u003e\"]"
    } ],
    "test_version_id" : "97b82412f1",
    "updator" : {
      "id" : "1111",
      "name" : "名称",
      "time" : "2000-01-01 00:00:00"
    }
  },
  "name" : "某个测试用例",
  "project_id" : "2394921",
  "rank_id" : "2",
  "result_id" : "0",
  "service_id" : 13,
  "status_id" : "1",
  "testcase_id" : "97b82412f1ca4628803b918c27ed09de",
  "testcase_number" : "1234"
}
support.huaweicloud.com/api-testman/ShowTestCaseDetailV2.html