Skip to content

Commit 7e976fd

Browse files
committed
Paramterized build name
1 parent 3e99e19 commit 7e976fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/lambdatest/SampleAutomation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException {
3333
caps.setCapability("platform", "win10");
3434
caps.setCapability("browserName", "chrome");
3535
caps.setCapability("version", "latest");
36-
caps.setCapability("build", "TestNG With Java");
36+
caps.setCapability("build", System.getProperty("Build_Name") == null ? m.getName() + " - " + this.getClass().getName() : System.getProperty("Build_Name"));
3737
caps.setCapability("name", m.getName() + " - " + this.getClass().getName());
3838
caps.setCapability("plugin", "git-testng");
3939

0 commit comments

Comments
 (0)