Commit 161a0e6c by fangyuan

update cases

parent 961d4f9a
...@@ -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.utils.GetLiveCourseId; import com.live.utils.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;
...@@ -35,7 +36,8 @@ public class TestGetCourseDocList extends XMBaseTest { ...@@ -35,7 +36,8 @@ public class TestGetCourseDocList 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.assertNotNull(responseRes);
} }
} }
...@@ -5,6 +5,7 @@ import com.live.enums.ApiModele; ...@@ -5,6 +5,7 @@ import com.live.enums.ApiModele;
import com.live.enums.RequestType; import com.live.enums.RequestType;
import com.live.enums.Terminal; import com.live.enums.Terminal;
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;
...@@ -41,6 +42,7 @@ public class testCommonFolderList extends XMBaseTest { ...@@ -41,6 +42,7 @@ public class testCommonFolderList extends XMBaseTest {
xmAppApi.doRequest(RequestType.JSON,params,jsonObject.toJSONString(),headers).assetsSuccess(true); xmAppApi.doRequest(RequestType.JSON,params,jsonObject.toJSONString(),headers).assetsSuccess(true);
// //
JSONObject responseRes = xmAppApi.getBodyInJSON(); JSONObject responseRes = xmAppApi.getBodyInJSON();
Assert.assertNotNull(responseRes);
} }
} }
...@@ -7,6 +7,7 @@ import com.live.enums.ApiModele; ...@@ -7,6 +7,7 @@ import com.live.enums.ApiModele;
import com.live.enums.RequestType; import com.live.enums.RequestType;
import com.live.enums.Terminal; import com.live.enums.Terminal;
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;
...@@ -58,10 +59,10 @@ public class TestCreateBigLiveClass extends XMBaseTest { ...@@ -58,10 +59,10 @@ public class TestCreateBigLiveClass extends XMBaseTest {
System.out.println("请求" + jsonObject); System.out.println("请求" + jsonObject);
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.assertNotNull(responseRes);
} }
} }
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