From e538ae6fd1e13c7cf767a8e6655ab329baa1bb0d Mon Sep 17 00:00:00 2001 From: shreyanshc Date: Wed, 10 Dec 2025 20:13:18 +0530 Subject: [PATCH] added support for build name in smartui sample --- src/test/java/com/lambdatest/TestNGSmartUI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/com/lambdatest/TestNGSmartUI.java b/src/test/java/com/lambdatest/TestNGSmartUI.java index 70b43e8..5d4c2f6 100644 --- a/src/test/java/com/lambdatest/TestNGSmartUI.java +++ b/src/test/java/com/lambdatest/TestNGSmartUI.java @@ -37,6 +37,9 @@ public void setup(Method m, ITestContext ctx) throws MalformedURLException { caps.setCapability("name", m.getName() + " - " + this.getClass().getName()); caps.setCapability("plugin", "git-testng"); caps.setCapability("smartUI.project", "testng-smartui-web-project"); + if(System.getenv("BUILD_NAME")!=null && System.getenv("BUILD_NAME")!=""){ + caps.setCapability("smartUI.build",System.getenv("BUILD_NAME")); + } caps.setCapability("selenium_version", "4.8.0"); if (githubURL != null) {