Commit 290f6eed authored by 龚小红's avatar 龚小红

增加经营盘点的测试用例

parent 32acaae7
...@@ -320,7 +320,7 @@ public class Activity implements Authorization { ...@@ -320,7 +320,7 @@ public class Activity implements Authorization {
HashMap<String,Object> params = new HashMap<>(); HashMap<String,Object> params = new HashMap<>();
ArrayList list = new ArrayList(); ArrayList list = new ArrayList();
list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id+3),"am", 226 ,0)); list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id+3),"am", 226 ,0));
list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id+4),"pm", 17,2)); list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id-1),"pm", 17,2));
params.put("date", today); params.put("date", today);
params.put("params", list); params.put("params", list);
Response response = network.postResponse(params, BasicConfig.WX_submitRecord); Response response = network.postResponse(params, BasicConfig.WX_submitRecord);
...@@ -506,7 +506,7 @@ public class Activity implements Authorization { ...@@ -506,7 +506,7 @@ public class Activity implements Authorization {
int shouldSignNum = response.jsonPath().getInt("data.shouldSignNum"); int shouldSignNum = response.jsonPath().getInt("data.shouldSignNum");
int notSignNum = response.jsonPath().getInt("data.notSignNum"); int notSignNum = response.jsonPath().getInt("data.notSignNum");
int size = response.jsonPath().getInt("data.vos.size()"); int size = response.jsonPath().getInt("data.vos.size()");
int isSign1 = response.jsonPath().getInt("data.vos.find{it.name.equals(\"自动化测试用户0\")}.isSign"); int isSign1 = response.jsonPath().getInt("data.vos.find{it.name.equals(\"自动化测试用户4\")}.isSign");
int isSign2 = response.jsonPath().getInt("data.vos.find{it.name.equals(\"自动化测试用户2\")}.isSign"); int isSign2 = response.jsonPath().getInt("data.vos.find{it.name.equals(\"自动化测试用户2\")}.isSign");
Assert.assertEquals(shouldSignNum,3,network.message(params,BasicConfig.WX_sign_list,"应签到人数错误",response.body().asString())); Assert.assertEquals(shouldSignNum,3,network.message(params,BasicConfig.WX_sign_list,"应签到人数错误",response.body().asString()));
Assert.assertEquals(notSignNum,1,network.message(params,BasicConfig.WX_sign_list,"未签到人数错误",response.body().asString())); Assert.assertEquals(notSignNum,1,network.message(params,BasicConfig.WX_sign_list,"未签到人数错误",response.body().asString()));
...@@ -533,6 +533,7 @@ public class Activity implements Authorization { ...@@ -533,6 +533,7 @@ public class Activity implements Authorization {
@Test(description = "查询团队更新经营客户情况",priority = 40) @Test(description = "查询团队更新经营客户情况",priority = 40)
public void 查询团队更新经营客户情况(){ public void 查询团队更新经营客户情况(){
sleep(3000);
otoLeaderAuth(); otoLeaderAuth();
checChart(1,4,0); checChart(1,4,0);
checChart(2,1,0); checChart(2,1,0);
...@@ -546,6 +547,7 @@ public class Activity implements Authorization { ...@@ -546,6 +547,7 @@ public class Activity implements Authorization {
public void 上传kyc更新经营客户情况(){ public void 上传kyc更新经营客户情况(){
saveKyc(cust_id+2,true); saveKyc(cust_id+2,true);
saveKyc(cust_id+3,true); saveKyc(cust_id+3,true);
sleep(3000);
checChart(1,4,0); checChart(1,4,0);
checChart(2,0,0); checChart(2,0,0);
checChart(3,1,0); checChart(3,1,0);
...@@ -559,6 +561,7 @@ public class Activity implements Authorization { ...@@ -559,6 +561,7 @@ public class Activity implements Authorization {
otoPlanAuth(); otoPlanAuth();
savePlanFile(3,cust_id+2); savePlanFile(3,cust_id+2);
savePlanFile(3,cust_id+3); savePlanFile(3,cust_id+3);
sleep(3000);
checChart(1,4,1); checChart(1,4,1);
checChart(2,0,0); checChart(2,0,0);
checChart(3,0,0); checChart(3,0,0);
...@@ -571,6 +574,7 @@ public class Activity implements Authorization { ...@@ -571,6 +574,7 @@ public class Activity implements Authorization {
public void 上传解决方案更新经营客户情况(){ public void 上传解决方案更新经营客户情况(){
savePlanFile(3,cust_id+2); savePlanFile(3,cust_id+2);
savePlanFile(3,cust_id+3); savePlanFile(3,cust_id+3);
sleep(3000);
checChart(1,4,1); checChart(1,4,1);
checChart(2,0,0); checChart(2,0,0);
checChart(3,0,0); checChart(3,0,0);
...@@ -584,6 +588,7 @@ public class Activity implements Authorization { ...@@ -584,6 +588,7 @@ public class Activity implements Authorization {
otoLeaderAuth(); otoLeaderAuth();
promotionUpdate(cust_id+2,2); promotionUpdate(cust_id+2,2);
promotionUpdate(cust_id+3,2); promotionUpdate(cust_id+3,2);
sleep(3000);
checChart(1,4,1); checChart(1,4,1);
checChart(2,0,0); checChart(2,0,0);
checChart(3,0,0); checChart(3,0,0);
......
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