Skip to content

Commit

Permalink
Some little changes to see if empty test dissapear
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Dec 27, 2023
1 parent aeb5c06 commit b41c3ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/inputs/default_user_file.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[email protected],pass,TEACHER,chrome
[email protected],pass,STUDENT,chrome
[email protected],pass,STUDENT,chrome

0 comments on commit b41c3ca

Please sign in to comment.