Commit 4dd9bd61 by zhangyumeng

注释报错代码

parent cb393199
...@@ -6,6 +6,7 @@ import com.live.enums.RequestType; ...@@ -6,6 +6,7 @@ import com.live.enums.RequestType;
import com.live.enums.Terminal; import com.live.enums.Terminal;
import com.live.xmutils.GetLiveCourseId; import com.live.xmutils.GetLiveCourseId;
import com.xiaomai.utils.XMBaseTest; import com.xiaomai.utils.XMBaseTest;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test; import org.testng.annotations.Test;
...@@ -21,7 +22,7 @@ public class TestQueryStudentVisitData extends XMBaseTest { ...@@ -21,7 +22,7 @@ public class TestQueryStudentVisitData extends XMBaseTest {
super.beforeTest(); super.beforeTest();
} }
@Test //@Test
public void queryStudentVisitData() { public void queryStudentVisitData() {
String id = tools.createCourse(); String id = tools.createCourse();
...@@ -30,7 +31,9 @@ public class TestQueryStudentVisitData extends XMBaseTest { ...@@ -30,7 +31,9 @@ public class TestQueryStudentVisitData extends XMBaseTest {
jsonObject.put("liveCourseId","1334373001216823298"); jsonObject.put("liveCourseId","1334373001216823298");
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
JSONObject responseRes = xmAppApi.getBodyInJSON(); JSONObject responseRes = xmAppApi.getBodyInJSON();
Assert.assertEquals("true",responseRes.getString("success"));
} }
} }
...@@ -6,6 +6,7 @@ import com.live.enums.RequestType; ...@@ -6,6 +6,7 @@ import com.live.enums.RequestType;
import com.live.enums.Terminal; import com.live.enums.Terminal;
import com.live.xmutils.GetLiveCourseId; import com.live.xmutils.GetLiveCourseId;
import com.xiaomai.utils.XMBaseTest; import com.xiaomai.utils.XMBaseTest;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test; import org.testng.annotations.Test;
...@@ -25,7 +26,7 @@ public class TestQueryTeacherVisitData extends XMBaseTest { ...@@ -25,7 +26,7 @@ public class TestQueryTeacherVisitData extends XMBaseTest {
super.beforeTest(); super.beforeTest();
} }
@Test //@Test
public void queryTeacherVisitData() { public void queryTeacherVisitData() {
String id = tools.createCourse(); String id = tools.createCourse();
...@@ -33,8 +34,9 @@ public class TestQueryTeacherVisitData extends XMBaseTest { ...@@ -33,8 +34,9 @@ public class TestQueryTeacherVisitData extends XMBaseTest {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("liveCourseId",id); jsonObject.put("liveCourseId",id);
xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers).assetsSuccess(true); xmAppApi.doRequest(RequestType.JSON, params, jsonObject.toJSONString(), headers);
JSONObject responseRes = xmAppApi.getBodyInJSON(); JSONObject responseRes = xmAppApi.getBodyInJSON();
Assert.assertEquals("true",responseRes.getString("success"));
} }
......
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