{
Log.message("-> " + testName);
outputHeader.add(testName);
}
CSVFormatter dataFormatter = new CSVFormatter(outputHeader);
//start working
WorkGroup<Assignment, TestResult> workGroup = new WorkGroup<Assignment, TestResult>();
for(int i = 0; i < config.numberOfWorkers(); i++)
workGroup.addWorker(this.makeGrader(config));
this.listOfAssignment = new LinkedList<Assignment>();
while(true == ca.hasMoreAssignment())
{
Assignment assignment = ca.nextAssignment();
if(null != assignment)
{
this.listOfAssignment().add(assignment);
workGroup.pushWorkData(assignment);
}
}
while(0 < workGroup.currentDataCount())
{
TestResult result = workGroup.popWorkResult();
dataFormatter.addRow(result);
}
System.out.println("============D O N E==============");
return dataFormatter.toString();
}
else
{
throw new Exception("Automark:There is problem with config file");