Skip to content

Commit

Permalink
updated vue tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecupa committed Sep 23, 2023
1 parent 818c4dd commit a4d7235
Show file tree
Hide file tree
Showing 6 changed files with 705 additions and 106 deletions.
2 changes: 0 additions & 2 deletions Tests/OpenviduTests/src/test/java/openViduAngularTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,11 @@ void T004_ParticipantName(){
}catch (TimeoutException n){

e.addStep(test, "FAIL", driverChrome, "Error in chrome: " + n.getMessage());
e.addStep(test, "FAIL", driverFirefox, "Error in firefox: " + n.getMessage());
fail("The app is not correctly inicializate. There are a TimeoutException: " + n.getMessage());

}catch (Exception ex) {

e.addStep(test, "FAIL", driverChrome, "Error in chrome: " + ex.getMessage());
e.addStep(test, "FAIL", driverFirefox, "Error in firefox: " + ex.getMessage());
fail("An unexpected exception occurred: " + ex.getMessage());
}
}
Expand Down
11 changes: 4 additions & 7 deletions Tests/OpenviduTests/src/test/java/openViduReactTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import static org.junit.jupiter.api.Assertions.fail;

import java.io.IOException;
import java.time.Duration;
import java.util.List;

Expand Down Expand Up @@ -100,7 +99,7 @@ void setup() {
* Description: Join the session and verification that both browsers are inside the session
*/
@Test
void T001_JoinSession() throws IOException {
void T001_JoinSession(){

TESTNAME = new Throwable().getStackTrace()[0].getMethodName();
test = e.startTest(TESTNAME, "Join the session and verifies that the two browsers are inside the session", extentReports);
Expand Down Expand Up @@ -165,7 +164,7 @@ void T001_JoinSession() throws IOException {
* Description: verification that the video is playing property and both browsers leaves the session correctly
*/
@Test
void T002_LeaveSession() throws IOException {
void T002_LeaveSession(){

TESTNAME = new Throwable().getStackTrace()[0].getMethodName();
test = e.startTest(TESTNAME, "Join the session and verifies that the two browsers are inside the session", extentReports);
Expand Down Expand Up @@ -286,7 +285,7 @@ void T002_LeaveSession() throws IOException {
* Description: Joins the session and verifies that the session name is the expected
*/
@Test
void T003_SessionHeader() throws IOException {
void T003_SessionHeader(){

TESTNAME = new Throwable().getStackTrace()[0].getMethodName();
test = e.startTest(TESTNAME, "Joins the session and verifies that the session name is correct", extentReports);
Expand Down Expand Up @@ -339,7 +338,7 @@ void T003_SessionHeader() throws IOException {
* Description: Joins the session and verifies that the chrome participant name is correct
*/
@Test
void T004_ParticipantName() throws IOException {
void T004_ParticipantName(){
TESTNAME = new Throwable().getStackTrace()[0].getMethodName();
test = e.startTest(TESTNAME, "Join the session and verifies that the two browsers are inside the session", extentReports);

Expand All @@ -365,13 +364,11 @@ void T004_ParticipantName() throws IOException {
}catch (TimeoutException n){

e.addStep(test, "FAIL", driverChrome, "Error in chrome: " + n.getMessage());
e.addStep(test, "FAIL", driverFirefox, "Error in firefox: " + n.getMessage());
fail("The app is not correctly inicializate. There are a TimeoutException: " + n.getMessage());

}catch (Exception ex) {

e.addStep(test, "FAIL", driverChrome, "Error in chrome: " + ex.getMessage());
e.addStep(test, "FAIL", driverFirefox, "Error in firefox: " + ex.getMessage());
fail("An unexpected exception occurred: " + ex.getMessage());
}
}
Expand Down
Loading

0 comments on commit a4d7235

Please sign in to comment.