Commit f3c41ba1 by xuyamei

解决报错

parent 07fe3508
...@@ -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"};
// 校验内容与编辑的是否一致 // 校验内容与编辑的是否一致
......
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