Apache JMeter

org.apache.jmeter.config
Interface ConfigElement

All Superinterfaces:
Cloneable
All Known Implementing Classes:
Arguments, AuthManager, CacheManager, ConfigTestElement, CookieManager, CSVDataSet, DataSourceElement, DNSCacheManager, HeaderManager, HTTPFileArgs, JavaConfig, KeystoreConfig, LDAPArguments, LoginConfig, MongoSourceElement, RandomVariableConfig

public interface ConfigElement
extends Cloneable


Method Summary
 void addConfigElement(ConfigElement config)
          Add a configuration element to this one.
 Object clone()
           
 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.
 

Method Detail

addConfigElement

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.

Parameters:
config - the element to be added to this ConfigElement

expectsModification

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.

Returns:
true if the element expects to be modified over the course of a test run

clone

Object clone()

Apache JMeter

Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.