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);