From b41c3cada6c90ef73a6bfe46c00072430d340892 Mon Sep 17 00:00:00 2001 From: Augusto Date: Wed, 27 Dec 2023 21:30:44 +0100 Subject: [PATCH] Some little changes to see if empty test dissapear --- .../com/fullteaching/e2e/no_elastest/common/ChromeUser.java | 6 +++--- src/test/resources/inputs/default_user_file.csv | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 35a6eb6..65f0a85 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 @@ -76,16 +76,16 @@ public ChromeUser(String userName, int timeOfWaitInSeconds, String testName, Str 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())); + 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); + 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"; + String videoName = dtf.format(now) + "-" + testName + "-" + userIdentifier + ".mp4"; log.debug("The data of this test would be stored into: video name " + videoName + " and the log is " + logName); selenoidOptions.put("enableLog", true); diff --git a/src/test/resources/inputs/default_user_file.csv b/src/test/resources/inputs/default_user_file.csv index 9988978..5eab4fe 100644 --- a/src/test/resources/inputs/default_user_file.csv +++ b/src/test/resources/inputs/default_user_file.csv @@ -1,2 +1,2 @@ teacher@gmail.com,pass,TEACHER,chrome -student1@gmail.com,pass,STUDENT,chrome +student1@gmail.com,pass,STUDENT,chrome \ No newline at end of file