Commit b96ccc06 authored by 龚小红's avatar 龚小红

Merge branch 'Feature/checkChart_20230519_gxh' into 'master'

增加经营盘点的测试用例

See merge request !100
parents f2f6b7c8 290f6eed
......@@ -320,7 +320,7 @@ public class Activity implements Authorization {
HashMap<String,Object> params = new HashMap<>();
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+4),"pm", 17,2));
list.add(new SignCustomer(IdMakeUtil.encodingId((long)cust_id-1),"pm", 17,2));
params.put("date", today);
params.put("params", list);
Response response = network.postResponse(params, BasicConfig.WX_submitRecord);
......@@ -506,7 +506,7 @@ public class Activity implements Authorization {
int shouldSignNum = response.jsonPath().getInt("data.shouldSignNum");
int notSignNum = response.jsonPath().getInt("data.notSignNum");
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");
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()));
......@@ -533,6 +533,7 @@ public class Activity implements Authorization {
@Test(description = "查询团队更新经营客户情况",priority = 40)
public void 查询团队更新经营客户情况(){
sleep(3000);
otoLeaderAuth();
checChart(1,4,0);
checChart(2,1,0);
......@@ -546,6 +547,7 @@ public class Activity implements Authorization {
public void 上传kyc更新经营客户情况(){
saveKyc(cust_id+2,true);
saveKyc(cust_id+3,true);
sleep(3000);
checChart(1,4,0);
checChart(2,0,0);
checChart(3,1,0);
......@@ -559,6 +561,7 @@ public class Activity implements Authorization {
otoPlanAuth();
savePlanFile(3,cust_id+2);
savePlanFile(3,cust_id+3);
sleep(3000);
checChart(1,4,1);
checChart(2,0,0);
checChart(3,0,0);
......@@ -571,6 +574,7 @@ public class Activity implements Authorization {
public void 上传解决方案更新经营客户情况(){
savePlanFile(3,cust_id+2);
savePlanFile(3,cust_id+3);
sleep(3000);
checChart(1,4,1);
checChart(2,0,0);
checChart(3,0,0);
......@@ -584,6 +588,7 @@ public class Activity implements Authorization {
otoLeaderAuth();
promotionUpdate(cust_id+2,2);
promotionUpdate(cust_id+3,2);
sleep(3000);
checChart(1,4,1);
checChart(2,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