From 0eaeef8277b75ccfbc94326d5371b3c5fcdb5892 Mon Sep 17 00:00:00 2001 From: shreyanshc Date: Fri, 5 Dec 2025 17:07:18 +0530 Subject: [PATCH] added support for build name - smartui --- src/test/com/lambdatest/SmartUI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/com/lambdatest/SmartUI.java b/src/test/com/lambdatest/SmartUI.java index 740d7ca..cd6ea75 100644 --- a/src/test/com/lambdatest/SmartUI.java +++ b/src/test/com/lambdatest/SmartUI.java @@ -26,6 +26,9 @@ public void setup() throws MalformedURLException { ltOptions.put("build", "SmartUI-Java-Sample"); ltOptions.put("name", this.getClass().getName()); ltOptions.put("smartUI.project","Java-Selenium"); + if(System.getenv("BUILD_NAME")!=null && System.getenv("BUILD_NAME")!=""){ + ltOptions.put("smartUI.build",System.getenv("BUILD_NAME")); + } capabilities.setCapability("LT:Options", ltOptions); driver = new RemoteWebDriver(new URL(hubURL), capabilities);