1010import java .util .ArrayList ;
1111import java .util .Iterator ;
1212import java .util .List ;
13+ import java .util .Properties ;
1314
1415import org .json .JSONArray ;
1516import org .json .JSONObject ;
@@ -34,11 +35,11 @@ public class ParallelJenkinsTestThreadControl {
3435public static String status = "failed" ;
3536public String buildTag = System .getenv ("LT_BUILD_NAME" );
3637public String gridURL = System .getenv ("LT_GRID_URL" );
37- public static String threadCount = System .getenv ("threadCount " );
38+ public static String threadcount = System .getenv ("threadcount " );
3839
3940public static void main (String [] args ) {
4041
41- System .setProperty ("threadcount" , threadCount );
42+ System .setProperty ("threadcount" , threadcount );
4243
4344
4445 TestNG testng = new TestNG ();
@@ -61,7 +62,14 @@ public void test(String param, Method method) throws Exception {
6162String version = envDeatails [2 ];
6263String browser = envDeatails [0 ];
6364String 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+
6471Reporter .log ("threadCount" + threadCount );
72+ Reporter .log ("threadcount" + threadcount );
6573Reporter .log ("Running with the value (" + param + ") on thread [" + Thread .currentThread ().getId () + "]" );
6674this .setUp (browser , version , os , resValue , method .getName ());
6775
0 commit comments