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

Merge branch 'Feature/acitityAndOa_20230417' into 'master'

修改

See merge request !86
parents 9575f280 2ab3561c
...@@ -62,6 +62,9 @@ public class Activity implements Authorization { ...@@ -62,6 +62,9 @@ public class Activity implements Authorization {
data = response.jsonPath().getBoolean("data"); 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()));
params.clear();
params.put("totalCost", 0.01);
params.put("sceneConfId", 440);
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);
...@@ -73,7 +76,7 @@ public class Activity implements Authorization { ...@@ -73,7 +76,7 @@ public class Activity implements Authorization {
params.put("beginTime", activity_day+"00:00:00"); params.put("beginTime", activity_day+"00:00:00");
params.put("endTime", activity_day+"23:59:59"); params.put("endTime", activity_day+"23:59:59");
Response response = network.postResponse(params, BasicConfig.WORK_listActivity); Response response = network.postResponse(params, BasicConfig.WORK_listActivity);
int size = response.jsonPath().getInt("data.voList.size()"); int size = response.jsonPath().getInt("data[0].voList.size()");
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");
......
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