Commit 1c89fbb6 authored by 龚小红's avatar 龚小红

增加服务专家的测试用例

parent 4d8f65d4
......@@ -82,8 +82,15 @@ public interface Authorization {
default void otoEpertTku() { network.agentCookies.put("tku", OTO_EXPERT_TKU); }
//oto销售工作台个微端-客户
default void WXCustomerTku() { network.agentCookies.put("ototku", WX_CUSTOMER_TKU); }
//oto销售工作台个微端-客户_自动化测试客户3
default void WXCustomerTku3() { network.agentCookies.put("ototku", WX_CUSTOMER_TKU3); }
//oto销售工作台个微端-客户_自动化测试客户2
default void WXCustomerTku2() { network.agentCookies.put("ototku", WX_CUSTOMER_TKU2); }
//oto销售工作台个微端-客户_自动化测试客户5
default void WXCustomerTku5() { network.agentCookies.put("ototku", WX_CUSTOMER_TKU5); }
//oto销售工作台个微端-专家
default void WXExpertTTku() { network.agentCookies.put("ototku", WX_EXPERT_TKU); }
......
......@@ -709,6 +709,34 @@ public class Depts implements Authorization {
Assert.assertEquals(deptId,47,network.message(selectParams, BasicConfig.WORK_MNG_customerList, "客户所属团队错误", response.body().asString()));
}
@Test(description = "配置成员资料",priority = 50)
public void 配置成员资料(){
HashMap<String,Object> params = new HashMap<>();
params.put("id", EXPERT_ID);
params.put("introduceImage", "//yun.dui88.com/kjy/image/20230424/9c17d843991b4ea7ac800235f144542f.jpg");
params.put("shareImageUrl", "//yun.dui88.com/kjy/image/20230424/72d9608dea5c459dae86e42129bf1fe7.jpg");
params.put("shareDesc", "勿动-自动化专家分享的卡片标题");
Response response = network.postResponse(params, BasicConfig.WORK_configSave);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data, network.message(params, BasicConfig.WORK_configSave, "配置成员资料失败", response.body().asString()));
}
@Test(description = "查看成员资料配置",priority = 50)
public void 查看成员资料配置(){
HashMap<String,Object> params = new HashMap<>();
params.put("id", EXPERT_ID);
Response response = network.postResponse(params, BasicConfig.WORK_configDetail);
String shareDesc = response.jsonPath().getString("data.shareDesc");
Assert.assertEquals(shareDesc, "勿动-自动化专家分享的卡片标题",network.message(params, BasicConfig.WORK_configDetail, "配置成员资料失败", response.body().asString()));
params.put("introduceImage", "//yun.dui88.com/kjy/image/20230424/9c17d843991b4ea7ac800235f144542f.jpg");
params.put("shareImageUrl", "//yun.dui88.com/kjy/image/20230424/72d9608dea5c459dae86e42129bf1fe7.jpg");
params.put("shareDesc", "勿动-自动化测试专家分享的卡片标题");
response = network.postResponse(params, BasicConfig.WORK_configSave);
boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data, network.message(params, BasicConfig.WORK_configSave, "配置成员资料失败", response.body().asString()));
}
public void dimissionStatus(int sellreid){
HashMap<String,Object> params = new HashMap<>();
params.put("id", sellreid);
......
......@@ -45,7 +45,9 @@ public class BasicConfig {
public static final String OTO_EXPERT_TKU = "7Fcuh7FWTsTHSpfadRRWCqKfrLzGwUzSt2GyKaN2k4JGQDTqw8BwHhYw3TyqyaYEjXrPE6fkTN8KHHHhhFKnjdfEt8mmziXNdVKTpV1oLBfQVLsLG32XkcYgX9nHtUA3r9bYDRhQGQp1y4AumVyQFbxr";
/*******OTO销售工作台-个微*********/
public static final String WX_CUSTOMER_TKU = "3XE1uRL2Mq7DEPFFUMAtEgc1KZagjL4Bw7STUYA79h2mLaQExn9ji9MtuMqeigWxzYyLqGhdKFSWs18uFNXF74dZzMAuvJKHkLrc63b9erfkSoBQvM";
public static final String WX_CUSTOMER_TKU3 = "3XE1uRL2Mq7DEPFFUMAtEgc1KZagjL4Bw7STUYA79h2mLaQExn9ji9MtuMqeigWxzYyLqGhdKFSWs18uFNXF74dZzMAuvJKHkLrc63b9erfkSoBQvM";
public static final String WX_CUSTOMER_TKU2 = "3XE1uRL2Mq7DEPFFFRdnRPaPh4SXgsm35PhVj4M9pZEiBBjeEqjofm85tjBtZPBTzQoh68V4gcwq5RxvfTUzvU1HPrRRqU6Pji7JxkpeYD3PNZX7oH";
public static final String WX_CUSTOMER_TKU5 = "3XE1uRL2Mq7DEPFFFRdnRPaTjtsHkF2ZD1idKAhmtGUvcqgpiFwyGQDqRFUnkryobzja88dJCcoixi4Locvda442c7y97vgtPidEaUhwXTot8J3VEG";
public static final String WX_EXPERT_TKU = "8WLT4bmESccxwWsdtyqvYAujdym8wr9EFgyuxyVTUn3bWkjBxCaRZ3Ab9Th23hEEHsVL89gYm26n7Eag4ZxYGhabwkN8voFamdmibepJZ7Jjinx";
public static final String WX_LEADER_TKU = "8WLT4bmESccxwWsdtyqvYGjw2btb5QStHynN3Wqird53MakwdEDu5aNZEnV3PdpvmxipZ4bVxD7bjZKdofEdP9XVWgdNfNF52Vw1qV2dsf7gWVe";
// *************** 客集集域名 ***************
......@@ -332,6 +334,8 @@ public class BasicConfig {
public static final String WORK_MNG_ykList = WORK_HOST + "/kjy/oto/mng/seller/account/yk/availableList";
public static final String WORK_MNG_accountList = WORK_HOST + "/kjy/oto/mng/seller/account/availableList";
public static final String WORK_getDeptList= WORK_HOST + "/kjy/oto/mng/seller/get/dept/list";
public static final String WORK_configSave= WORK_HOST + "/kjy/oto/mng/seller/configSave";
public static final String WORK_configDetail= WORK_HOST + "/kjy/oto/mng/seller/configDetail";
//*************************客集集营销平台******************************
public static final String PHONE_bindWxUser = HOST + "/kjy/oto/interview/bindWxUser";
......@@ -355,6 +359,11 @@ public class BasicConfig {
public static final String WX_searchCust = WX_HOST + "/oto/seller/submitRecord/searchCust";
public static final String WX_submitRecord = WX_HOST + "/oto/seller/submitRecord/submit";
public static final String WX_saveIntroduce= WX_HOST + "/oto/customer/introduce/save";
public static final String WX_serviceExpert_sign= WX_HOST + "/oto/customer/serviceExpert/sign";
public static final String WX_serviceExpert_detail= WX_HOST + "/oto/customer/serviceExpert/detail";
public static final String WX_info= WX_HOST + "/oto/user/info";
public static final String WX_sign_list= WX_HOST + "/oto/sign/list";
public static final String WX_sign_complement= WX_HOST + "/oto/activity/sign/complement";
//*************************销售工作台企微端**********************
public static final String PHONE_getCustPhase = WORK_HOST + "/kjy/oto/manager/customer/getCustPhase";
......
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