endTime = startTime;
TestFinderInterface testFinder = new GenericTestFinder(parent.getProperties());
testFinder.setProjectRoot(rootDirectory);
ParserInterface parser;
for(int i = 0; ((i < runList.size())&&(running)); i++) {
runProgress = i;
test = (TestSpecification)runList.get(i);
parser = testFinder.getParser(new File(test.getTestSpecPath()));
if (parser==null) {
System.out.println("No test finder registered for "+test.getTestSpecPath());
}
else {
parser.prepare(parent.getProjectResultsDirectory());
parser.setStatusLabel(parent.getParserStatusLabel());
test.clearTraceFiles(parent.getProjectResultsDirectory());
test.setStatus(ProtocolConstants.RUNNING);
parent.updateTest(test,inEvaluationMode());
if (inEvaluationMode()) {
parent.updateStatus(Resources.getString("startParse")+" "+test.getTestName(),1);
test.parseTest(parent.getProjectResultsDirectory(),
parent.getProperties(),
parser);
}
else {
parent.updateStatus(Resources.getString("running")+" "+test.getTestName(),1);
test.runTest(parent.getProjectResultsDirectory(),
parent.getProperties(),
parser);
}
endTime = new Date();
parent.updateTest(test,inEvaluationMode());
parser.finish();
}
}
if (running) {
parent.updateStatus(Resources.getString("done"),0);