测试计划 CODEARTS TESTPLAN-创建自定义测试服务类型用例:请求示例

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

请求示例

创建自定义测试服务类型用例

post https://{endpoint}/v1/projects/efdb403066474ab08836b9eeaaa23bca/testcases

{
  "extend_info" : {
    "assigned_id" : "1111",
    "description" : "这是一段用例描述信息",
    "fix_version_id" : "11111",
    "issue_id" : "11111",
    "label_list" : [ "标签名称" ],
    "module_id" : "模块号",
    "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" : "11111"
  },
  "name" : "testcase",
  "rank_id" : "2",
  "service_id" : 13,
  "testcase_number" : "1234"
}
support.huaweicloud.com/api-testman/CreateTestCase.html