Skip to content

Commit 7b76012

Browse files
fix_buildname (#11)
1 parent 6162c09 commit 7b76012

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/com/browserstack/test/suites/TestBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class TestBase {
3030
protected ThreadLocal<WebDriver> driver = new ThreadLocal<>();
3131
private static final String DOCKER_SELENIUM_HUB_URL = "http://localhost:4444/wd/hub";
3232
private static final String BROWSERSTACK_HUB_URL = "https://hub.browserstack.com/wd/hub";
33+
private static final long TIMESTAMP = new Date().getTime();
3334
private Local local;
3435
protected WebDriverWait wait;
3536

@@ -52,7 +53,7 @@ public void setUp(@Optional("on-prem") String environment, @Optional("single") S
5253

5354
Map<String, String> commonCapabilities = (Map<String, String>) envs.get("common_caps");
5455
commonCapabilities.put("name", m.getName());
55-
commonCapabilities.put("build", commonCapabilities.get("build") + " - " + new Date().getTime());
56+
commonCapabilities.put("build", commonCapabilities.get("build") + " - " + TIMESTAMP);
5657
Map<String, String> envCapabilities = (Map<String, String>) ((org.json.simple.JSONArray) envs.get("env_caps")).get(env_cap_id);
5758
Map<String, String> localCapabilities = (Map<String, String>) envs.get("local_binding_caps");
5859

0 commit comments

Comments
 (0)