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

Merge branch 'Feature/acitityAndOa_20230417' into 'master'

Feature/acitity and oa 20230417

See merge request !87
parents e31db59a 6691ef12
...@@ -49,13 +49,13 @@ public class Activity implements Authorization { ...@@ -49,13 +49,13 @@ public class Activity implements Authorization {
params.put("paramList", depts); params.put("paramList", depts);
params.put("isNeedInvite", 1); params.put("isNeedInvite", 1);
params.put("maTime", activity_day+"11:30"); params.put("maTime", activity_day+"11:30");
params.put("sceneConfId", 17); params.put("sceneConfId", 440);
Response response = network.postResponse(params, BasicConfig.WORK_saveActivity); Response response = network.postResponse(params, BasicConfig.WORK_saveActivity);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_saveActivity,"新建营销活动失败",response.body().asString())); Assert.assertTrue(data,network.message(params,BasicConfig.WORK_saveActivity,"新建营销活动失败",response.body().asString()));
otoManagerAuth(); otoManagerAuth();
params.put("sceneConfId", 440); params.put("sceneConfId", 17);
params.put("totalCost", 99999999.99); params.put("totalCost", 99999999.99);
params.put("maTime", activity_day+"12:00"); params.put("maTime", activity_day+"12:00");
response = network.postResponse(params, BasicConfig.WORK_saveActivity); response = network.postResponse(params, BasicConfig.WORK_saveActivity);
...@@ -64,7 +64,7 @@ public class Activity implements Authorization { ...@@ -64,7 +64,7 @@ public class Activity implements Authorization {
params.clear(); params.clear();
params.put("totalCost", 0.01); params.put("totalCost", 0.01);
params.put("sceneConfId", 440); params.put("sceneConfId", 17);
params.put("isNeedInvite", 0); params.put("isNeedInvite", 0);
params.put("maTime", activity_day+"11:20"); params.put("maTime", activity_day+"11:20");
response = network.postResponse(params, BasicConfig.WORK_saveActivity); response = network.postResponse(params, BasicConfig.WORK_saveActivity);
...@@ -80,7 +80,7 @@ public class Activity implements Authorization { ...@@ -80,7 +80,7 @@ public class Activity implements Authorization {
Assert.assertEquals(size,3,network.message(params,BasicConfig.WORK_listActivity,"营销活动数量错误",response.body().asString())); Assert.assertEquals(size,3,network.message(params,BasicConfig.WORK_listActivity,"营销活动数量错误",response.body().asString()));
acitityId = response.jsonPath().getInt("data[0].voList[2].id"); acitityId = response.jsonPath().getInt("data[0].voList[2].id");
String sceneName = response.jsonPath().getString("data[0].voList[0].sceneName"); String sceneName = response.jsonPath().getString("data[0].voList[0].sceneName");
Assert.assertEquals(sceneName,"勿动_自动化邀约场景",network.message(params,BasicConfig.WORK_listActivity,"营销活动排序错误",response.body().asString())); Assert.assertEquals(sceneName,"勿动-自动化一面场景",network.message(params,BasicConfig.WORK_listActivity,"营销活动排序错误",response.body().asString()));
String timeInterval1 = response.jsonPath().getString("data[0].voList[0].timeInterval"); String timeInterval1 = response.jsonPath().getString("data[0].voList[0].timeInterval");
Assert.assertEquals(timeInterval1, "am",network.message(params,BasicConfig.WORK_listActivity,"营销活动排序错误",response.body().asString())); Assert.assertEquals(timeInterval1, "am",network.message(params,BasicConfig.WORK_listActivity,"营销活动排序错误",response.body().asString()));
String timeInterval2 = response.jsonPath().getString("data[0].voList[2].timeInterval"); String timeInterval2 = response.jsonPath().getString("data[0].voList[2].timeInterval");
...@@ -99,11 +99,10 @@ public class Activity implements Authorization { ...@@ -99,11 +99,10 @@ public class Activity implements Authorization {
depts.add(deptItem1); depts.add(deptItem1);
params.put("paramList", depts); params.put("paramList", depts);
params.put("id", acitityId-1); params.put("id", acitityId-1);
params.put("id", acitityId);
params.put("isNeedInvite", 1); params.put("isNeedInvite", 1);
params.put("sceneConfId", 440); params.put("sceneConfId", 440);
params.put("totalCost",0); params.put("totalCost",0);
params.put("maTime", activity_day+"20:00"); params.put("maTime", activity_day+"11:30");
Response response = network.postResponse(params, BasicConfig.WORK_modifyActivity); Response response = network.postResponse(params, BasicConfig.WORK_modifyActivity);
boolean data = response.jsonPath().getBoolean("data"); boolean data = response.jsonPath().getBoolean("data");
Assert.assertTrue(data,network.message(params,BasicConfig.WORK_modifyActivity,"修改营销活动失败",response.body().asString())); Assert.assertTrue(data,network.message(params,BasicConfig.WORK_modifyActivity,"修改营销活动失败",response.body().asString()));
......
...@@ -712,7 +712,7 @@ public class CheckTask implements Authorization { ...@@ -712,7 +712,7 @@ public class CheckTask implements Authorization {
params.put("name", "自动化"); params.put("name", "自动化");
Response response = network.getResponse(params, BasicConfig.WORK_OA_custName); Response response = network.getResponse(params, BasicConfig.WORK_OA_custName);
int size = response.jsonPath().getInt("data.size()"); int size = response.jsonPath().getInt("data.size()");
Assert.assertTrue(size>3,network.message(params,BasicConfig.WORK_OA_custName,"客户姓名为空",response.body().asString())); Assert.assertTrue(size>2,network.message(params,BasicConfig.WORK_OA_custName,"客户姓名为空",response.body().asString()));
} }
......
...@@ -60,6 +60,9 @@ public class Work implements Authorization { ...@@ -60,6 +60,9 @@ public class Work implements Authorization {
otoAreaAuth(); otoAreaAuth();
menuList(11); menuList(11);
otoPlanAuth();
menuList(3);
otoManagerAuth(); otoManagerAuth();
menuList(20); menuList(20);
} }
...@@ -98,6 +101,9 @@ public class Work implements Authorization { ...@@ -98,6 +101,9 @@ public class Work implements Authorization {
otoAreaAuth(); otoAreaAuth();
tagList(tags); tagList(tags);
otoPlanAuth();
tagList(tags);
otoManagerAuth(); otoManagerAuth();
tagList(tags); tagList(tags);
} }
...@@ -118,7 +124,7 @@ public class Work implements Authorization { ...@@ -118,7 +124,7 @@ public class Work implements Authorization {
Assert.assertTrue(size>0,network.message(BasicConfig.WORK_notifyList,"通知栏不为空",response.body().asString())); Assert.assertTrue(size>0,network.message(BasicConfig.WORK_notifyList,"通知栏不为空",response.body().asString()));
int notifyType = response.jsonPath().getInt("data[0].notifyType"); int notifyType = response.jsonPath().getInt("data[0].notifyType");
int custCount = response.jsonPath().getInt("data[0].custCount"); int custCount = response.jsonPath().getInt("data[0].custCount");
Assert.assertEquals(custCount,6,network.message(BasicConfig.WORK_notifyList,"客户数量错误",response.body().asString())); Assert.assertEquals(custCount,5,network.message(BasicConfig.WORK_notifyList,"客户数量错误",response.body().asString()));
Assert.assertEquals(notifyType,2,network.message(BasicConfig.WORK_notifyList,"通知栏类型错误",response.body().asString())); Assert.assertEquals(notifyType,2,network.message(BasicConfig.WORK_notifyList,"通知栏类型错误",response.body().asString()));
} }
......
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