Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #337 from sbtqa/more-readable-video-name
Browse files Browse the repository at this point in the history
More readable video name
  • Loading branch information
kosteman authored Apr 13, 2021
2 parents a8653b5 + b09fbea commit b395d74
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class SelenoidCapabilitiesParser implements CapabilitiesParser {
private static final Logger LOG = LoggerFactory.getLogger(SelenoidCapabilitiesParser.class);

private static final Configuration PROPERTIES = Configuration.create();
private static final String UNIQUENAME_FORMAT = new SimpleDateFormat("dd.MM.yyyy_hh:mm:ss").format(new Date()) + "_" + UUID.randomUUID().toString() + "_%s";
private static final String UNIQUE_NAME_FORMAT = new SimpleDateFormat("dd.MM.yyyy_hh:mm:ss").format(new Date()) + "_%s_" + UUID.randomUUID().toString();

private DesiredCapabilities capabilities = new DesiredCapabilities();

Expand All @@ -40,8 +40,8 @@ public DesiredCapabilities parse() {
setCapability("videoScreenSize", PROPERTIES.getSelenoidVideoScreenSize());
setCapability("videoFrameRate", PROPERTIES.getSelenoidVideoFrameRate());
setCapability("name", name);
setCapability("logName", logName, UNIQUENAME_FORMAT);
setCapability("videoName", videoName, UNIQUENAME_FORMAT);
setCapability("logName", logName, UNIQUE_NAME_FORMAT);
setCapability("videoName", videoName, UNIQUE_NAME_FORMAT);
setCapability("timeZone", PROPERTIES.getSelenoidTimeZone());
setCapability("hostsEntries", PROPERTIES.getSelenoidHostEntries());
setCapability("applicationContainers", PROPERTIES.getSelenoidApplicationContainers());
Expand Down

0 comments on commit b395d74

Please sign in to comment.