Commit 2ab3561c authored by 龚小红's avatar 龚小红

修改

parent a2471f8b
......@@ -62,6 +62,9 @@ public class Activity implements Authorization {
data = response.jsonPath().getBoolean("data");
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("maTime", activity_day+"11:20");
response = network.postResponse(params, BasicConfig.WORK_saveActivity);
......@@ -73,7 +76,7 @@ public class Activity implements Authorization {
params.put("beginTime", activity_day+"00:00:00");
params.put("endTime", activity_day+"23:59:59");
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()));
acitityId = response.jsonPath().getInt("data[0].voList[2].id");
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