Package org.apache.jmeter.threads

Examples of org.apache.jmeter.threads.ThreadGroup


    int groupCount = 0;
        JMeterContextService.clearTotalThreads();
        startingGroups = true;
    while (iter.hasNext()) {
      groupCount++;
      ThreadGroup group = (ThreadGroup) iter.next();
      int numThreads = group.getNumThreads();
            JMeterContextService.addTotalThreads(numThreads);
      boolean onErrorStopTest = group.getOnErrorStopTest();
      boolean onErrorStopThread = group.getOnErrorStopThread();
      String groupName = group.getName();
      int rampUp = group.getRampUp();
      float perThreadDelay = ((float) (rampUp * 1000) / (float) numThreads);
      log.info("Starting " + numThreads + " threads for group " + groupName + ". Ramp up = " + rampUp + ".");

      if (onErrorStopTest) {
        log.info("Test will stop on error");
View Full Code Here


  public Collection getMenuCategories() {
    return null;
  }

  public TestElement createTestElement() {
    ThreadGroup tg = new ThreadGroup();
    modifyTestElement(tg);
    return tg;
  }
View Full Code Here

  public Collection getMenuCategories() {
    return null;
  }

  public TestElement createTestElement() {
    ThreadGroup tg = new ThreadGroup();
    modifyTestElement(tg);
    return tg;
  }
View Full Code Here

    schcdule_run = true;
    JMeterContextService.getContext().setSamplingStarted(true);
    int groupCount = 0;
    while (iter.hasNext()) {
      groupCount++;
      ThreadGroup group = (ThreadGroup) iter.next();
      int numThreads = group.getNumThreads();
      boolean onErrorStopTest = group.getOnErrorStopTest();
      boolean onErrorStopThread = group.getOnErrorStopThread();
      String groupName = group.getName();
      int rampUp = group.getRampUp();
      float perThreadDelay = ((float) (rampUp * 1000) / (float) numThreads);
      threads = new JMeterThread[numThreads];

      log.info("Starting " + numThreads + " threads for group " + groupName + ". Ramp up = " + rampUp + ".");

View Full Code Here

        JMeterContextService.getContext().setSamplingStarted(true);
        int groupCount = 0;
        while (iter.hasNext())
        {
          groupCount++;
            ThreadGroup group = (ThreadGroup) iter.next();
      int numThreads = group.getNumThreads();
      boolean onErrorStopTest = group.getOnErrorStopTest();
      boolean onErrorStopThread = group.getOnErrorStopThread();
      String groupName = group.getName();
      int rampUp = group.getRampUp();
      float perThreadDelay = ((float) (rampUp * 1000) / (float) numThreads);
            threads = new JMeterThread[numThreads];
     
            log.info("Starting " + numThreads + " threads for group "+ groupName
                + ". Ramp up = "+ rampUp + ".");
View Full Code Here

    *@param  atts                     !ToDo (Parameter description)
    *@exception  java.lang.Exception  !ToDo (Exception description)
    ***********************************************************/
   public void setAtts(Attributes atts) throws java.lang.Exception
   {
      group = new ThreadGroup();
      group.setName(atts.getValue("name"));
      group.setProperty(TestElement.GUI_CLASS,
        "org.apache.jmeter.threads.gui.ThreadGroupGui");
      try
      {
View Full Code Here

   *
   *@return   !ToDo (Return description)
   ***************************************/
  public TestElement createTestElement()
  {
    ThreadGroup tg = new ThreadGroup();
    tg.setProperty(TestElement.GUI_CLASS, this.getClass().getName());
    tg.setProperty(TestElement.TEST_CLASS, ThreadGroup.class.getName());
    tg.setSamplerController((LoopController)loopPanel.createTestElement());
    tg.setProperty(TestElement.NAME, namePanel.getName());
    tg.setProperty(ThreadGroup.NUM_THREADS, threadInput.getText());
    tg.setProperty(ThreadGroup.RAMP_TIME, rampInput.getText());
    return tg;
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.threads.ThreadGroup

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.