10
10
import java .util .ArrayList ;
11
11
import java .util .Iterator ;
12
12
import java .util .List ;
13
+ import java .util .Properties ;
13
14
14
15
import org .json .JSONArray ;
15
16
import org .json .JSONObject ;
@@ -34,11 +35,11 @@ public class ParallelJenkinsTestThreadControl {
34
35
public static String status = "failed" ;
35
36
public String buildTag = System .getenv ("LT_BUILD_NAME" );
36
37
public String gridURL = System .getenv ("LT_GRID_URL" );
37
- public static String threadCount = System .getenv ("threadCount " );
38
+ public static String threadcount = System .getenv ("threadcount " );
38
39
39
40
public static void main (String [] args ) {
40
41
41
- System .setProperty ("threadcount" , threadCount );
42
+ System .setProperty ("threadcount" , threadcount );
42
43
43
44
44
45
TestNG testng = new TestNG ();
@@ -61,7 +62,14 @@ public void test(String param, Method method) throws Exception {
61
62
String version = envDeatails [2 ];
62
63
String browser = envDeatails [0 ];
63
64
String resValue = envDeatails [3 ];
65
+
66
+ java .io .InputStream is = this .getClass ().getResourceAsStream ("my.properties" );
67
+ java .util .Properties p = new Properties ();
68
+ p .load (is );
69
+ String threadCount = p .getProperty ("threadcount" );
70
+
64
71
Reporter .log ("threadCount" + threadCount );
72
+ Reporter .log ("threadcount" + threadcount );
65
73
Reporter .log ("Running with the value (" + param + ") on thread [" + Thread .currentThread ().getId () + "]" );
66
74
this .setUp (browser , version , os , resValue , method .getName ());
67
75
0 commit comments