}
reader = new FileInputStream(f);
log.info("Loading file: " + f);
HashTree tree = SaveService.loadSubTree(reader);
// Remove the disabled items
// For GUI runs this is done in Start.java
convertSubTree(tree);
if (logFile != null)
{
ResultCollector logger = new ResultCollector();
logger.setFilename(logFile);
tree.add(tree.getArray()[0], logger);
}
String summariserName=
JMeterUtils.getPropDefault("summariser.name","");//$NON-NLS-1$
if (summariserName.length() > 0){
log.info("Creating summariser <"+summariserName+">");
println( "Creating summariser <"+summariserName+">");
Summariser summer=new Summariser(summariserName);
tree.add(tree.getArray()[0], summer);
}
tree.add(tree.getArray()[0], new ListenToTest());
println("Created the tree successfully");
JMeterEngine engine = null;
if (!remoteStart)
{
engine = new StandardJMeterEngine();