Skip to content

Commit 0ce7d50

Browse files
committed
Sample Tests
1 parent 0d7ae21 commit 0ce7d50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class ParallelJenkinsTestThreadControl {
3939

4040
public static void main(String[] args) {
4141

42-
System.setProperty("threadcount", threadcount);
42+
System.setProperty("threadcount", System.getProperty("threadcount"));
4343

4444

4545
TestNG testng = new TestNG();
@@ -71,7 +71,7 @@ public void test(String param, Method method) throws Exception {
7171
*
7272
* Reporter.log("threadCount" + threadCount);
7373
*/
74-
Reporter.log("threadcount" + threadcount);
74+
Reporter.log("threadcount" + System.getProperty("threadcount"));
7575
Reporter.log("Running with the value (" + param + ") on thread [" + Thread.currentThread().getId() + "]");
7676
this.setUp(browser, version, os, resValue, method.getName());
7777

0 commit comments

Comments
 (0)