Commit 17f5c240 authored by 张震's avatar 张震

Boss看板动态id优化

parent 4d8ef740
...@@ -24,7 +24,9 @@ public class Boss { ...@@ -24,7 +24,9 @@ public class Boss {
String sellerId = ""; String sellerId = "";
String usellerId =""; String usellerId ="";
String sids =""; String sids ="";
String visitorame ="";
String sellername ="";
String superiorname ="";
@BeforeClass @BeforeClass
public void setUp() { public void setUp() {
...@@ -45,7 +47,9 @@ public class Boss { ...@@ -45,7 +47,9 @@ public class Boss {
public void 获取代理人id() throws IOException{ public void 获取代理人id() throws IOException{
Response response = network.getResponse(BOSS_USERINFO); Response response = network.getResponse(BOSS_USERINFO);
sellerId = response.jsonPath().getString("data.sellerId"); sellerId = response.jsonPath().getString("data.sellerId");
sellername = response.jsonPath().getString("data.sellerName");
Assert.assertNotNull(sellerId,network.message(BOSS_USERINFO,"获取sellerid失败")); Assert.assertNotNull(sellerId,network.message(BOSS_USERINFO,"获取sellerid失败"));
Assert.assertNotNull(sellername,network.message(BOSS_USERINFO,"获取sellerName失败"));
} }
//代理人有无上下级判断; //代理人有无上下级判断;
...@@ -90,7 +94,10 @@ public class Boss { ...@@ -90,7 +94,10 @@ public class Boss {
public void 获取访客id() throws IOException{ public void 获取访客id() throws IOException{
Response response = network.getResponse(BOSS_USERINFO); Response response = network.getResponse(BOSS_USERINFO);
usellerId = response.jsonPath().getString("data.sellerId"); usellerId = response.jsonPath().getString("data.sellerId");
visitorame = response.jsonPath().getString("data.sellerName");
Assert.assertNotNull(usellerId,network.message(BOSS_USERINFO,"获取usellerid失败")); Assert.assertNotNull(usellerId,network.message(BOSS_USERINFO,"获取usellerid失败"));
Assert.assertNotNull(visitorame,network.message(BOSS_USERINFO,"获取sellerName失败"));
} }
...@@ -109,7 +116,7 @@ public class Boss { ...@@ -109,7 +116,7 @@ public class Boss {
params.put("sellerId",usellerId); params.put("sellerId",usellerId);
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,"$张",network.message(params,BOSS_BOSS,"昵称不匹配")); Assert.assertEquals(name,visitorame,network.message(params,BOSS_BOSS,"昵称不匹配"));
} }
...@@ -128,6 +135,8 @@ public class Boss { ...@@ -128,6 +135,8 @@ public class Boss {
} }
//团队长数据看板 //团队长数据看板
//代理人已存在下级直接进入团队长数据看板;获取上级团队昵称 //代理人已存在下级直接进入团队长数据看板;获取上级团队昵称
@Test(description="获取上级团队昵称",priority = 9) @Test(description="获取上级团队昵称",priority = 9)
...@@ -136,7 +145,8 @@ public class Boss { ...@@ -136,7 +145,8 @@ public class Boss {
params.put("sellerId",sellerId); params.put("sellerId",sellerId);
Response response = network.getResponse(params,BOSS_BOSS); Response response = network.getResponse(params,BOSS_BOSS);
String data = response.jsonPath().getString("data"); String data = response.jsonPath().getString("data");
Assert.assertEquals(data,"喜洋洋保险",network.message(params,BOSS_BOSS,"昵称不匹配")); superiorname = response.jsonPath().getString("data");
Assert.assertEquals(data,superiorname,network.message(params,BOSS_BOSS,"昵称不匹配"));
} }
//获取代理人团队人数 //获取代理人团队人数
...@@ -178,7 +188,8 @@ public class Boss { ...@@ -178,7 +188,8 @@ public class Boss {
params.put("sellerId",sellerId); params.put("sellerId",sellerId);
Response response = network.getResponse(params,BOSS_BOSS); Response response = network.getResponse(params,BOSS_BOSS);
String data = response.jsonPath().getString("data"); String data = response.jsonPath().getString("data");
Assert.assertEquals(data,"喜洋洋保险",network.message(params,BOSS_BOSS,"昵称不匹配")); superiorname = response.jsonPath().getString("data");
Assert.assertEquals(data,superiorname,network.message(params,BOSS_BOSS,"昵称不匹配"));
} }
......
...@@ -6,7 +6,7 @@ public class BasicConfig { ...@@ -6,7 +6,7 @@ public class BasicConfig {
// *************** 配置信息,每次重新配置以下信息就ok *************** // *************** 配置信息,每次重新配置以下信息就ok ***************
// 是否推送 // 是否推送
public static final boolean isPushReport = true; //true public static final boolean isPushReport = false; //true
// 用户微信昵称 // 用户微信昵称
public static final String WECHAT_NAME = "小疙瘩人寿"; //true public static final String WECHAT_NAME = "小疙瘩人寿"; //true
// 用户tku // 用户tku
......
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