I have set of suites which run in sequential order one after an another handled by a for loop. I would want to do run the available TestSuites in parallel concurrently by just using coreJava. Could any one help me out on how to do it ?
Xls_Reader suiteLauncherXls=new Xls_Reader("src/XlsFiles/SuiteLauncher.xlsx");
int RowCount=suiteLauncherXls.getRowCount(Constants.TEST_SUITE_SHEET);
for(int suiteCount = 2; suiteCount <= RowCount; suiteCount++)
{
SUITE_ID = suiteLauncherXls.getCellData(Constants.TEST_SUITE_SHEET, Constants.Test_Suite_ID, suiteCount);
RUNMODE = suiteLauncherXls.getCellData(Constants.TEST_SUITE_SHEET, Constants.COL_HEAD_RUNMODE, suiteCount);
NODEPC = suiteLauncherXls.getCellData(Constants.TEST_SUITE_SHEET, Constants.COL_HEAD_NODEPC, suiteCount);
if(isRunableMode(RUNMODE))
{
// Report file location declaration
ExReport = new ExtentReports(System.getProperty("user.dir")+"\\src\\TestReports\\"+SUITE_ID+"\\HTMLReport.html");
nodeURL = "http://" + NODEPC + ":5566/wd/hub";
//Initiating Suite File
String SuiteFile = "src/XlsFiles/"+SUITE_ID+"/Suite.xlsx";
suiteXLS = new Xls_Reader(SuiteFile);
DriverScript test = new DriverScript();
test.start();
//ExReport.endTest(ExTest);
ExReport.flush();
sendAutomationReport();
}
}
}