Package org.apache.jmeter.control

Examples of org.apache.jmeter.control.Controller


        List<Controller> controllersToReinit = pathToRootTraverser.getControllersToRoot();

        // Trigger end of loop condition on all parent controllers of current sampler
        for (Iterator<Controller> iterator = controllersToReinit
                .iterator(); iterator.hasNext();) {
            Controller parentController =  iterator.next();
            if(parentController instanceof AbstractThreadGroup) {
                AbstractThreadGroup tg = (AbstractThreadGroup) parentController;
                tg.startNextLoop();
            } else {
                parentController.triggerEndOfLoop();
            }
        }
        if(transactionSampler!=null) {
            process_sampler(transactionSampler, null, threadContext);
        }
View Full Code Here


   * Get the sampler controller.
   *
   * @return the sampler controller.
   */
  public Controller getSamplerController() {
    Controller c = (Controller) getProperty(MAIN_CONTROLLER).getObjectValue();
    return c;
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see Controller#initialize()
   */
  public void initialize() {
    Controller c = getSamplerController();
    JMeterProperty property = c.getProperty(TestElement.NAME);
    property.setObjectValue(getName()); // Copy our name into that of the controller
    property.setRunningVersion(property.isRunningVersion());// otherwise name reverts
    c.initialize();
  }
View Full Code Here

        List<Controller> controllersToReinit = pathToRootTraverser.getControllersToRoot();
   
        // Trigger end of loop condition on all parent controllers of current sampler
        for (Iterator<Controller> iterator = controllersToReinit
                .iterator(); iterator.hasNext();) {
            Controller parentController =  iterator.next();
            if(parentController instanceof ThreadGroup) {
                ThreadGroup tg = (ThreadGroup) parentController;
                tg.startNextLoop();
            } else {
                parentController.triggerEndOfLoop();
            }
        }
        if(transactionSampler!=null) {
            process_sampler(transactionSampler, null, threadContext);
        }
View Full Code Here

        getSamplerController().removeIterationListener(iterationListener);
    }

    /** {@inheritDoc} */
    public void initialize() {
        Controller c = getSamplerController();
        JMeterProperty property = c.getProperty(TestElement.NAME);
        property.setObjectValue(getName()); // Copy our name into that of the controller
        property.setRunningVersion(property.isRunningVersion());// otherwise name reverts
        c.initialize();
    }
View Full Code Here

                          List<Controller> controllersToReinit = pathToRootTraverser.getControllersToRoot();
 
                          // Trigger end of loop condition on all parent controllers of current sampler
                          for (Iterator<Controller> iterator = controllersToReinit
                                  .iterator(); iterator.hasNext();) {
                              Controller parentController =  iterator.next();
                              if(parentController instanceof ThreadGroup) {
                                  ThreadGroup tg = (ThreadGroup) parentController;
                                  tg.startNextLoop();
                              } else {
                                  parentController.triggerEndOfLoop();
                              }
                          }
                          sam = null;
                          threadContext.getVariables().put(LAST_SAMPLE_OK, TRUE);
                    } else {
View Full Code Here

     * Get the sampler controller.
     *
     * @return the sampler controller.
     */
    public Controller getSamplerController() {
        Controller c = (Controller) getProperty(MAIN_CONTROLLER).getObjectValue();
        return c;
    }
View Full Code Here

        getSamplerController().removeIterationListener(iterationListener);
    }

    /** {@inheritDoc} */
    public void initialize() {
        Controller c = getSamplerController();
        JMeterProperty property = c.getProperty(TestElement.NAME);
        property.setObjectValue(getName()); // Copy our name into that of the controller
        property.setRunningVersion(property.isRunningVersion());// otherwise name reverts
        c.initialize();
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    @Override
    public void initialize() {
        Controller c = getSamplerController();
        JMeterProperty property = c.getProperty(TestElement.NAME);
        property.setObjectValue(getName()); // Copy our name into that of the controller
        property.setRunningVersion(property.isRunningVersion());// otherwise name reverts
        c.initialize();
    }
View Full Code Here

     * Get the sampler controller.
     *
     * @return the sampler controller.
     */
    public Controller getSamplerController() {
        Controller c = (Controller) getProperty(MAIN_CONTROLLER).getObjectValue();
        return c;
    }
View Full Code Here

TOP

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

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.