Wrapper
TestElement use Lombok to generate POJO with Builder.
Each test element use the same name of the origin test element but with suffix Wrapper.
Wrapper can be instantiated directly but it's recommended to use builder.
Node types#
- Test Plan : Test Plan has the wrapper TestPlanWrapper.
- Thread Group : All Thread group implements interface ThreadWrapper.
- Samplers : All samplers implements interface SamplerWrapper.
- Logic Controllers : All controller implements interface ControllerWrapper.
- Listeners : All listeners implements interface SampleListenerWrapper.
- Configuration Elements : All configuration elements implements interface ConfigElementWrapper.
- Assertions : All Assertions implements interface AssertionWrapper.
- Timers : All timers implements interface timers.
- Pre-Processors :All Pre-Processors implements interface PreProcessorWrapper.
- Post-Processors : All Post-Processors implements interface PostProcessorWrapper.
#
BuilderJMC is based on Lombok SuperBuilder to generate builder.
#
BuilderYou can get the builder of component calling the static method builder() on type.
#
Simple AttributeIn builder all simple attribute has a prefix with*.
#
Collections AttributeAll list attributes has a prefix add*, to add values to the list value.
- add{Attributename}( oneValue )
- add{Attributename}s( listValue )
#
Simplified add*For same simple object a simplified add method is present, for example : argument composed by (key, value) we an found the following method addArgument( String key,String value )
#
Attributes#
ChildrenChildren attribute contain the list of children of testElement they are equivalent the children nodes in GUI. addChild/addChildren are not available but depends of node type the correct method is available :
Methods | Available for |
---|---|
addThread/addThreads | TestPlan |
addController/addController | Thread/Controller |
addSampler/addSampler | Thread/Controller |
addConfig/addConfigs | TestPlan/Thread/Controller/Sampler |
addPreProcessor/addPreProcessors | TestPlan/Thread/Controller/Sampler |
addPostProcessor/addPostProcessors | TestPlan/Thread/Controller/Sampler |
addTimer/addTimers | TestPlan/Thread/Controller/Sampler |
addListener/addListeners | TestPlan/Thread/Controller/Sampler |
addPostProcessor/addPostProcessors | TestPlan/Thread/Controller/Sampler |
addTimer/addTimers | TestPlan/Thread/Controller/Sampler |
addAssertion/addAssertions | TestPlan/Thread/Controller/Sampler |
#
TagsTags are string value that can be used to identify a testElement or group of testElements, they an be used with interceptors