Commit a294c199 by dujunli

修改固定参数

parent f0ed2d92
......@@ -105,10 +105,11 @@ public class CourseCategoryTools extends XMBaseTest {
JSONObject body = new JSONObject();
body.put("brandId",dataApi.getLoginInfo().getBrandId());
body.put("studioId",dataApi.getLoginInfo().getStudioId());
body.put("categoryName",categoryName);
body.put("operatorId",dataApi.getLoginInfo().getAdminId());
dataApi.doRequest(RequestType.JSON,dataparams,body.toString(),dataheadrs);
dataApi.doRequest(RequestType.JSON,dataparams,body.toString(),dataheadrs).assetsSuccess(true);
return dataApi.getBodyInJSON().getJSONObject("result").getString("id");
}
......
......@@ -51,6 +51,7 @@ public class TestDeleteCourseCategory extends BaseTestImpl {
JSONObject body = new JSONObject();
body.put("studioId",xmAppApi.getLoginInfo().getStudioId());
body.put("operatorId",xmAppApi.getLoginInfo().getAdminId());
body.put("brandId",xmAppApi.getLoginInfo().getBrandId());
if (flag){
// 删除课程
......@@ -60,11 +61,12 @@ public class TestDeleteCourseCategory extends BaseTestImpl {
categoryId = courseCategoryTools.createCourseCategory("课程分类"+ TimeUtils.getCurrentTime());
Thread.sleep(1000);
// 创建团课程
courseId = courseTools.createGroupCourse("自动化测试课程",categoryId,"STUDIO");
courseId = courseTools.createGroupCourse("自动化测试课程AA",categoryId,"STUDIO");
Thread.sleep(2500);
}
body.put("categoryId",categoryId);
xmAppApi.doRequest(RequestType.JSON,params,body.toString(),headers).assetsSuccess(flag,msg);
}
......
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