Package org.apache.jmeter.control

Examples of org.apache.jmeter.control.TestPlan


      ListedHashTree tree = handler.getDataTree();
      println("Created the tree successfully");

      NonGuiTree ngt = new NonGuiTree();
      ngt.addSubTree(tree, null);
      TestPlan tp = (TestPlan)ngt.compileComponent(ngt.getChildAt(0));
      println("Compiled the Test Plan successfully");

      Collection groups = tp.getThreadGroups();
      StandardJMeterEngine engine = new StandardJMeterEngine();
      for (Iterator i = groups.iterator(); i.hasNext(); ) {
        println("Adding a threadgroup");
        engine.addThreadGroup((ThreadGroup) i.next());
      }
View Full Code Here


   *@exception  java.io.IOException  !ToDo (Exception description)
   ***********************************************************/
  public void save(Saveable s, Writer out) throws java.io.IOException
  {
    out.write("<TestPlan>\n");
    TestPlan save = (TestPlan)s;
    JMeterHandler.writeThreadGroups(save.getThreadGroups(), out);
    JMeterHandler.writeConfigElements(save.getConfigElements(), out);
    out.write("</TestPlan>\n");
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.control.TestPlan

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.