Class ConfigTestElement

java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.ConfigTestElement
All Implemented Interfaces:
Serializable, Cloneable, ConfigElement, Searchable, org.apache.jmeter.testelement.TestElement
Direct Known Subclasses:
Arguments, AuthManager, CacheManager, CookieManager, CSVDataSet, DNSCacheManager, HeaderManager, HTTPFileArgs, JavaConfig, KeystoreConfig, LDAPArguments, LoginConfig, MongoSourceElement, RandomVariableConfig

public class ConfigTestElement extends AbstractTestElement implements Serializable, ConfigElement
See Also:
  • Field Details

  • Constructor Details

    • ConfigTestElement

      public ConfigTestElement()
  • Method Details

    • getSchema

      public org.apache.jmeter.config.ConfigTestElementSchema getSchema()
      Specified by:
      getSchema in interface org.apache.jmeter.testelement.TestElement
    • getProps

      public org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends ConfigTestElement,? extends org.apache.jmeter.config.ConfigTestElementSchema> getProps()
      Specified by:
      getProps in interface org.apache.jmeter.testelement.TestElement
    • addTestElement

      public void addTestElement(org.apache.jmeter.testelement.TestElement parm1)
      Description copied from class: AbstractTestElement
      Specified by:
      addTestElement in interface org.apache.jmeter.testelement.TestElement
      Overrides:
      addTestElement in class AbstractTestElement
    • addConfigElement

      public void addConfigElement(ConfigElement config)
      Add a configuration element to this one. This allows config elements to combine and give a "layered" effect. For example, HTTPConfigElements have properties for domain, path, method, and parameters. If element A has everything filled in, but null for domain, and element B is added, which has only domain filled in, then after adding B to A, A will have the domain from B. If A already had a domain, then the correct behavior is for A to ignore the addition of element B.
      Specified by:
      addConfigElement in interface ConfigElement
      Parameters:
      config - the element to be added to this ConfigElement
    • expectsModification

      public boolean expectsModification()
      If your config element expects to be modified in the process of a test run, and you want those modifications to carry over from sample to sample (as in a cookie manager - you want to save all cookies that get set throughout the test), then return true for this method. Your config element will not be cloned for each sample. If your config elements are more static in nature, return false. If in doubt, return false.
      Specified by:
      expectsModification in interface ConfigElement
      Returns:
      true if the element expects to be modified over the course of a test run