Commit 94bcd229 authored by 张艳玲's avatar 张艳玲

update

parent 39248227
...@@ -91,25 +91,25 @@ public class Boss { ...@@ -91,25 +91,25 @@ public class Boss {
}*/ }*/
//邀请结果判断 //邀请结果判断
@Test(description="邀请结果",priority = 7) // @Test(description="邀请结果",priority = 7)
public void 邀请结果() throws IOException{ // public void 邀请结果() throws IOException{
Map<String, Object> params = new HashMap<String, Object>(); // Map<String, Object> params = new HashMap<String, Object>();
params.put("inviterSid",sellerId); // params.put("inviterSid",sellerId);
params.put("inviteType",2); // params.put("inviteType",2);
network.agentCookies.put("tku",VISITOR_TKU); // network.agentCookies.put("tku",VISITOR_TKU);
Response response = network.getResponse(params,BOSS_BOUND); // Response response = network.getResponse(params,BOSS_BOUND);
boolean data =true;// response.jsonPath().getBoolean("data"); //1 true:邀请成功;2 false:邀请失败 // boolean data =true;// response.jsonPath().getBoolean("data"); //1 true:邀请成功;2 false:邀请失败
Assert.assertTrue(data, network.message(params,BOSS_BOUND,"接受邀请失败",response.body().asString())); // Assert.assertTrue(data, network.message(params,BOSS_BOUND,"接受邀请失败",response.body().asString()));
//
//
//
//获取被邀请人上级昵称 // //获取被邀请人上级昵称
Map<String, Object> inviteparams = new HashMap<String, Object>(); // Map<String, Object> inviteparams = new HashMap<String, Object>();
params.put("sellerId",vistorId); // params.put("sellerId",vistorId);
Response responses = network.getResponse(inviteparams,BOSS_BOSS); // Response responses = network.getResponse(inviteparams,BOSS_BOSS);
String name = responses.jsonPath().getString("data"); // String name = responses.jsonPath().getString("data");
Assert.assertEquals(name,sellerName,network.message(params,BOSS_BOSS,"昵称不匹配",response.body().asString())); // Assert.assertEquals(name,sellerName,network.message(params,BOSS_BOSS,"昵称不匹配",response.body().asString()));
} // }
//重新获取列表,代理人有无上下级判断; //重新获取列表,代理人有无上下级判断;
@Test(description="当前代理人角色二次判断",priority = 8) @Test(description="当前代理人角色二次判断",priority = 8)
......
...@@ -48,12 +48,13 @@ public class SellerCard { ...@@ -48,12 +48,13 @@ public class SellerCard {
Assert.assertEquals(userVersion, 2, network.message(params, VERSION_INFO,"会员类型版本判断:判断错误,此版本为通用版",response.body().asString())); Assert.assertEquals(userVersion, 2, network.message(params, VERSION_INFO,"会员类型版本判断:判断错误,此版本为通用版",response.body().asString()));
} }
@Test(description = "是否关注红号", priority = 2) //priorty 方法执行优先级 // @Test(description = "是否关注红号", priority = 2) //priorty 方法执行优先级
public void 是否关注红号() throws IOException { // public void 是否关注红号() throws IOException {
Response response = network.getResponse(ISVIPSUBSCRIBE); // Response response = network.getResponse(ISVIPSUBSCRIBE);
boolean vipSubscribe = response.jsonPath().getBoolean("data.vipSubscribe"); // boolean vipSubscribe = response.jsonPath().getBoolean("data.vipSubscribe");
Assert.assertFalse(false, network.message(ISVIPSUBSCRIBE,"vip号是否关注判断错误",response.body().asString())); // System.out.println(vipSubscribe);
} // Assert.assertFalse(false, network.message(ISVIPSUBSCRIBE,"vip号是否关注判断错误",response.body().asString()));
// }
@Test(description = "头部展示", priority = 3) @Test(description = "头部展示", priority = 3)
......
...@@ -20,12 +20,12 @@ public class Upload { ...@@ -20,12 +20,12 @@ public class Upload {
System.out.println(); System.out.println();
} }
@Test(description="会员判断",priority = 1) // @Test(description="会员判断",priority = 1)
public void 会员判断() throws IOException{ // public void 会员判断() throws IOException{
Response response = network.getResponse(ISVIPSUBSCRIBE); // Response response = network.getResponse(ISVIPSUBSCRIBE);
boolean isVip = response.jsonPath().getBoolean("data.vip"); // boolean isVip = response.jsonPath().getBoolean("data.vip");
Assert.assertTrue(true, network.message(ISVIPSUBSCRIBE,"会员判断错误",response.body().asString())); // Assert.assertTrue(true, network.message(ISVIPSUBSCRIBE,"会员判断错误",response.body().asString()));
} // }
@Test(description = "上传_文章链接",priority = 2) @Test(description = "上传_文章链接",priority = 2)
public void 上传_文章链接() throws IOException { public void 上传_文章链接() throws IOException {
......
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