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();
engine.configure(tree);
println("Starting the test");
engine.runTest();
}
else
{
String remote_hosts_string =
JMeterUtils.getPropDefault("remote_hosts", "127.0.0.1");
java.util.StringTokenizer st =
new java.util.StringTokenizer(remote_hosts_string, ",");
List engines = new LinkedList();
while (st.hasMoreElements())
{
String el = (String) st.nextElement();
println("Configuring remote engine for "+el);
engines.add(doRemoteInit(el.trim(), tree));
}
println("Starting remote engines");
Iterator iter = engines.iterator();
while (iter.hasNext())
{
engine = (JMeterEngine) iter.next();
engine.runTest();
}
println("Remote engines have been started");
}
}
catch (Exception e)