我是 SoapUI 的新手,我在其中运行了一个发布请求以创建用户。它返回了成功代码 201(与 Postman 相同),应该是,但它没有在响应窗口的 JSON 选项卡下显示任何数据。当请求在 Postman 中以 JSON 格式返回数据时,它应该在哪里显示一些数据。Postman 中返回的响应是:
{
"id": 107,
"creationTime": "2017-06-23T12:55:13.870+0000",
"lastUpdateTime": "2017-06-23T12:55:13.870+0000",
"username": "Testuserr",
"name": null,
"firstname": null,
"type": null,
"avatar": null,
"mobile": null,
"office": null,
"email": null,
"enabled": false,
"_links": {
"self": {
"href": "http://server/...../user/107"
},
"consultantUser": {
"href": "http://server/...../user/107"
},
"roles": {
"href": "http://server/...../user/107/roles"
},
"regularRole": {
"href": "http://server/...../user/107/regularRole"
},
"userSkills": {
"href": "http://server/...../user/107/userSkills"
},
"experiences": {
"href": "http://server/...../user/107/experiences"
},
"educations": {
"href": "http://server/...../user/107/educations"
},
"assignments": {
"href": "http://server/...../user/107/assignments"
},
"certificats": {
"href": "http://server/...../user/107/certificats"
},
"organisation": {
"href": "http://server/...../user/107/organisation"
},
"sections": {
"href": "http://server/...../user/107/sections"
}
}
}
在 SoapUI 中它什么也不显示。
但是如果我第二次运行相同的请求,它会显示
{
"cause": {
"cause": {
"cause": null,
"message": "Duplicate entry 'TestName20181' for key UK_r43af9ap4edm43mmtq01oddj6'"
},
"message": "could not execute statement"
}
这与邮递员相同,应该是。那么第一次有什么问题呢?
如果有任何事情请帮助我,我在执行过程中失踪了......谢谢......