错误 #24895
集团sop-新增页-添加发布状态sop,steps异常返回结果错误
0%
描述
接口路径:https://gapmsit.persagy.com/sop/restGroupSopService/addPublishedSop
header:
header:{
"Content-Type":"application/json;charset=utf-8",
"groupCode":"apiauto"
}
入参:
{
"user_id": "835afc48cb384a2fbacc790c13e8af97",
"project_id": "Pj6110000001",
"work_type": "3",
"operator": {
"id": "RY1610165864729063425",
"name": "接口自动化"
},
"sop_name": "ApiTestNNQe90606",
"steps": [
{
"name": "第1步",
"id": 0,
"step_content11": [
{
"from_sop": false,
"confirm_result": [
{
"description": "ApiTestNNQe90606"
}
]
}
],
"from_sop": false
}
]
}
响应:
{"ResultMsg":"description不能为空","ResultCode":"A0400","Result":"failure"}
预期结果:
{"ResultMsg":"steps不存在","ResultCode":"00000","Result":"success"}
实际结果:
{"ResultMsg":"description不能为空","ResultCode":"A0400","Result":"failure"}
历史记录
由 王晓 更新于 超过一年 之前
- 主题 从 集团sop-新增页-添加发布状态sop,steps异常提示信息不准确 变更为 集团sop-新增页-添加发布状态sop,steps异常返回结果错误
- 优先级 从 中 变更为 高
- 严重等级 从 Normal 变更为 Major
接口路径:https://gapmsit.persagy.com/sop/restGroupSopService/addPublishedSop
header:
header:{
"Content-Type":"application/json;charset=utf-8",
"groupCode":"apiauto"
}
入参:
{
"user_id": "835afc48cb384a2fbacc790c13e8af97",
"project_id": "Pj6110000001",
"work_type": "3",
"operator": {
"id": "RY1610165864729063425",
"name": "接口自动化"
},
"sop_name": "ApiTestFNv245106",
"steps": [ApiTestFNv245106]
}
响应:
{"ResultMsg":"JSON parse error: Unrecognized token 'ApiTestFNv245106': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'ApiTestFNv245106': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (PushbackInputStream); line: 10, column: 33]","ResultCode":"A0400","Result":"failure"}
预期结果:
{"ResultMsg":"steps不存在","ResultCode":"A0400","Result":"failure"}
实际结果:
{"ResultMsg":"JSON parse error: Unrecognized token 'ApiTestFNv245106': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'ApiTestFNv245106': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (PushbackInputStream); line: 10, column: 33]","ResultCode":"A0400","Result":"failure"}