Class JMeter

java.lang.Object
org.apache.jmeter.JMeter
All Implemented Interfaces:
JMeterPlugin

public class JMeter extends Object implements JMeterPlugin
Main JMeter class; processes options and starts the GUI, non-GUI or server as appropriate.
  • Field Details

  • Constructor Details

    • JMeter

      public JMeter()
  • Method Details

    • start

      public void start(String[] args)
      Takes the command line arguments and uses them to determine how to startup JMeter. Called reflectively by NewDriver.main(String[])
      Parameters:
      args - The arguments for JMeter
    • convertSubTree

      @Deprecated public static void convertSubTree(HashTree tree)
      Deprecated.
      This method does not correctly handle a tree with Replaceable controllers that contain NoThreadClone element. Use convertSubTree(HashTree, boolean)
      This function does the following:
      • Remove disabled elements
      • Replace the ReplaceableController with the target subtree
      • Clone the tree to ensure Commonly referenced NoThreadClone elements are cloned
      Parameters:
      tree - The HashTree to convert
    • convertSubTree

      public static HashTree convertSubTree(HashTree tree, boolean cloneAtEnd)
      This function does the following:
      • Remove disabled elements
      • Replace the ReplaceableController with the target subtree
      • If cloneAtEnd is true : Clone the tree to ensure Commonly referenced NoThreadClone elements are cloned
      THIS IS INTERNAL JMETER API and should be used with care
      Parameters:
      tree - The HashTree to convert
      cloneAtEnd - boolean whether we clone the tree at end
      Returns:
      HashTree the output HashTree to use
    • getIconMappings

      public String[][] getIconMappings()
      Specified by:
      getIconMappings in interface JMeterPlugin
    • getResourceBundles

      public String[][] getResourceBundles()
      Specified by:
      getResourceBundles in interface JMeterPlugin
    • isNonGUI

      public static boolean isNonGUI()
      Check if JMeter is running in non-GUI mode.
      Returns:
      true if JMeter is running in non-GUI mode.