Package org.apache.jmeter.engine

Examples of org.apache.jmeter.engine.ReflectionJMeterEngine


  //----- ActionListener interface : start -----

  public void actionPerformed(ActionEvent e)
  {
    String command = e.getActionCommand();
    ReflectionJMeterEngine engine = null;
    GuiPackage guiPackage = null;
    if(catClass.isDebugEnabled())
    {
      catClass.debug("actionPerformed1 : command - " + command);
    }
    if(command.equals(REFLECT))
    {
      guiPackage = GuiPackage.getInstance();
      Collection groups = TestPlan.createTestPlan(null).compileTestPlan();
      engine = new ReflectionJMeterEngine();
      for(Iterator i = groups.iterator(); i.hasNext();)
      {
        ThreadGroup tg = (ThreadGroup)i.next();
        if(catClass.isDebugEnabled())
        {
          catClass.debug("actionPerformed1 : threadgroup - " + tg);
        }
        engine.addThreadGroup(tg);
      }
      guiPackage.getMainFrame().setRunning(true);
      model.setReflectionStatus(true);
      engine.runTest();
      guiPackage.getMainFrame().setRunning(false);
      model.setReflectionStatus(false);
      updateGui();
    }
    if(command.equals(INVOKE))
View Full Code Here

TOP

Related Classes of org.apache.jmeter.engine.ReflectionJMeterEngine

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.