mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: openViduJavaClientTest recording properties log
parent
4c8f7229f2
commit
c51aa7ca91
|
@ -2120,8 +2120,7 @@ public class OpenViduTestAppE2eTest {
|
||||||
|
|
||||||
String widthAndHeight = user.getEventManager().getDimensionOfViewport();
|
String widthAndHeight = user.getEventManager().getDimensionOfViewport();
|
||||||
JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight);
|
JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight);
|
||||||
Assert.assertEquals(
|
Assert.assertEquals("{\"width\":" + (long) obj.get("width") + ",\"height\":" + ((long) obj.get("height")) + "}",
|
||||||
"{\"width\":" + (long) obj.get("width") + ",\"height\":" + ((long) obj.get("height")) + "}",
|
|
||||||
pub.getVideoDimensions());
|
pub.getVideoDimensions());
|
||||||
Assert.assertEquals(new Integer(30), pub.getFrameRate());
|
Assert.assertEquals(new Integer(30), pub.getFrameRate());
|
||||||
Assert.assertEquals("SCREEN", pub.getTypeOfVideo());
|
Assert.assertEquals("SCREEN", pub.getTypeOfVideo());
|
||||||
|
@ -2201,10 +2200,13 @@ public class OpenViduTestAppE2eTest {
|
||||||
|
|
||||||
user.getEventManager().waitUntilEventReaches("recordingStopped", 1);
|
user.getEventManager().waitUntilEventReaches("recordingStopped", 1);
|
||||||
|
|
||||||
Assert.assertTrue("Wrong recording duration", recording.getDuration() > 0);
|
Assert.assertTrue("Wrong recording duration. Expected > 0 and was " + recording.getDuration(),
|
||||||
Assert.assertTrue("Wrong recording size", recording.getSize() > 0);
|
recording.getDuration() > 0);
|
||||||
Assert.assertNull("Wrong recording url", recording.getUrl());
|
Assert.assertTrue("Wrong recording size. Excepected > 0 and was " + recording.getSize(),
|
||||||
Assert.assertEquals("Wrong recording status", Recording.Status.stopped, recording.getStatus());
|
recording.getSize() > 0);
|
||||||
|
Assert.assertNull("Wrong recording url. Expected not null and was null", recording.getUrl());
|
||||||
|
Assert.assertEquals("Wrong recording status. Expected stopped and was " + recording.getStatus().name(),
|
||||||
|
Recording.Status.stopped, recording.getStatus());
|
||||||
Assert.assertFalse("Session shouldn't be being recorded", session.isBeingRecorded());
|
Assert.assertFalse("Session shouldn't be being recorded", session.isBeingRecorded());
|
||||||
Assert.assertFalse("OpenVidu.fetch() should return false", OV.fetch());
|
Assert.assertFalse("OpenVidu.fetch() should return false", OV.fetch());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue