Package org.apache.jmeter.engine

Examples of org.apache.jmeter.engine.StandardJMeterEngine$StopTest


            List<JMeterEngine> engines = new LinkedList<JMeterEngine>();
            tree.add(tree.getArray()[0], new ListenToTest(parent, (remoteStart && remoteStop) ? engines : null));
            println("Created the tree successfully using "+testFile);
            JMeterEngine engine = null;
            if (!remoteStart) {
                engine = new StandardJMeterEngine();
                engine.configure(tree);
                long now=System.currentTimeMillis();
                println("Starting the test @ "+new Date(now)+" ("+now+")");
                engine.runTest();
            } else {
View Full Code Here


      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());
      }
      println("Starting the test");
      engine.runTest();

    }catch(Exception e){
      System.out.println("Error in NonGUIDriver" + e.getMessage());
      e.printStackTrace();
    }
View Full Code Here

  public TextDriver(String outfile, String url, String propsFile) throws MalformedURLException
  {
    JMeterUtils.getProperties(propsFile);
    SamplerController sc = createTestSample(url);
    ol = new OutputListener(outfile);
    engine = new StandardJMeterEngine();
    ThreadGroup tGroup = new ThreadGroup();
    tGroup.addListener(ol);
    tGroup.addSamplerController(sc);
    tGroup.setName("Group 1");
    tGroup.setNumThreads(1);
View Full Code Here

    }

    protected void startEngine()
    {
        GuiPackage gui = GuiPackage.getInstance();
        engine = new StandardJMeterEngine();
        HashTree testTree = gui.getTreeModel().getTestPlan();
        convertSubTree(testTree);
        DisabledComponentRemover remover =
            new DisabledComponentRemover(testTree);
        testTree.traverse(remover);
View Full Code Here

            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
View Full Code Here

    }

    protected void startEngine()
    {
        GuiPackage gui = GuiPackage.getInstance();
        engine = new StandardJMeterEngine();
        HashTree testTree = gui.getTreeModel().getTestPlan();
        convertSubTree(testTree);
        DisabledComponentRemover remover =
            new DisabledComponentRemover(testTree);
        testTree.traverse(remover);
View Full Code Here

            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
View Full Code Here

        logger.setFilename(logFile);
        tree.add(tree.getArray()[0],logger);
      }
      tree.add(tree.getArray()[0],new ListenToTest());     
      println("Created the tree successfully");
      StandardJMeterEngine engine = new StandardJMeterEngine();
      engine.configure(tree);
      println("Starting the test");
      engine.runTest();

    } catch (Exception e) {
      System.out.println("Error in NonGUIDriver" + e.getMessage());
      log.error("",e);
    }
View Full Code Here

   *
   ***************************************/
  protected void startEngine()
  {
    GuiPackage gui = GuiPackage.getInstance();
    engine = new StandardJMeterEngine();
    HashTree testTree = gui.getTreeModel().getTestPlan();
    convertSubTree(testTree);
    testTree.add(testTree.getArray()[0],gui.getMainFrame());
    engine.configure(testTree);
    try {
View Full Code Here

        JMeter.convertSubTree(testTree);
        testTree.add(testTree.getArray()[0], gui.getMainFrame());
        log.debug("test plan before cloning is running version: "
                + ((TestPlan) testTree.getArray()[0]).isRunningVersion());
        TreeCloner cloner = cloneTree(testTree, ignoreTimer);
        engine = new StandardJMeterEngine();
        engine.configure(cloner.getClonedTree());
        try {
            engine.runTest();
        } catch (JMeterEngineException e) {
            JOptionPane.showMessageDialog(gui.getMainFrame(), e.getMessage(),
View Full Code Here

TOP

Related Classes of org.apache.jmeter.engine.StandardJMeterEngine$StopTest

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.