From add406a90aaa1ddab97bfc8fc925cb1f3d53353d Mon Sep 17 00:00:00 2001 From: shreyanshc Date: Wed, 10 Dec 2025 20:03:52 +0530 Subject: [PATCH] added support for build name in smartui test --- src/test/java/com/lambdatest/SmartUI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/com/lambdatest/SmartUI.java b/src/test/java/com/lambdatest/SmartUI.java index 6e87dc2..7dd2695 100644 --- a/src/test/java/com/lambdatest/SmartUI.java +++ b/src/test/java/com/lambdatest/SmartUI.java @@ -31,6 +31,9 @@ public void setUp() throws Exception { ltOptions.put("name", "JUnitSampleTest"); ltOptions.put("project", "SmartUI-Junit-Selenium"); //Enter Project name here ltOptions.put("smartUI.project", "Junit-Selenium"); //Enter smartUI Project name here + if(System.getenv("BUILD_NAME")!=null && System.getenv("BUILD_NAME")!=""){ + ltOptions.put("smartUI.build",System.getenv("BUILD_NAME")); + } ltOptions.put("w3c", true); ltOptions.put("plugin", "junit-junit"); browserOptions.setCapability("LT:Options", ltOptions);