Commit 0fccd8fd authored by Su-Yi's avatar Su-Yi

Merge remote-tracking branch 'origin/test/20200628-test' into test/20200628-test

parents d00d5c88 dfb42c1f
......@@ -23,6 +23,7 @@ public class Boss {
private static final NetworkUtil network = NetworkUtil.getInstance();
String sellerId = "";
String usellerId ="";
String sids ="";
@BeforeClass
public void setUp() {
......@@ -107,8 +108,8 @@ public class Boss {
Map<String, Object> inviteparams = new HashMap<String, Object>();
params.put("sellerId",usellerId);
Response responses = network.getResponse(inviteparams,BOSS_BOSS);
String datae = responses.jsonPath().getString("data");
Assert.assertEquals(datae,"$张",network.message(params,BOSS_BOSS,"昵称不匹配"));
String name = responses.jsonPath().getString("data");
Assert.assertEquals(name,"$张",network.message(params,BOSS_BOSS,"昵称不匹配"));
}
......@@ -149,12 +150,19 @@ public class Boss {
}
//获取团队成员sids
@Test(description="获取成员sids",priority = 11)
public void 获取成员sids() throws IOException{
Response response = network.getResponse(BOSS_MEMBER);
sids = response.jsonPath().getString("data.list[0].sellerId");
Assert.assertNotNull(sids,network.message(BOSS_MEMBER,"获取sids失败"));
}
//移除团队成员
@Test(description="移除团队成员",priority = 11)
@Test(description="移除团队成员",priority = 12)
public void 移除团队成员() throws IOException{
Map<String, Object> params = new HashMap<String, Object>();
List<String> ss= Collections.singletonList("Kj21MTcwMTU");
List<String> ss= Collections.singletonList(sids);
params.put("sids",ss);
Response response = network.postResponse(params,BOSS_REMOVE);
System.out.println(response.getBody().prettyPrint());
......@@ -164,7 +172,7 @@ public class Boss {
}
//代理人无下级直接进入个人数据看板页面;获取上级昵称
@Test(description="获取上级昵称",priority = 12)
@Test(description="获取上级昵称",priority = 13)
public void 获取上级昵称() throws IOException{
Map<String, Object> params = new HashMap<String, Object>();
params.put("sellerId",sellerId);
......@@ -176,7 +184,7 @@ public class Boss {
//分享链接邀请下级加入
@Test(description="邀请下级加入",priority = 13)
@Test(description="邀请下级加入",priority = 14)
public void 邀请下级加入() throws IOException{
Map<String, Object> params = new HashMap<String, Object>();
params.put("inviteType",2);
......@@ -188,7 +196,7 @@ public class Boss {
@AfterClass
public static void tearDown(){
apiCount += 8;
apiCount += 9;
}
......
......@@ -23,8 +23,8 @@ public class BasicConfig {
public static final String HOST = "https://kjj.m.duibatest.com.cn"; // "https://kjj.m.duiba.com.cn";
// *************** TKU ***************
public static final String VISITOR_TKU = "T3gM31f18jAW31GHJuxJmoCFoANch7fXayUgd4zHHg2hpXAyjSrevfGfzyNfVoHzSvenik8qR9nTEkCSy6";
// public static final String VISITOR_TKU = "T3gM31f18jAW2hicRDxbwHFSuwA4MMVLLeHZ5G4yvb3kN3PcWwcLdzfxPp2gghfE4x3BFH8JN3f8PUzQ6W";
// public static final String VISITOR_TKU = "T3gM31f18jAW31GHJuxJmoCFoANch7fXayUgd4zHHg2hpXAyjSrevfGfzyNfVoHzSvenik8qR9nTEkCSy6";
public static final String VISITOR_TKU = "T3gM31f18jAW2hicRDxbwHFSuwA4MMVLLeHZ5G4yvb3kN3PcWwcLdzfxPp2gghfE4x3BFH8JN3f8PUzQ6W";
// *************** 素材ID ***************
public static final String ARTICLE_CONTENTID = "Kj21NjM4NDc";
......@@ -207,6 +207,8 @@ public class BasicConfig {
public static final String BOSS_USERINFO = "/kjy/mp/user/info";
public static final String BOSS_MEMBER = "/kjy/mp/seller/team/member";
......
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