Package us.abstracta.jmeter.javadsl.http
Class DslCacheManager
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.configs.BaseConfigElement
-
- us.abstracta.jmeter.javadsl.http.AutoEnabledHttpConfigElement
-
- us.abstracta.jmeter.javadsl.http.DslCacheManager
-
- All Implemented Interfaces:
DslConfig,DslTestElement,DslTestPlan.TestPlanChild,BaseSampler.SamplerChild,MultiLevelTestElement,BaseThreadGroup.ThreadGroupChild
public class DslCacheManager extends AutoEnabledHttpConfigElement
Allows configuring caching behavior used by HTTP samplers.This element can only be added as child of test plan, and currently allows only to disable HTTP caching which is enabled by default (emulating browser behavior).
This element has to be added before any http sampler to be considered, and if you add multiple instances of cache manager to a test plan, only the first one will be considered.
- Since:
- 0.17
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDslCacheManager.CodeBuilder
-
Field Summary
-
Fields inherited from class us.abstracta.jmeter.javadsl.http.AutoEnabledHttpConfigElement
enabled
-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
guiClass, name
-
-
Constructor Summary
Constructors Constructor Description DslCacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.jmeter.testelement.TestElementbuildTestElement()DslCacheManagerdisable()disables HTTP caching for the test plan.-
Methods inherited from class us.abstracta.jmeter.javadsl.http.AutoEnabledHttpConfigElement
buildEndListener, buildTreeUnder, getOrCreateContextEntry, registerDependency
-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
buildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGui
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface us.abstracta.jmeter.javadsl.core.DslTestElement
showInGui
-
-
-
-
Method Detail
-
disable
public DslCacheManager disable()
disables HTTP caching for the test plan.- Returns:
- the DslCacheManager to allow fluent API usage.
-
buildTestElement
protected org.apache.jmeter.testelement.TestElement buildTestElement()
- Specified by:
buildTestElementin classBaseTestElement
-
-