Commit cd65b354 authored by 李浩弘's avatar 李浩弘

Merge branch 'test/20200708-test' into 'master'

Test/20200708 test

See merge request test-group/kejiji!12
parents 3fa3e9a7 36c09c13
......@@ -24,7 +24,9 @@ public class Boss {
String sellerId = "";
String usellerId ="";
String sids ="";
String visitorame ="";
String sellername ="";
String superiorname ="";
@BeforeClass
public void setUp() {
......@@ -45,7 +47,9 @@ public class Boss {
public void 获取代理人id() throws IOException{
Response response = network.getResponse(BOSS_USERINFO);
sellerId = response.jsonPath().getString("data.sellerId");
sellername = response.jsonPath().getString("data.sellerName");
Assert.assertNotNull(sellerId,network.message(BOSS_USERINFO,"获取sellerid失败"));
Assert.assertNotNull(sellername,network.message(BOSS_USERINFO,"获取sellerName失败"));
}
//代理人有无上下级判断;
......@@ -90,7 +94,10 @@ public class Boss {
public void 获取访客id() throws IOException{
Response response = network.getResponse(BOSS_USERINFO);
usellerId = response.jsonPath().getString("data.sellerId");
visitorame = response.jsonPath().getString("data.sellerName");
Assert.assertNotNull(usellerId,network.message(BOSS_USERINFO,"获取usellerid失败"));
Assert.assertNotNull(visitorame,network.message(BOSS_USERINFO,"获取sellerName失败"));
}
......@@ -109,7 +116,7 @@ public class Boss {
params.put("sellerId",usellerId);
Response responses = network.getResponse(inviteparams,BOSS_BOSS);
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 {
}
//团队长数据看板
//代理人已存在下级直接进入团队长数据看板;获取上级团队昵称
@Test(description="获取上级团队昵称",priority = 9)
......@@ -136,7 +145,8 @@ public class Boss {
params.put("sellerId",sellerId);
Response response = network.getResponse(params,BOSS_BOSS);
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 {
params.put("sellerId",sellerId);
Response response = network.getResponse(params,BOSS_BOSS);
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 {
// *************** 配置信息,每次重新配置以下信息就ok ***************
// 是否推送
public static final boolean isPushReport = true; //true
public static final boolean isPushReport = false; //true
// 用户微信昵称
public static final String WECHAT_NAME = "小疙瘩人寿"; //true
// 用户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