【发布时间】:2016-11-27 21:24:02
【问题描述】:
下面是放心的代码:
response= given().relaxedHTTPSValidation()
.contentType(ContentType.URLENC)
.queryParam("userId", "00528000000OEppAAG")
.queryParam("orgId", "00D28000000VXOREA4")
.queryParam("signature", "k8eL+T8QYQGlsT3TDIU9yMxcMgfFl6ROhi1aAgz7P0Y=")
.queryParam("timestamp", "2016-07-24T14:8:7.798Z")
.when().urlEncodingEnabled(true).post("https://abc.in/test/testAccountInfo").andReturn();
来自放心代码的响应:
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
Postman 的响应运行良好,这让我感到非常惊讶
我试过查询参数,表单参数,有内容类型,没有内容类型
【问题讨论】:
-
你解决了吗?
标签: java api automation rest-assured