测试计划 CODEARTS TESTPLAN-更新tmss用例和用例脚本:请求示例

时间:2024-11-21 15:44:25

请求示例

put https://{endpoint}/v4/09645c1f3f954a8d9ab29174857cffc5/testcase/v91j0000vl6b2b2e

{
  "id" : "ebfa6ceb72df4c19ae52642845edcd04",
  "tmss_feature_uri" : "",
  "name" : "88888888",
  "project_id" : "23c1c5ba3b3c4e92b8adaab3529913c4",
  "aw_instance" : {
    "setup_aw_list" : [ ],
    "test_aw_list" : [ {
      "id" : "17189566437246831",
      "aw_id" : "",
      "alias_runaw" : "",
      "aw_description" : "",
      "name" : "",
      "description" : "",
      "check_point_list" : [ ],
      "children" : [ ],
      "condition_statement" : "1000",
      "condition_type" : 20,
      "custom_header" : [ ],
      "header_array" : [ ],
      "is_disabled" : 0,
      "param_type_and_value" : [ ],
      "projectId" : "23c1c5ba3b3c4e92b8adaab3529913c4",
      "retry_interval" : "",
      "retry_times" : "",
      "variable_list" : [ ],
      "relation" : ""
    } ],
    "teardown_aw_list" : [ ]
  },
  "case_variable_list" : [ ],
  "script_name" : "106",
  "script_path" : "src/scripts/user/Case_ebfa6ceb72df4c19ae52642845edcd04_1.java",
  "tmss_case_uri" : "v91k0000vl6er6ue",
  "tmss_property" : {
    "name" : "88888888",
    "number" : "106",
    "cataId" : "v91k0000vl6eobbq",
    "level" : 2,
    "node_name" : "123",
    "test_type" : 1,
    "exe_platform" : "apitest",
    "auto_type" : "1",
    "test_feature" : "09645c1f3f954a8d9ab29174857cffc5_32559725_defaultFeature",
    "last_modified" : "2024-06-21 15:16:06",
    "last_modifier" : "efdb403066474ab08836b9eeaaa23bca",
    "author" : "1_devcloud_devcloud_s00314720",
    "creation_date" : "2024-06-21 15:16:06",
    "activity_id" : "1",
    "steps" : [ { } ]
  },
  "activity_id" : "1",
  "import_info_list" : [ ]
}
support.huaweicloud.com/api-testman/UpdateTestCaseAndScript.html