Commit 1da03ec7 by xyy

Merge remote-tracking branch 'origin/master'

parents 6ccafa64 f3c41ba1
...@@ -58,7 +58,7 @@ public class TestEditPersonalCourse extends BaseTestImpl { ...@@ -58,7 +58,7 @@ public class TestEditPersonalCourse extends BaseTestImpl {
String courseName = "存量瑜伽课程"+ TimeUtils.getCurrentTime(); String courseName = "存量瑜伽课程"+ TimeUtils.getCurrentTime();
JSONObject body = new JSONObject(); JSONObject body = new JSONObject();
body.put("categoryId", courseDetail.getString("categoryId")); body.put("categoryId", categoryId);
body.put("courseName", courseName); body.put("courseName", courseName);
body.put("duration", duration); // 时长 body.put("duration", duration); // 时长
body.put("difficulty", difficulty); // 难度 body.put("difficulty", difficulty); // 难度
...@@ -81,7 +81,11 @@ public class TestEditPersonalCourse extends BaseTestImpl { ...@@ -81,7 +81,11 @@ public class TestEditPersonalCourse extends BaseTestImpl {
xmAppApi.doRequest(RequestType.JSON,params,body.toString(),headers).assetsSuccess(true); xmAppApi.doRequest(RequestType.JSON,params,body.toString(),headers).assetsSuccess(true);
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
String[] keys = {"courseName","duration","difficulty","color","coverId","timeUnit","categoryId","sourceId","sourceType","brandId","sizeType","allArea","capacity","minCapacity"}; String[] keys = {"courseName","duration","difficulty","color","coverId","timeUnit","categoryId","sourceId","sourceType","brandId","sizeType","allArea","capacity","minCapacity"};
String[] values = {courseName,String.valueOf(duration),String.valueOf(difficulty),"#AACF53","0","MINUTE",categoryId,xmAppApi.getLoginInfo().getStudioId(),"STUDIO",xmAppApi.getLoginInfo().getBrandId(),"ONE_TO_MANY","false",String.valueOf(capacity),"1"}; String[] values = {courseName,String.valueOf(duration),String.valueOf(difficulty),"#AACF53","0","MINUTE",categoryId,xmAppApi.getLoginInfo().getStudioId(),"STUDIO",xmAppApi.getLoginInfo().getBrandId(),"ONE_TO_MANY","false",String.valueOf(capacity),"1"};
// 校验内容与编辑的是否一致 // 校验内容与编辑的是否一致
......
...@@ -13,13 +13,13 @@ import com.xiaomai.utils.RandomStringUtil; ...@@ -13,13 +13,13 @@ import com.xiaomai.utils.RandomStringUtil;
import com.xiaomai.utils.XMJSONPath; import com.xiaomai.utils.XMJSONPath;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* @author adu * @author adu
...@@ -62,7 +62,6 @@ public class TestCreateMemberCluster extends BaseTestImpl { ...@@ -62,7 +62,6 @@ public class TestCreateMemberCluster extends BaseTestImpl {
body.put("description", "自动化测试创建客户分群"); body.put("description", "自动化测试创建客户分群");
body.put("requireFullHit", "YES"); body.put("requireFullHit", "YES");
List<JSONObject> ruleList = new ArrayList<>(); List<JSONObject> ruleList = new ArrayList<>();
JSONObject ruleTypeTag = new JSONObject(); JSONObject ruleTypeTag = new JSONObject();
List<String> tags = new ArrayList<>(); List<String> tags = new ArrayList<>();
...@@ -92,9 +91,27 @@ public class TestCreateMemberCluster extends BaseTestImpl { ...@@ -92,9 +91,27 @@ public class TestCreateMemberCluster extends BaseTestImpl {
body.put("ruleList", ruleList); body.put("ruleList", ruleList);
//1.创建人群 //1.创建人群
xmAppApi.doRequest(RequestType.JSON, params, body.toString(), headers); xmAppApi.doRequest(RequestType.JSON, params, body.toString(), headers);
if ("最多只能新建20个,已达上限".equals(XMJSONPath.readPath(xmAppApi.getApi_response(), "$.message"))) {
//删除人群(过滤掉存量的2条数据)
memberClusterTools.getMemberClusterList();
XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result").toJavaList(JSONObject.class).stream()
.filter(object -> !"满足所有条件便签课程和储值卡(勿动)".equals(object.getString("name")) && !"满足任意一个条件会员分群(勿动)".equals(object.getString("name")))
.map(o -> o.getString("id"))
.collect(Collectors.toList())
.stream()
.forEach(s -> {
memberClusterTools.deleteMemberCluster(s);
});
xmAppApi.doRequest(RequestType.JSON, params, body.toString(), headers);
}
Assert.assertTrue(Boolean.valueOf(XMJSONPath.readPath(xmAppApi.getApi_response(), "$.success")) == true, "调用接口返回结果:" + XMJSONPath.readPath(xmAppApi.getApi_response(), "$.message")); Assert.assertTrue(Boolean.valueOf(XMJSONPath.readPath(xmAppApi.getApi_response(), "$.success")) == true, "调用接口返回结果:" + XMJSONPath.readPath(xmAppApi.getApi_response(), "$.message"));
clusterIdNewA = XMJSONPath.readPath(xmAppApi.getApi_response(), "$.result"); clusterIdNewA = XMJSONPath.readPath(xmAppApi.getApi_response(), "$.result");
//2.查看详情,check人群信息 //2.查看详情,check人群信息
memberClusterTools.getMemberClusterDetail(clusterIdNewA); memberClusterTools.getMemberClusterDetail(clusterIdNewA);
//2.1 check创建的是不是满足所有条件 //2.1 check创建的是不是满足所有条件
...@@ -104,9 +121,12 @@ public class TestCreateMemberCluster extends BaseTestImpl { ...@@ -104,9 +121,12 @@ public class TestCreateMemberCluster extends BaseTestImpl {
//3.再创建一个分群,条件是满足以上任意一个,用工具类 //3.再创建一个分群,条件是满足以上任意一个,用工具类
String nameB = "满足任意一个条件会员分群" + RandomStringUtil.randomString(3); String nameB = "满足任意一个条件会员分群" + RandomStringUtil.randomString(3);
memberClusterTools.createMemberCluster(nameB, "", "NO", ruleList); memberClusterTools.createMemberCluster(nameB, "", "NO", ruleList);
Assert.assertTrue(Boolean.valueOf(XMJSONPath.readPath(dataApi.getApi_response(), "$.success")) == true, "调用接口返回结果:" + XMJSONPath.readPath(dataApi.getApi_response(), "$.message")); Assert.assertTrue(Boolean.valueOf(XMJSONPath.readPath(dataApi.getApi_response(), "$.success")) == true, "调用接口返回结果:" + XMJSONPath.readPath(dataApi.getApi_response(), "$.message"));
clusterIdNewB = XMJSONPath.readPath(dataApi.getApi_response(), "$.result"); clusterIdNewB = XMJSONPath.readPath(dataApi.getApi_response(), "$.result");
//4.查看列表,check是否包含刚创建的人群 //4.查看列表,check是否包含刚创建的人群
memberClusterTools.getMemberClusterList(); memberClusterTools.getMemberClusterList();
Assert.assertTrue(XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result").toJavaList(JSONObject.class).stream().filter(e -> e.getString("id").equals(clusterIdNewA)).count() == 1, "列表中没获取到刚创建的会员分群(满足所有条件)"); Assert.assertTrue(XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(), "$.result").toJavaList(JSONObject.class).stream().filter(e -> e.getString("id").equals(clusterIdNewA)).count() == 1, "列表中没获取到刚创建的会员分群(满足所有条件)");
...@@ -115,8 +135,8 @@ public class TestCreateMemberCluster extends BaseTestImpl { ...@@ -115,8 +135,8 @@ public class TestCreateMemberCluster extends BaseTestImpl {
memberClusterTools.manuaUpdatelMemberCluster(); memberClusterTools.manuaUpdatelMemberCluster();
if (XMJSONPath.readPath(dataApi.getApi_response(), "$.message").equals("请稍后再试,手动更新需要间隔一小时")) { if (XMJSONPath.readPath(dataApi.getApi_response(), "$.message").equals("请稍后再试,手动更新需要间隔一小时")) {
//5.1 如果遇到这种场景,那么就启动存量数据了 //5.1 如果遇到这种场景,那么就启动存量数据了
clusterIdA = "1850830131517263874"; clusterIdA = "1867049524725911554";
clusterIdB = "1850835279266254850"; clusterIdB = "1867049901500239874";
} else { } else {
//5.2 可以操作手动更新时,用新数据 //5.2 可以操作手动更新时,用新数据
...@@ -259,7 +279,7 @@ public class TestCreateMemberCluster extends BaseTestImpl { ...@@ -259,7 +279,7 @@ public class TestCreateMemberCluster extends BaseTestImpl {
} }
@AfterTest(description = "删除此case创建的会员分群") @Test(description = "删除此case创建的会员分群",priority = 1)
public void delData() { public void delData() {
if (!StringUtils.isEmpty(this.clusterIdNewA)) { if (!StringUtils.isEmpty(this.clusterIdNewA)) {
memberClusterTools.deleteMemberCluster(clusterIdNewA); memberClusterTools.deleteMemberCluster(clusterIdNewA);
......
...@@ -10,13 +10,13 @@ import com.xiaomai.utils.RandomStringUtil; ...@@ -10,13 +10,13 @@ import com.xiaomai.utils.RandomStringUtil;
import com.xiaomai.utils.XMJSONPath; import com.xiaomai.utils.XMJSONPath;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* 编辑会员分群 * 编辑会员分群
...@@ -39,6 +39,18 @@ public class TestEditMemberCluster extends BaseTestImpl { ...@@ -39,6 +39,18 @@ public class TestEditMemberCluster extends BaseTestImpl {
@Test(description = "测试编辑人群") @Test(description = "测试编辑人群")
public void testEditMemberCluster() { public void testEditMemberCluster() {
//先查看人群列表数据,超过20个时,做下删除处理
memberClusterTools.getMemberClusterList();
if("最多只能新建20个,已达上限".equals(XMJSONPath.readPath(dataApi.getApi_response(), "$.message"))){
//删除人群(过滤掉存量的2条数据)
XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(),"$.result").toJavaList(JSONObject.class).stream()
.filter(object ->! "满足所有条件便签课程和储值卡(勿动)".equals(object.getString("name"))&& ! "满足任意一个条件会员分群(勿动)".equals(object.getString("name")))
.map(o->o.getString("id"))
.collect(Collectors.toList())
.stream()
.forEach(s -> {memberClusterTools.deleteMemberCluster(s);} );
}
//1.创建人群 //1.创建人群
//1.1 人群名称验重 //1.1 人群名称验重
name = "用于自动化测试编辑会员分群动态数据"; name = "用于自动化测试编辑会员分群动态数据";
...@@ -114,7 +126,7 @@ public class TestEditMemberCluster extends BaseTestImpl { ...@@ -114,7 +126,7 @@ public class TestEditMemberCluster extends BaseTestImpl {
} }
@AfterTest(description = "删除此case创建的会员分群") @Test(description = "删除此case创建的会员分群",priority = 1)
public void delData() { public void delData() {
if (!StringUtils.isEmpty(this.clusterId)) { if (!StringUtils.isEmpty(this.clusterId)) {
......
...@@ -244,7 +244,7 @@ public class TestAddMemberReserve extends BaseTestImpl { ...@@ -244,7 +244,7 @@ public class TestAddMemberReserve extends BaseTestImpl {
int bookingSeatCount = random.nextInt(10)+1; // 席位 int bookingSeatCount = random.nextInt(10)+1; // 席位
ruleTools.saveGroupBookingRules(id,false,bookingSeatCount,true,true,random.nextInt(30)+10,true,random.nextInt(100)+10,random.nextInt(5)+1,true,random.nextInt(100)+10,"minutes",true,random.nextInt(100)+10,"minutes"); ruleTools.saveGroupBookingRules(id,false,bookingSeatCount,true,true,random.nextInt(30)+10,true,random.nextInt(100)+10,random.nextInt(5)+1,true,random.nextInt(100)+10,"minutes",true,random.nextInt(100)+10,"minutes");
try { try {
Thread.sleep(2000); Thread.sleep(4000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -6,7 +6,6 @@ import com.xiaomai.enums.LoginAccount; ...@@ -6,7 +6,6 @@ import com.xiaomai.enums.LoginAccount;
import com.xiaomai.enums.Terminal; import com.xiaomai.enums.Terminal;
import com.xiaomai.utils.XMJSONPath; import com.xiaomai.utils.XMJSONPath;
import org.testng.Assert; import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
...@@ -58,7 +57,7 @@ public class TestCreateCampRuleSchedule extends SelectTargetTrainingCampAndGetIn ...@@ -58,7 +57,7 @@ public class TestCreateCampRuleSchedule extends SelectTargetTrainingCampAndGetIn
ruldId=XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(),"$.result").getJSONObject(0).getString("ruleId"); ruldId=XMJSONPath.getJSONArrayByReadPath(dataApi.getApi_response(),"$.result").getJSONObject(0).getString("ruleId");
} }
@AfterTest(description = "删除此case创建的训练营排课日程和训练营活动") @Test(description = "删除此case创建的训练营排课日程和训练营活动",priority = 1)
public void delData() { public void delData() {
//直接删除训练营会的,对应的排课日程会被自动删除,校验其他case中已有 //直接删除训练营会的,对应的排课日程会被自动删除,校验其他case中已有
if (null!=this.campId||!this.campId.isEmpty()) { if (null!=this.campId||!this.campId.isEmpty()) {
......
...@@ -95,7 +95,7 @@ public class TestDelCurrentAndSubsequentCampSchedule extends SelectTargetTrainin ...@@ -95,7 +95,7 @@ public class TestDelCurrentAndSubsequentCampSchedule extends SelectTargetTrainin
} }
@AfterTest(description = "删除此case创建的训练营排课日程") @Test(description = "删除此case创建的训练营排课日程",priority = 1)
public void delData() { public void delData() {
//先删除规则,再操作删除对应的训练营活动,此处顺序不能换,如果先删除训练营活动,对应的排课会自动删除,所以就不用删除排课日程了,这个场景其他case中会体现 //先删除规则,再操作删除对应的训练营活动,此处顺序不能换,如果先删除训练营活动,对应的排课会自动删除,所以就不用删除排课日程了,这个场景其他case中会体现
if (null != ruldId || !ruldId.isEmpty()) { if (null != ruldId || !ruldId.isEmpty()) {
......
...@@ -90,7 +90,7 @@ public class TestDelCurrentCampScheduleItem extends SelectTargetTrainingCampAndG ...@@ -90,7 +90,7 @@ public class TestDelCurrentCampScheduleItem extends SelectTargetTrainingCampAndG
} }
@AfterTest(description = "删除此case创建的训练营排课日程") @Test(description = "删除此case创建的训练营排课日程",priority = 1)
public void delData() { public void delData() {
//先删除规则,再操作删除对应的训练营活动,此处顺序不能换,如果先删除训练营活动,对应的排课会自动删除,所以就不用删除排课日程了,这个场景其他case中会体现 //先删除规则,再操作删除对应的训练营活动,此处顺序不能换,如果先删除训练营活动,对应的排课会自动删除,所以就不用删除排课日程了,这个场景其他case中会体现
if (null != ruldId || !ruldId.isEmpty()) { if (null != ruldId || !ruldId.isEmpty()) {
......
...@@ -164,7 +164,7 @@ public class TestEditCampRuleSchedule extends SelectTargetTrainingCampAndGetInfo ...@@ -164,7 +164,7 @@ public class TestEditCampRuleSchedule extends SelectTargetTrainingCampAndGetInfo
} }
@AfterTest(description = "删除此case创建的训练营排课日程") @Test(description = "删除此case创建的训练营排课日程",priority = 1)
public void delData() { public void delData() {
if (null != ruldId || !ruldId.isEmpty()) { if (null != ruldId || !ruldId.isEmpty()) {
campScheduleTools.delCampRuleSchedule(ruldId); campScheduleTools.delCampRuleSchedule(ruldId);
......
...@@ -110,7 +110,7 @@ public class TestEditCurrentCampSchedule extends SelectTargetTrainingCampAndGetI ...@@ -110,7 +110,7 @@ public class TestEditCurrentCampSchedule extends SelectTargetTrainingCampAndGetI
} }
} }
@AfterTest(description = "删除此case创建的训练营排课日程") @Test(description = "删除此case创建的训练营排课日程",priority = 1)
public void delData() { public void delData() {
if (null != campId || !campId.isEmpty()) { if (null != campId || !campId.isEmpty()) {
this.getTrainingTools().deleteTraining(campId); this.getTrainingTools().deleteTraining(campId);
......
...@@ -131,7 +131,7 @@ public class TestGetCampScheduleItemDetail extends SelectTargetTrainingCampAndGe ...@@ -131,7 +131,7 @@ public class TestGetCampScheduleItemDetail extends SelectTargetTrainingCampAndGe
} }
@AfterTest(description = "删除此case创建的训练营排课日程") @Test(description = "删除此case创建的训练营排课日程",priority = 1)
public void delData() { public void delData() {
if (null != orderId || !orderId.isEmpty()) { if (null != orderId || !orderId.isEmpty()) {
......
...@@ -111,7 +111,7 @@ public class TestGetCampScheduleTable extends SelectTargetTrainingCampAndGetInfo ...@@ -111,7 +111,7 @@ public class TestGetCampScheduleTable extends SelectTargetTrainingCampAndGetInfo
Assert.assertTrue(resultCount >= total, "查询到的课表数据和预期不一致"); Assert.assertTrue(resultCount >= total, "查询到的课表数据和预期不一致");
} }
@AfterTest(description = "删除此case创建的训练营排课日程,只操作删除对应的训练营活动即可") @Test(description = "删除此case创建的训练营排课日程,只操作删除对应的训练营活动即可",priority = 1)
public void delData() { public void delData() {
if (null!=campId||!campId.isEmpty()) { if (null!=campId||!campId.isEmpty()) {
this.getTrainingTools().deleteTraining(campId); this.getTrainingTools().deleteTraining(campId);
......
...@@ -59,7 +59,7 @@ public class TestDelCurrentAndSubsequentGroupSchedule extends UniversalDataSched ...@@ -59,7 +59,7 @@ public class TestDelCurrentAndSubsequentGroupSchedule extends UniversalDataSched
} }
} }
@AfterTest(description = "删除此case创建的日程") @Test(description = "删除此case创建的日程",priority = 1)
public void delData() { public void delData() {
if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程 if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程
//删除对应日程 //删除对应日程
......
...@@ -60,7 +60,7 @@ public class TestDelCurrentSingleGroupSchedule extends UniversalDataScheduling{ ...@@ -60,7 +60,7 @@ public class TestDelCurrentSingleGroupSchedule extends UniversalDataScheduling{
} }
@AfterTest(description = "删除此case创建的日程") @Test(description = "删除此case创建的日程",priority = 1)
public void delData() { public void delData() {
if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程 if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程
......
...@@ -122,7 +122,7 @@ public class TestEditCurrentAndSubsequentGroupSchedule extends UniversalDataSche ...@@ -122,7 +122,7 @@ public class TestEditCurrentAndSubsequentGroupSchedule extends UniversalDataSche
} }
@AfterTest(description = "删除此case创建的日程") @Test(description = "删除此case创建的日程",priority = 1)
public void delData () { public void delData () {
if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程 if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程
......
...@@ -90,7 +90,7 @@ public class TestEditCurrentGroupSchedule extends UniversalDataScheduling { ...@@ -90,7 +90,7 @@ public class TestEditCurrentGroupSchedule extends UniversalDataScheduling {
@AfterTest(description = "删除此case创建的日程") @Test(description = "删除此case创建的日程",priority = 1)
public void delData () { public void delData () {
if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程 if (!StringUtils.isEmpty(groupRuldId)) {//获取到的日程ID不为空时,则逐个删除相关日程
......
...@@ -37,7 +37,7 @@ public class TestEditGroupRuleSchedule extends BaseTestImpl { ...@@ -37,7 +37,7 @@ public class TestEditGroupRuleSchedule extends BaseTestImpl {
String theDayBeforeYesterdayTimeTamp = CommUtil.oneKeyGetAddDay(-2); String theDayBeforeYesterdayTimeTamp = CommUtil.oneKeyGetAddDay(-2);
//获取今天+12天后日期的时间戳(结束时间) //获取今天+12天后日期的时间戳(结束时间)
String endDateTimeTamp = CommUtil.getNDayEndTimeTamp(12); String endDateTimeTamp = CommUtil.getNDayEndTimeTamp(12);
String todayEndDateTimeTamp = CommUtil.getNDayEndTimeTamp(0); String tomEndDateTimeTamp = CommUtil.getNDayEndTimeTamp(1);
String courseName = "阿杜自动化团课课程"; String courseName = "阿杜自动化团课课程";
...@@ -83,7 +83,7 @@ public class TestEditGroupRuleSchedule extends BaseTestImpl { ...@@ -83,7 +83,7 @@ public class TestEditGroupRuleSchedule extends BaseTestImpl {
body.put("assistCoachIds", new ArrayList<>()); //有数据AB改成空 body.put("assistCoachIds", new ArrayList<>()); //有数据AB改成空
body.put("ruleId", ruldId); body.put("ruleId", ruldId);
body.put("spanMinutes", 50); body.put("spanMinutes", 50);
body.put("endDate", todayEndDateTimeTamp); //结束日期缩短了,改成当天结束 body.put("endDate", tomEndDateTimeTamp); //结束日期缩短了,改成明天结束
body.put("force", false); body.put("force", false);
body.put("retainBooking", true); body.put("retainBooking", true);
xmAppApi.doRequest(RequestType.JSON, params, body.toString(), headers); xmAppApi.doRequest(RequestType.JSON, params, body.toString(), headers);
......
...@@ -134,7 +134,7 @@ public class TestGetGroupScheduleTable extends BaseTestImpl { ...@@ -134,7 +134,7 @@ public class TestGetGroupScheduleTable extends BaseTestImpl {
} }
@AfterTest(description = "删除此case创建的日程") @Test(description = "删除此case创建的日程",priority = 1)
public void delData(){ public void delData(){
List<String> ruleIdIds = new ArrayList<>(); List<String> ruleIdIds = new ArrayList<>();
//查询这个case创建的相关日程 //查询这个case创建的相关日程
......
...@@ -115,7 +115,7 @@ public class VenueAreaTools extends XMBaseTest { ...@@ -115,7 +115,7 @@ public class VenueAreaTools extends XMBaseTest {
JSONObject body= new JSONObject(); JSONObject body= new JSONObject();
body.put("current",0); body.put("current",0);
body.put("size",20); body.put("size",100);
body.put("brandId",dataApi.getLoginInfo().getBrandId()); body.put("brandId",dataApi.getLoginInfo().getBrandId());
body.put("studioId",dataApi.getLoginInfo().getStudioId()); body.put("studioId",dataApi.getLoginInfo().getStudioId());
body.put("operatorId",dataApi.getLoginInfo().getAdminId()); body.put("operatorId",dataApi.getLoginInfo().getAdminId());
...@@ -871,7 +871,7 @@ public class VenueAreaTools extends XMBaseTest { ...@@ -871,7 +871,7 @@ public class VenueAreaTools extends XMBaseTest {
dataApi.doRequest(RequestType.JSON, dataparams, object.toString(), dataheadrs).assetsSuccess(true); dataApi.doRequest(RequestType.JSON, dataparams, object.toString(), dataheadrs).assetsSuccess(true);
Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.result"),"SUCCESS"); Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.result"),"SUCCESS");
Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.identifier"),venueBookingRecordId); // Assert.assertEquals(XMJSONPath.readPath(dataApi.getApi_response(), "$.result.identifier"),venueBookingRecordId);
} }
/** /**
* 小程序取消场地预约 * 小程序取消场地预约
......
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