Commit 6ab56ccc by zhangying

review

parent fff6111d
......@@ -24,8 +24,7 @@ public class TestAddRelation extends XMBaseTest {
.setApiName("api_addRelation") // API 名称 必传
.setLoginUser("zhangy-b") // http 接口,测试账号 必传
.setTerminal(Terminal.B); // 所属端位(B端,C端,M端等, 必传)
// dal.setCase_owner("zhangying")
// .setCase_name(Thread.currentThread().getStackTrace()[1].getFileName().split("\\.")[0]);
dal.setCase_owner("zhangying");
super.beforeTest();
}
......
......@@ -25,6 +25,7 @@ public class TestAddCourseStu extends XMBaseTest {
.setApiName("API_addCourseStu") // API 名称 必传
.setLoginUser("zhangy-b") // http 接口,测试账号 必传
.setTerminal(Terminal.B); // 所属端位(B端,C端,M端等, 必传)
dal.setCase_owner("zhangying");
super.beforeTest();
System.out.println(xmAppApi);
}
......@@ -33,7 +34,7 @@ public class TestAddCourseStu extends XMBaseTest {
* 测试乐器陪练课-添加学员"不扣课时学员(自动化测试)"
*/
@Test
// @Test
public void testAddCourseStu() {
GetOnlyOneCourseData onlyOneCourseData = new GetOnlyOneCourseData();
JSONObject onlyOneClassCourse = onlyOneCourseData.creatOnlyOneCourse();
......@@ -66,7 +67,7 @@ public class TestAddCourseStu extends XMBaseTest {
* 测试乐器陪练课-添加学员"扣课时学员(自动化测试)"
*/
@Test
// @Test
public void testAddCourseStu1() {
GetOnlyOneCourseData onlyOneCourseData = new GetOnlyOneCourseData();
JSONObject onlyOneClassCourse = onlyOneCourseData.creatOnlyOneCourse();
......
......@@ -29,8 +29,8 @@ public class GetOnlyOneCourseData extends XMBaseTest {
// bodyMap.put("courseState","EXPIRED");
String bodydata = JSONObject.toJSONString(bodyMap);
dataApi.doRequest(RequestType.JSON, params, bodydata, dataheadrs);
// dataApi.doRequest(RequestType.JSON, params, bodydata, dataheadrs);
dataApi.doRequest(RequestType.JSON, params, bodydata, headers);
JSONObject liveCourseList=dataApi.getBodyInJSON();
return liveCourseList;
......@@ -43,8 +43,8 @@ public class GetOnlyOneCourseData extends XMBaseTest {
.setTerminal(Terminal.B);
super.beforeDataRequest();
dataApi.doRequest(RequestType.JSON, params, buildCreateLargeClassLiveParam().toJSONString(), dataheadrs);
dataApi.doRequest(RequestType.JSON, params, buildCreateLargeClassLiveParam().toJSONString(), headers);
// dataApi.doRequest(RequestType.JSON, params, buildCreateLargeClassLiveParam().toJSONString(), dataheadrs);
JSONObject liveCourse=dataApi.getBodyInJSON();
return liveCourse;
......
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