Commit dfb20ed6 authored by 龚小红's avatar 龚小红

删除留言功能

parent 024e5f1b
...@@ -302,14 +302,4 @@ public class ArticalPersonCard implements Authorization { ...@@ -302,14 +302,4 @@ public class ArticalPersonCard implements Authorization {
Assert.assertNotNull(riskScid, network.message(params,ARTICLE_ISDISPLAYACTIVITY,"互动区-风险评测内容有误",response.body().asString())); Assert.assertNotNull(riskScid, network.message(params,ARTICLE_ISDISPLAYACTIVITY,"互动区-风险评测内容有误",response.body().asString()));
} }
// 获取代理人个人专栏
@Test(description="访客_查询是否存在未读消息",priority = 16)
public void 访客_查询是否存在未读消息() throws IOException {
Map<String, Object> params = new HashMap<String, Object>();
params.put("scid",scid);
params.put("t",System.currentTimeMillis());
Response response = network.getResponse(params, CHECKUNREAD);
String desc = response.jsonPath().getString("desc");
Assert.assertEquals(desc,"OK",network.message(params, CHECKUNREAD, "访客-获取私信有误",response.body().asString()));
}
} }
...@@ -81,13 +81,6 @@ public class RecommendMaterial implements Authorization { ...@@ -81,13 +81,6 @@ public class RecommendMaterial implements Authorization {
Response response = network.getResponse(params, FORWARD); Response response = network.getResponse(params, FORWARD);
Boolean success = response.jsonPath().getBoolean("success"); Boolean success = response.jsonPath().getBoolean("success");
Assert.assertTrue(success, network.message(params, FORWARD, "种草文章转发失败", response.body().asString())); Assert.assertTrue(success, network.message(params, FORWARD, "种草文章转发失败", response.body().asString()));
//个人中心——历史分享
Map<String,Object> paramsHistory = new HashMap<>();
paramsHistory.put("sellerId",2991); //吉吉的销售员id
Response historyRes = network.getResponse(paramsHistory,HOME_sellerContentHistory);
Object list = historyRes.jsonPath().getJsonObject("data.list.get(0).scId");
Assert.assertEquals(list,scid, network.message(paramsHistory,HOME_sellerContentHistory,"获取历史分享失败",historyRes.body().asString()));
} }
...@@ -387,15 +380,4 @@ public class RecommendMaterial implements Authorization { ...@@ -387,15 +380,4 @@ public class RecommendMaterial implements Authorization {
//tku 切换为访客的 //tku 切换为访客的
network.agentCookies.put(TKU_COOKIE_NAME, VISITOR_TKU); network.agentCookies.put(TKU_COOKIE_NAME, VISITOR_TKU);
} }
// 获取代理人个人专栏
@Test(description = "访客_获取代理人私信", priority = 25)
public void 访客_获取代理人私信() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("scid", scid);
params.put("t", System.currentTimeMillis());
Response response = network.getResponse(params, CHECKUNREAD);
String desc = response.jsonPath().getString("desc");
Assert.assertEquals(desc, "OK", network.message(params, CHECKUNREAD, "访客-获取私信有误", response.body().asString()));
}
} }
\ No newline at end of file
...@@ -551,14 +551,12 @@ public class GreetingCrad implements Authorization{ ...@@ -551,14 +551,12 @@ public class GreetingCrad implements Authorization{
params.put("scid",scid); params.put("scid",scid);
params.put("confId",confId); params.put("confId",confId);
Response response = network.postResponse(params,GREETING_open); Response response = network.postResponse(params,GREETING_open);
System.out.println(GREETING_open+"\n"+response.body().asString());
boolean success = response.jsonPath().getBoolean("success"); boolean success = response.jsonPath().getBoolean("success");
Assert.assertFalse(success,network.message(params,GREETING_open,"接口返回失败",response.body().asString())); Assert.assertFalse(success,network.message(params,GREETING_open,"接口返回失败",response.body().asString()));
sleep(2000); sleep(3000);
//获取拆红包结果 //获取拆红包结果
response = network.postResponse(params,GREETING_openResult); response = network.postResponse(params,GREETING_openResult);
System.out.println(GREETING_openResult+"\n"+response.body().asString());
success = response.jsonPath().getBoolean("success"); success = response.jsonPath().getBoolean("success");
Object result = response.jsonPath().getJsonObject("data"); Object result = response.jsonPath().getJsonObject("data");
Assert.assertTrue(success,network.message(params,GREETING_openResult,"接口返回失败",response.body().asString())); Assert.assertTrue(success,network.message(params,GREETING_openResult,"接口返回失败",response.body().asString()));
...@@ -566,7 +564,7 @@ public class GreetingCrad implements Authorization{ ...@@ -566,7 +564,7 @@ public class GreetingCrad implements Authorization{
int redPacketState = response.jsonPath().getInt("data.redPacketState"); int redPacketState = response.jsonPath().getInt("data.redPacketState");
int receivedAmount = response.jsonPath().getInt("data.receivedAmount"); int receivedAmount = response.jsonPath().getInt("data.receivedAmount");
Assert.assertEquals(redPacketState,2,network.message(params,GREETING_openResult,"红包领取失败",response.body().asString())); Assert.assertEquals(redPacketState,3,network.message(params,GREETING_openResult,"红包领取失败",response.body().asString()));
Assert.assertEquals(receivedAmount,0,network.message(params,GREETING_openResult,"红包领取金额错误",response.body().asString())); Assert.assertEquals(receivedAmount,0,network.message(params,GREETING_openResult,"红包领取金额错误",response.body().asString()));
} }
......
...@@ -128,7 +128,7 @@ public class Pay implements Authorization { ...@@ -128,7 +128,7 @@ public class Pay implements Authorization {
@Test (description = "优惠券_优惠码绑定",priority = 10) @Test (description = "优惠券_优惠码绑定",priority = 10)
public void 优惠券_优惠码绑定 () { public void 优惠券_优惠码绑定 () {
userTku3(); userTku3();
//吉吉切换非会员 //切换非会员
updateTypeOrDate(207,false); updateTypeOrDate(207,false);
//绑定优惠码 //绑定优惠码
Map<String, Object> params = new HashMap<String, Object>(); Map<String, Object> params = new HashMap<String, Object>();
......
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