Package org.apache.jmeter.control

Examples of org.apache.jmeter.control.LoopController


        }
    }

    /* Implements JMeterGUIComponent.createTestElement() */
    public TestElement createTestElement() {
        LoopController lc = new LoopController();
        modifyTestElement(lc);
        return lc;
    }
View Full Code Here


  /************************************************************
   *  !ToDo (Constructor description)
   ***********************************************************/
  public ThreadGroup()
  {
    control = new LoopController();
    ((LoopController)control).setContinueForever(false);
  }
View Full Code Here

   *@param  out                      Description of Parameter
   *@exception  java.io.IOException  Description of Exception
   */
  public void save(Saveable cont, Writer out) throws java.io.IOException
  {
    LoopController controller = (LoopController) cont;
    writeMainTag(out, controller);
    writeSubElements(controller, out);
    out.write("</LoopController>");
  }
View Full Code Here

    }

    /* Implements JMeterGUIComponent.createTestElement() */
    public TestElement createTestElement()
    {
        LoopController lc = new LoopController();
        modifyTestElement(lc);
        return lc;
    }
View Full Code Here

        // Change the ThreadGroup looping to 1 'cos you only need to
        // run the JNDISampler once to do reflection
        // Ensure that sampleController of ThreadGroup is a LoopController
        // which is a certainty but still in case things change in the future
        // this should flag it
        LoopController lc = null;
        if(control instanceof LoopController)
        {
          lc = (LoopController)control;
          lcLoops = lc.getLoops();
          lcContinueForever = lc.getContinueForever();
          lc.setContinueForever(false);
    lc.setLoops(1);
          thisThreadGroup.setSamplerController(lc);
        }
        runThis = false;
        jMeterThread = new JMeterThread(thisThreadGroup);
        Thread newThread = new Thread(jMeterThread);
        newThread.start();
        try
        {
          newThread.join();
        }
        catch(InterruptedException e)
        {
          catClass.error(e);
          System.out.println(e);
        }
        lc.setContinueForever(lcContinueForever);
        lc.setLoops(lcLoops);
        thisThreadGroup.setSamplerController(lc);
      }
    }
    catClass.debug("End : runTest1");
  }
View Full Code Here

   *
   *@return   !ToDo (Return description)
   ***************************************/
  public TestElement createTestElement()
  {
    LoopController lc = new LoopController();
    configureTestElement(lc);
    if(loops.getText().length() > 0)
    {
      lc.setLoops(Integer.parseInt(loops.getText()));
    }
    else
    {
      lc.setLoops(-1);
    }
    return lc;
  }
View Full Code Here

   *@return   !ToDo (Return description)
   ***************************************/
  public JPanel createControllerPanel()
  {
    loopPanel = new LoopControlPanel(false);
    LoopController looper= (LoopController)loopPanel.createTestElement();
    looper.setLoops(-1);
    loopPanel.configure(looper);
    return loopPanel;
  }
View Full Code Here

    }

    public JPanel createControllerPanel()
    {
        loopPanel = new LoopControlPanel(false);
        LoopController looper = (LoopController) loopPanel.createTestElement();
        looper.setLoops(-1);
        loopPanel.configure(looper);
        return loopPanel;
    }
View Full Code Here

        }
    }

    private JPanel createControllerPanel() {
        loopPanel = new LoopControlPanel(false);
        LoopController looper = (LoopController) loopPanel.createTestElement();
        looper.setLoops(1);
        loopPanel.configure(looper);
        return loopPanel;
    }
View Full Code Here

    }

    /* Implements JMeterGUIComponent.createTestElement() */
    @Override
    public TestElement createTestElement() {
        LoopController lc = new LoopController();
        modifyTestElement(lc);
        return lc;
    }
View Full Code Here

TOP

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

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.