修改测试用例
接口描述
中文:修改测试用例
英文:ModifyTestCase
输入参数
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:ModifyTestCase |
AccessToken | 是 | String | 公共参数,AccessToken |
CaseId | 是 | Integer | 用例 ID |
ProjectName | 是 | String | 项目名称 |
TemplateType | 否 | String | 用例类型,可选值:STEPS,TEXT |
SectionId | 否 | Integer | 分组 ID |
Title | 否 | String | 用例标题 |
Priority | 否 | Integer | 优先级,默认 2(中),可选值:0(紧急),1(高),2(中),3(低) |
Preconds | 否 | String | 前置步骤 |
Expected | 否 | String | 预期结果 (文本用例必填) |
CustomSteps | 否 | Array of Step | 自定义步骤(步骤用例必填) |
Step
名称 | 类型 | 描述 |
---|---|---|
Content | String | 步骤 |
Expected | String | 预期 |
输出参数
参数名称 | 类型 | 描述 |
---|---|---|
Data.Case | Case | 迭代的具体信息 |
RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
示例
输入示例
{
"Action":"ModifyTestCase",
"Authorization":"token",
"ProjectName":"2",
"preconds":"preconds",
"TemplateType":"STEPS",
"Expected":"expected",
"Steps":"Steps",
"Title":"helel",
"CustomSteps":[
{
"content":"expected",
"expected":"steps"
},
{
"content":"expected",
"expected":"steps"
}
]
}
输出示例
{
"Response": {
"Data": {
"Case": {
"Id": 65,
"SectionId": 1,
"Priority": 2,
"Title": "helel",
"TemplateType": "STEPS",
"Preconds": "preconds",
"Steps": null,
"Expected": null,
"CustomSteps": "[{\"content\":\"expected\",\"expected\":\"steps\"},{\"content\":\"expected\",\"expected\":\"steps\"}]",
"Sort": 15,
"CreatedBy": 1,
"CreatedAt": "2020-09-15 16:34:21",
"UpdatedAt": "2020-09-15 16:34:21"
}
},
"RequestId": "7a671ad6-42f6-1d9d-5c0c-f0723933e9a0"
}
}

感谢反馈有用
感谢反馈没用
在阅读中是否遇到以下问题?
您希望我们如何改进?