diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java b/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java index 6f7060d..302d385 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java @@ -109,14 +109,17 @@ static void setupAll() { // 28 lines } @BeforeEach - void setup(TestInfo info) throws URISyntaxException, MalformedURLException { //65 lines - log.info("##### Start test: {}" , info.getTestMethod().get().getName()); + void setup(TestInfo info) throws URISyntaxException, MalformedURLException { + if (info.getTestMethod().isPresent()) { + TEST_NAME = info.getTestMethod().get().getName(); + userName=info.getDisplayName().split(",")[2]; + } + log.info("##### Start test: {}" , TEST_NAME); TJOB_NAME = System.getProperty("dirtarget"); - this.user = setupBrowser("chrome", TJOB_NAME + "_" + info.getTestMethod().get().getName(), "Teacher", WAIT_SECONDS); + this.user = setupBrowser("chrome", TJOB_NAME + "-" +TEST_NAME, userName, WAIT_SECONDS); this.driver = this.user.getDriver(); - } protected BrowserUser setupBrowser(String browser, String testName, @@ -127,19 +130,16 @@ protected BrowserUser setupBrowser(String browser, String testName, switch (browser) { case FIREFOX: BROWSER_NAME = FIREFOX; - u = new FirefoxUser(userIdentifier, secondsOfWait, testName, - userIdentifier); + u = new FirefoxUser(userIdentifier, secondsOfWait, testName); break; case EDGE: BROWSER_NAME = EDGE; - u = new EdgeUser(userIdentifier, secondsOfWait, testName, - userIdentifier); + u = new EdgeUser(userIdentifier, secondsOfWait, testName); break; default: BROWSER_NAME = CHROME; - u = new ChromeUser(userIdentifier, secondsOfWait, testName, - userIdentifier); + u = new ChromeUser(userIdentifier, secondsOfWait, testName); } log.info("Navigating to {}", APP_URL); @@ -159,9 +159,9 @@ protected BrowserUser setupBrowser(String browser, String testName, } @AfterEach - void tearDown(TestInfo info) { //13 lines + void tearDown() { //13 lines if (this.user != null) { - log.info("##### Finish test: {} - Driver {}", info.getTestMethod().get().getName(), this.user.getDriver()); + log.info("##### Finish test: {} - Driver {}", TEST_NAME, this.user.getDriver()); log.info("Browser console at the end of the test"); LogEntries logEntries = user.getDriver().manage().logs().get(BROWSER); logEntries.forEach(entry -> log.info("[{}] {} {}", @@ -175,7 +175,7 @@ void tearDown(TestInfo info) { //13 lines } if (this.student != null) { - log.info("##### Finish test: {} - Driver {}", info.getTestMethod().get().getName(), this.student.getDriver()); + log.info("##### Finish test: {} - Driver {}",TEST_NAME, this.student.getDriver()); log.info("Browser console at the end of the test"); LogEntries logEntries = student.getDriver().manage().logs().get(BROWSER); logEntries.forEach(entry -> log.info("[{}] {} {}", diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/common/ChromeUser.java b/src/test/java/com/fullteaching/e2e/no_elastest/common/ChromeUser.java index a64bfec..54cbd95 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/common/ChromeUser.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/common/ChromeUser.java @@ -27,12 +27,9 @@ import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; -import java.text.SimpleDateFormat; import java.time.Duration; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; -import java.util.Arrays; -import java.util.Date; import java.util.HashMap; import java.util.Map; @@ -42,10 +39,9 @@ public class ChromeUser extends BrowserUser { ChromeOptions options = new ChromeOptions(); - public ChromeUser(String userName, int timeOfWaitInSeconds, String testName, String userIdentifier) throws URISyntaxException, MalformedURLException { - super(userName, timeOfWaitInSeconds); + public ChromeUser(String userIdentifier, int timeOfWaitInSeconds, String testName) throws URISyntaxException, MalformedURLException { + super(userIdentifier, timeOfWaitInSeconds); log.info("Starting the configuration of the web browser"); - log.debug(String.format("The Test name is: %s", testName)); LoggingPreferences logPrefs = new LoggingPreferences(); logPrefs.enable(BROWSER, ALL); @@ -65,29 +61,22 @@ public ChromeUser(String userName, int timeOfWaitInSeconds, String testName, Str } else { Map selenoidOptions = new HashMap<>(); log.info("Using the remote WebDriver (Selenoid)"); - SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH:mm"); + DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yy-MM-dd-HH:mm"); + LocalDateTime now = LocalDateTime.now(); + String baseName = System.getProperty("tjob_name") + "-" + dtf.format(now) + "-" + testName + "-" + userIdentifier ; + log.debug("The data of this test are stored into .mp4 and .log files named: {}" , baseName); log.debug("Adding all the extra capabilities needed: {testName,enableVideo,enableVNC,name,enableLog,videoName,screenResolution}"); + //CAPABILITIES FOR SELENOID - selenoidOptions.put("testName", testName + "_" + userIdentifier + "_" + format.format(new Date())); - //CAPABILITIES FOR SELENOID RETORCH + selenoidOptions.put("testName", testName + "-" + userIdentifier + "-" + dtf.format(now)); selenoidOptions.put("enableVideo", true); selenoidOptions.put("enableVNC", true); selenoidOptions.put("name", testName + "-" + userIdentifier); - - DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yy-MM-dd-HH:mm"); - LocalDateTime now = LocalDateTime.now(); - String logName = System.getProperty("tjob_name") + "-" + dtf.format(now) + "-" + testName + "-" + userIdentifier + ".log"; - String videoName = System.getProperty("tjob_name") + "-" + dtf.format(now) + "-" + testName + "-" + userIdentifier + ".mp4"; - log.debug("The data of this test would be stored into: video name: {} and the log name: {} " , videoName,logName); - selenoidOptions.put("enableLog", true); - selenoidOptions.put("logName ", logName); - selenoidOptions.put("videoName", videoName); - + selenoidOptions.put("logName ", baseName + ".log"); + selenoidOptions.put("videoName", baseName + ".mp4"); selenoidOptions.put("screenResolution", "1920x1080x24"); - options.setCapability("selenoid:options", selenoidOptions); - //END CAPABILITIES FOR SELENOID RETORCH log.debug("Configuring the remote WebDriver "); RemoteWebDriver remote = new RemoteWebDriver(new URI("http://selenoid:4444/wd/hub").toURL(), options); diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/common/EdgeUser.java b/src/test/java/com/fullteaching/e2e/no_elastest/common/EdgeUser.java index 3d46ba3..e38ae6a 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/common/EdgeUser.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/common/EdgeUser.java @@ -26,19 +26,17 @@ import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; -import java.text.SimpleDateFormat; import java.time.Duration; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; -import java.util.Date; import java.util.HashMap; import java.util.Map; public class EdgeUser extends BrowserUser { EdgeOptions options = new EdgeOptions(); - public EdgeUser(String userName, int timeOfWaitInSeconds, String testName, String userIdentifier) throws URISyntaxException { - super(userName, timeOfWaitInSeconds); + public EdgeUser(String userIdentifier, int timeOfWaitInSeconds, String testName) throws URISyntaxException, MalformedURLException { + super(userIdentifier, timeOfWaitInSeconds); log.info(String.format("The Test names are: %s", testName)); @@ -52,42 +50,31 @@ public EdgeUser(String userName, int timeOfWaitInSeconds, String testName, Strin if (eusApiURL == null) { this.driver = new EdgeDriver(options); } else { - try { Map selenoidOptions = new HashMap<>(); log.info("Using the remote WebDriver (Selenoid)"); - SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH:mm"); - log.debug("Adding all the extra capabilities needed: {testName,enableVideo,enableVNC,name,enableLog,videoName,screenResolution}"); - - selenoidOptions.put("testName", testName + "_" + userIdentifier + "_" + format.format(new Date())); - //CAPABILITIES FOR SELENOID RETORCH - selenoidOptions.put("enableVideo", true); - selenoidOptions.put("enableVNC", true); - selenoidOptions.put("name", testName + "_" + userIdentifier); DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yy-MM-dd-HH:mm"); LocalDateTime now = LocalDateTime.now(); - String logName = dtf.format(now) + "-" + testName + "-" + userIdentifier + ".log"; - String videoName = dtf.format(now) + "_" + testName + "_" + userIdentifier + ".mp4"; - log.debug("The data of this test would be stored into: video name {} and the log is {}", videoName,logName); + String baseName = System.getProperty("tjob_name") + "-" + dtf.format(now) + "-" + testName + "-" + userIdentifier ; + log.debug("The data of this test are stored into .mp4 and .log files named: {}" , baseName); + log.debug("Adding all the extra capabilities needed: {testName,enableVideo,enableVNC,name,enableLog,videoName,screenResolution}"); + //CAPABILITIES FOR SELENOID + selenoidOptions.put("testName", testName + "-" + userIdentifier + "-" + dtf.format(now)); + selenoidOptions.put("enableVideo", true); + selenoidOptions.put("enableVNC", true); + selenoidOptions.put("name", testName + "-" + userIdentifier); selenoidOptions.put("enableLog", true); - selenoidOptions.put("logName ", logName); - selenoidOptions.put("videoName", videoName); - + selenoidOptions.put("logName ", baseName + ".log"); + selenoidOptions.put("videoName", baseName + ".mp4"); selenoidOptions.put("screenResolution", "1920x1080x24"); - options.setCapability("selenoid:options", selenoidOptions); - //END CAPABILITIES FOR SELENOID RETORCH - - RemoteWebDriver remote = new RemoteWebDriver(new URI(eusApiURL).toURL(), options); + log.debug("Configuring the remote WebDriver "); + RemoteWebDriver remote = new RemoteWebDriver(new URI("http://selenoid:4444/wd/hub").toURL(), options); + log.debug("Configuring the Local File Detector"); remote.setFileDetector(new LocalFileDetector()); - - this.driver = remote; - } catch (MalformedURLException e) { - throw new RuntimeException("Exception creating eusApiURL", e); - } } new WebDriverWait(driver, Duration.ofSeconds(this.timeOfWaitInSeconds)); diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/common/FirefoxUser.java b/src/test/java/com/fullteaching/e2e/no_elastest/common/FirefoxUser.java index 8ca21e4..2700f3c 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/common/FirefoxUser.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/common/FirefoxUser.java @@ -26,18 +26,16 @@ import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; -import java.text.SimpleDateFormat; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; -import java.util.Date; import java.util.HashMap; import java.util.Map; public class FirefoxUser extends BrowserUser { FirefoxOptions options = new FirefoxOptions(); - public FirefoxUser(String userName, int timeOfWaitInSeconds, String testName, String userIdentifier) throws URISyntaxException { - super(userName, timeOfWaitInSeconds); + public FirefoxUser(String userIdentifier, int timeOfWaitInSeconds, String testName) throws URISyntaxException, MalformedURLException { + super(userIdentifier, timeOfWaitInSeconds); //TO-DO Firefox configuration has changed, review it. FirefoxProfile profile = new FirefoxProfile(); // This flag avoids granting the access to the camera @@ -57,50 +55,36 @@ public FirefoxUser(String userName, int timeOfWaitInSeconds, String testName, St options.setCapability("marionette", true); driver = new FirefoxDriver(options); - } else { - try { - Map selenoidOptions = new HashMap<>(); - log.info("Using the remote WebDriver (Selenoid)"); - SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH:mm"); - log.debug("Adding all the extra capabilities needed: {testName,enableVideo,enableVNC,name,enableLog,videoName,screenResolution}"); - - selenoidOptions.put("testName", testName + "_" + userIdentifier + "_" + format.format(new Date())); - //CAPABILITIES FOR SELENOID RETORCH - selenoidOptions.put("enableVideo", true); - selenoidOptions.put("enableVNC", true); - selenoidOptions.put("name", testName + "_" + userIdentifier); - - DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yy-MM-dd-HH:mm"); - LocalDateTime now = LocalDateTime.now(); - String logName = dtf.format(now) + "-" + testName + "-" + userIdentifier + ".log"; - String videoName = dtf.format(now) + "_" + testName + "_" + userIdentifier + ".mp4"; - log.debug("The data of this test would be stored into: video name {} and the log is {}", videoName,logName); - selenoidOptions.put("enableLog", true); - selenoidOptions.put("logName ", logName); - selenoidOptions.put("videoName", videoName); - - selenoidOptions.put("screenResolution", "1920x1080x24"); - - options.setCapability("selenoid:options", selenoidOptions); - - //END CAPABILITIES FOR SELENOID RETORCH - - RemoteWebDriver remote = new RemoteWebDriver(new URI(eusApiURL).toURL(), options); - remote.setFileDetector(new LocalFileDetector()); - - - this.driver = remote; - - remote.setFileDetector(new LocalFileDetector()); - this.driver = remote; - } catch (MalformedURLException e) { - throw new RuntimeException("Exception creating eusApiURL", e); - } + Map selenoidOptions = new HashMap<>(); + log.info("Using the remote WebDriver (Selenoid)"); + + DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yy-MM-dd-HH:mm"); + LocalDateTime now = LocalDateTime.now(); + String baseName = System.getProperty("tjob_name") + "-" + dtf.format(now) + "-" + testName + "-" + userIdentifier ; + log.debug("The data of this test are stored into .mp4 and .log files named: {}", baseName); + log.debug("Adding all the extra capabilities needed: {testName,enableVideo,enableVNC,name,enableLog,videoName,screenResolution}"); + //CAPABILITIES FOR SELENOID + + selenoidOptions.put("testName", testName + "-" + userIdentifier + "-" + dtf.format(now)); + selenoidOptions.put("enableVideo", true); + selenoidOptions.put("enableVNC", true); + selenoidOptions.put("name", testName + "-" + userIdentifier); + selenoidOptions.put("enableLog", true); + selenoidOptions.put("logName ", baseName + ".log"); + selenoidOptions.put("videoName", baseName + ".mp4"); + selenoidOptions.put("screenResolution", "1920x1080x24"); + options.setCapability("selenoid:options", selenoidOptions); + //END CAPABILITIES FOR SELENOID RETORCH + log.debug("Configuring the remote WebDriver "); + RemoteWebDriver remote = new RemoteWebDriver(new URI("http://selenoid:4444/wd/hub").toURL(), options); + log.debug("Configuring the Local File Detector"); + remote.setFileDetector(new LocalFileDetector()); + this.driver = remote; } - this.configureDriver(); } + } \ No newline at end of file diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/common/ForumNavigationUtilities.java b/src/test/java/com/fullteaching/e2e/no_elastest/common/ForumNavigationUtilities.java index 6f4b3d9..bf402ad 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/common/ForumNavigationUtilities.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/common/ForumNavigationUtilities.java @@ -53,7 +53,8 @@ public static List getUserEntries(WebDriver wd, String user_name) { List entries = tab_content.findElements(By.className("entry-title")); for (WebElement entry : entries) { //if username is the publisher of the entry... - entries_titles.add(entry.findElement(FORUM_ENTRY_LIST_ENTRY_TITLE).getText()); + if (entry.getText().contains(user_name)) + entries_titles.add(entry.findElement(FORUM_ENTRY_LIST_ENTRY_TITLE).getText()); } return entries_titles; @@ -64,7 +65,6 @@ public static WebElement getEntry(WebDriver wd, String entry_name) throws Elemen Wait.notTooMuch(wd).until(ExpectedConditions.visibilityOfElementLocated(FORUM_ICON)); WebElement tab_content = CourseNavigationUtilities.getTabContent(wd, FORUM_ICON); - //Wait.notTooMuch(wd).until(ExpectedConditions.visibilityOfElementLocated(By.className("entry-title"))); List entries = tab_content.findElements(By.className("entry-title")); for (WebElement entry : entries) { try { @@ -147,6 +147,7 @@ public static WebDriver newEntry(WebDriver wd, String newEntryTitle, String newE public static List getReplies(WebDriver driver, WebElement comment) { //7 lines log.info("Get all the replies of the selected comment"); List replies = new ArrayList<>(); + Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(FORUM_COMMENT_LIST_COMMENT_DIV)); //get all comment-div List nestedComments = comment.findElements(FORUM_COMMENT_LIST_COMMENT_DIV); //ignore first it is original comment diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/common/SpiderNavigation.java b/src/test/java/com/fullteaching/e2e/no_elastest/common/SpiderNavigation.java index 9a342f8..043a5f5 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/common/SpiderNavigation.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/common/SpiderNavigation.java @@ -37,7 +37,6 @@ public static List getPageLinks(WebDriver wd) { //29 lines String href = a.getAttribute("href"); if ((href != null) && (!href.trim().isEmpty()) && (!href.contains("#")) && isContainedIn(href.trim(), links_href) && href.contains(host)) links.add(a); - } return links; } @@ -101,7 +100,6 @@ private static boolean isContainedIn(String href, Set set) { // 8lines public static Set addNonExistentLink(Set original, String href) { //5lines if ((href != null) && (!href.isEmpty()) && (!href.contains("#")) && isContainedIn(href, original) && href.contains(host)) original.add(href); - return original; } @@ -110,7 +108,6 @@ public static List discardExplored(List new_links, Set e for (String href : new_links) { if ((href != null) && (!href.isEmpty()) && (!href.contains("#")) && isContainedIn(href, explored) && href.contains(host)) withOutExplored.add(href); - } return withOutExplored; } diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedForumTest.java b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedForumTest.java index 4fa355c..d1e37c1 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedForumTest.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedForumTest.java @@ -298,8 +298,6 @@ void forumNewCommentTest(String mail, String password, String role) { // 69+142 * previously created, go to the first and replies to the same comment.After it, we check * that the comment was correctly published. */ - - @Resource(resID = "LoginService", replaceable = {}) @AccessMode(resID = "LoginService", concurrency = 10, sharing = true, accessMode = "READONLY") @Resource(resID = "OpenVidu", replaceable = {"OpenViduMock"}) @@ -323,7 +321,6 @@ void forumNewReply2CommentTest(String mail, String password, String role) { // 6 try { //check if one course have any entry for comment NavigationUtilities.toCoursesHome(driver);//3lines - WebElement course = CourseNavigationUtilities.getCourseByName(driver, courseName);//14 lines course.findElement(COURSE_LIST_COURSE_TITLE).click(); Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.id(TABS_DIV_ID))); @@ -331,7 +328,7 @@ void forumNewReply2CommentTest(String mail, String password, String role) { // 6 assertTrue(ForumNavigationUtilities.isForumEnabled(CourseNavigationUtilities.getTabContent(driver, FORUM_ICON)), "Forum not activated");//2lines List entries_list = ForumNavigationUtilities.getFullEntryList(driver);//6lines WebElement entry; - if (entries_list.size() <= 0) {//if not new entry + if (entries_list.isEmpty()) {//if not new entry newEntryTitle = "New Comment Test " + mDay + mMonth + mYear + mHour + mMinute + mSecond; String newEntryContent = "This is the content written on the " + mDay + " of " + months[mMonth - 1] + ", " + mHour + ":" + mMinute + "," + mSecond; ForumNavigationUtilities.newEntry(driver, newEntryTitle, newEntryContent); //19 lines @@ -352,7 +349,7 @@ void forumNewReply2CommentTest(String mail, String password, String role) { // 6 WebElement textField = driver.findElement(FORUM_COMMENT_LIST_MODAL_NEW_REPLY_TEXT_FIELD); textField.sendKeys(newReplyContent); Click.element(user.getDriver(), FORUM_NEW_COMMENT_MODAL_POST_BUTTON); - + user.waitUntil(ExpectedConditions.invisibilityOfElementLocated(FORUM_COMMENT_LIST_MODAL_NEW_REPLY),"The model is still visible"); user.waitUntil(ExpectedConditions.visibilityOfElementLocated(FORUM_COMMENT_LIST), "The comments are not visible"); user.waitUntil(ExpectedConditions.visibilityOfElementLocated(FORUM_COMMENT_LIST_COMMENT), "The comment list are not visible"); @@ -361,16 +358,14 @@ void forumNewReply2CommentTest(String mail, String password, String role) { // 6 List replies = ForumNavigationUtilities.getReplies(user.getDriver(), comments.get(0)); // 7 lines WebElement newReply = null; for (WebElement reply : replies) { - - reply.findElement(By.cssSelector("#div.col.l11.m11.s11 > div.message-itself")); String text = reply.getText(); - if (text.equals(newReplyContent)) + if (text.contains(newReplyContent)) newReply = reply; } //assert reply assertNotNull(newReply, "Reply not found"); - boolean asserto = newReply.findElement(FORUM_COMMENT_LIST_COMMENT_USER).getText().equals(userName); - assertTrue(asserto, "Bad user in comment"); + boolean isNameEqual = newReply.findElement(FORUM_COMMENT_LIST_COMMENT_USER).getText().equals(userName); + assertTrue(isNameEqual, "Bad user in comment"); //nested reply //assert nested reply } catch (ElementNotFoundException notFoundException) { diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedLinksTests.java b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedLinksTests.java index afe2bc6..7f7b4c8 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedLinksTests.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/LoggedLinksTests.java @@ -23,14 +23,22 @@ class LoggedLinksTests extends BaseLoggedTest { + + + + public LoggedLinksTests() { super(); } + + public static Stream data() throws IOException { return ParameterLoader.getTestUsers(); } + + /** * This test get logged the user and checks the navigation by URL works correctly.First * get all the possible URLS for the current user for after it iterate over them checking diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/UserTest.java b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/UserTest.java index 2b1184a..dd4540e 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/UserTest.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/UserTest.java @@ -34,6 +34,7 @@ public static Stream data() throws IOException { * This test is a simple logging acknowledgement, that checks if the current logged user * was logged correctly */ + @Resource(resID = "LoginService", replaceable = {}) @AccessMode(resID = "LoginService", concurrency = 10, sharing = true, accessMode = "READONLY") @Resource(resID = "OpenVidu", replaceable = {"OpenViduMock"}) diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/media/FullTeachingEndToEndEChatTests.java b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/media/FullTeachingEndToEndEChatTests.java index 16b3a1f..deaa5e7 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/media/FullTeachingEndToEndEChatTests.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/media/FullTeachingEndToEndEChatTests.java @@ -49,7 +49,9 @@ @DisplayName("E2E tests for FullTeaching chat") class FullTeachingEndToEndEChatTests extends BaseLoggedTest { + private final static String STUDENT_BROWSER = "chrome"; + final String studentMail = "student1@gmail.com"; final String studentPass = "pass";