Skip to content

Commit 8e9bd25

Browse files
committed
Sample Tests
1 parent c2f07bb commit 8e9bd25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/lambdatest/Tests/SingleJenkinsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class SingleJenkinsTest {
3636
public void setUp(ITestContext context) throws Exception {
3737
context.getSuite().getXmlSuite().setThreadCount(10);
3838
long id = Thread.currentThread().getId();
39-
System.out.println("Before test-method. Thread id is: " + id);
39+
Reporter.log("Before test-method. Thread id is: " + id);
4040
DesiredCapabilities capability = new DesiredCapabilities();
4141
capability.setCapability(CapabilityType.BROWSER_NAME, browser);
4242
capability.setCapability(CapabilityType.VERSION, version);
@@ -57,7 +57,7 @@ public void setUp(ITestContext context) throws Exception {
5757
public void test() {
5858

5959
long id = Thread.currentThread().getId();
60-
System.out.println("Simple test-method One. Thread id is: " + id);
60+
Reporter.log("Simple test-method One. Thread id is: " + id);
6161

6262
// Launch the app
6363
driver.get("https://lambdatest.github.io/sample-todo-app/");
@@ -85,7 +85,7 @@ public void test() {
8585
@AfterTest
8686
public void afterTest() {
8787
long id = Thread.currentThread().getId();
88-
System.out.println("After test-method. Thread id is: " + id);
88+
Reporter.log("After test-method. Thread id is: " + id);
8989
((JavascriptExecutor) driver).executeScript("lambda-status=" + status + "");
9090
driver.quit();
9191
}

0 commit comments

Comments
 (0)