diff --git a/pom.xml b/pom.xml index 9edeb8a..d785aa5 100644 --- a/pom.xml +++ b/pom.xml @@ -150,9 +150,9 @@ - + ${basedir}/target/test-classes/${dirtarget} - + ${basedir}/target/classes/${dirtarget} 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 68377ba..9863d0e 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 @@ -108,10 +108,10 @@ static void setupAll() { // 28 lines @BeforeEach void setup(TestInfo info) { //65 lines - log.info("##### Start test: {}" , info.getDisplayName()); + log.info("##### Start test: {}" , info.getTestMethod().get().getName()); TJOB_NAME = System.getProperty("dirtarget"); - teacher = setupBrowser("chrome", TJOB_NAME + "_" + info.getDisplayName(), "Teacher", WAIT_SECONDS); + teacher = setupBrowser("chrome", TJOB_NAME + "_" + info.getTestMethod().get().getName(), "Teacher", WAIT_SECONDS); driver = teacher.getDriver(); @@ -157,9 +157,9 @@ protected BrowserUser setupBrowser(String browser, String testName, } @AfterEach - void tearDown(TestInfo testInfo) { //13 lines + void tearDown(TestInfo info) { //13 lines if (this.teacher != null) { - log.info("##### Finish test: {} - Driver {}", testInfo.getDisplayName(), this.teacher.getDriver()); + log.info("##### Finish test: {} - Driver {}", info.getTestMethod().get().getName(), this.teacher.getDriver()); log.info("Browser console at the end of the test"); LogEntries logEntries = teacher.getDriver().manage().logs().get(BROWSER); logEntries.forEach(entry -> log.info("[{}] {} {}", @@ -173,7 +173,7 @@ void tearDown(TestInfo testInfo) { //13 lines } if (this.student != null) { - log.info("##### Finish test: {} - Driver {}", testInfo.getDisplayName(), this.student.getDriver()); + log.info("##### Finish test: {} - Driver {}", info.getTestMethod().get().getName(), 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 334bc1b..e9d8f27 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 @@ -44,7 +44,7 @@ public class ChromeUser extends BrowserUser { public ChromeUser(String userName, int timeOfWaitInSeconds, String testName, String userIdentifier) { super(userName, timeOfWaitInSeconds); log.info("Starting the configuration of the web browser"); - log.debug(String.format("The Test names are: %s", testName)); + log.debug(String.format("The Test name is: %s", testName)); LoggingPreferences logPrefs = new LoggingPreferences(); logPrefs.enable(BROWSER, ALL); 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 d4d7529..808004a 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,8 +34,6 @@ 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"})