项目

一般

简介

错误 #24899

集团sop-编辑页-发布sop,steps异常返回报错

由 王晓 在 超过一年 之前添加. 更新于 超过一年 之前.

状态:
已关闭
优先级:
指派给:
开始日期:
2023-04-11
计划完成日期:
% 完成:

0%

预期时间:
严重等级:
Major
问题所属模块:
集团sop-编辑页模块
问题类型:
自动化测试问题

描述

接口路径:https://gapmsit.persagy.com/sop/restGroupSopService/publishSop
header:
header:{
"Content-Type":"application/json;charset=utf-8",
"groupCode":"apiauto"
}

入参:
{
"user_id": "835afc48cb384a2fbacc790c13e8af97",
"project_id": "Pj6110000001",
"work_type": "3",
"sop_id": "SOP8339b158f56d472c923f5a620d5bed30",
"sop_name": "ApiTestyWfg17898",
"steps": [{
"name": "第1步",
"id": 0,
"step_content11": [{
"from_sop": false,
"confirm_result": [{
"description": "ApiTestkzRV83689"
}]
}]
}]
}
响应:
{"Count":1,"ResultCode":"00000","Result":"success"}
预期结果:
{"ResultMsg":"steps不存在","ResultCode":"00000","Result":"success"}
实际结果:
{"Count":1,"ResultCode":"00000","Result":"success"}

历史记录

#1

由 王晓 更新于 超过一年 之前

  • 主题集团sop-编辑页-发布sop,steps异常返回成功 变更为 集团sop-编辑页-发布sop,steps异常返回报错

接口路径:https://gapmsit.persagy.com/sop/restGroupSopService/publishSop
header:
header:{
"Content-Type":"application/json;charset=utf-8",
"groupCode":"apiauto"
}

入参:
{
"user_id": "835afc48cb384a2fbacc790c13e8af97",
"project_id": "Pj6110000001",
"work_type": "3",
"sop_id": "SOPc930c5a831e246158982186bb2f04754",
"sop_name": "ApiTestQvTs13063",
"steps": [ApiTestunCM4976]
}
响应:
{"ResultMsg":"JSON parse error: Unrecognized token 'ApiTestunCM4976': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'ApiTestunCM4976': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (PushbackInputStream); line: 7, column: 31]","ResultCode":"A0400","Result":"failure"}
预期结果:
{"ResultMsg":"steps不存在","ResultCode":"A0400","Result":"failure"}
实际结果:
{"ResultMsg":"JSON parse error: Unrecognized token 'ApiTestunCM4976': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'ApiTestunCM4976': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (PushbackInputStream); line: 7, column: 31]","ResultCode":"A0400","Result":"failure"}

#2

薛涛 更新于 超过一年 之前

  • 状态新建 变更为 已解决

加入验证

#3

由 王晓 更新于 超过一年 之前

  • 状态已解决 变更为 已关闭

导出 Atom PDF