Commit 0653b1fd by Li Yongyu

1

parent 8b6cf330
......@@ -195,7 +195,8 @@ public class RequestDataUtils {
try {
state++;
re = jobApi(data,myRequest)
.contentType(JSON).body("{"+Parameter+"}").when()
.contentType(JSON)
.body("{"+Parameter+"}").when()
.post(myRequest.getUrl()).thenReturn();
if (!"200".equals(re.getStatusCode()+"")) {
Log.logError("请求返回," + re.getStatusCode() + "次。");
......
......@@ -85,9 +85,14 @@ public class getRecommend extends TK implements API {
JsonPath jp = re.body().jsonPath();
boolean result = true;
String failReason = "";
/*System.out.println("getContentType=====" + re.getContentType());
System.out.println("getHeaders====="+re.getHeaders());
System.out.println(re.getSessionId());;
System.out.println(re.statusCode());*/
String json = StringUtils.decodeUnicode(re.asString());
//System.out.println("re======"+ json);
if ((data.get("statusCode") != null)
&& (!data.get("statusCode").toString()
.equals(String.valueOf(re.getStatusCode())))) {
......@@ -142,8 +147,8 @@ public class getRecommend extends TK implements API {
}
if("0".equals(code)){
/*L_record_sub_id=jp.getString("data.record_sub_id");
L_mock_subject_id=jp.getString("data.mock_subject_id");*/
System.out.println("data.recommend[0]====="+jp.getString("data.recommend[0].id"));
System.out.println("data.recommend[1]====="+jp.getString("data.recommend[1].id"));
}
}
if (result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment