Skip to content

Commit e538ae6

Browse files
added support for build name in smartui sample
1 parent 1f3fb36 commit e538ae6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/com/lambdatest/TestNGSmartUI.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException {
3737
caps.setCapability("name", m.getName() + " - " + this.getClass().getName());
3838
caps.setCapability("plugin", "git-testng");
3939
caps.setCapability("smartUI.project", "testng-smartui-web-project");
40+
if(System.getenv("BUILD_NAME")!=null && System.getenv("BUILD_NAME")!=""){
41+
caps.setCapability("smartUI.build",System.getenv("BUILD_NAME"));
42+
}
4043
caps.setCapability("selenium_version", "4.8.0");
4144

4245
if (githubURL != null) {

0 commit comments

Comments
 (0)