Class FragmentMethodCall
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.codegeneration.MethodCall
-
- us.abstracta.jmeter.javadsl.core.controllers.FragmentMethodCall
-
- All Implemented Interfaces:
CodeSegment
public class FragmentMethodCall extends MethodCall
Defines a call to a test plan fragment method definition will be used.Fragments method definitions might be the explicitly defined from a test fragment controller or implicitly from module controller target controller.
- Since:
- 1.3
-
-
Field Summary
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCall
INDENT, methodName
-
-
Constructor Summary
Constructors Constructor Description FragmentMethodCall(org.apache.jmeter.testelement.TestElement element, MethodCall methodDefinitionBody, MethodCallContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodCallchild(MethodCall child)Allows adding a child call to this call.Map<String,MethodCall>getMethodDefinitions()-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodCall
buildAssignmentCode, buildCode, buildCode, buildNoMatchingMethodFoundException, buildParamsCode, buildUnsupported, chain, chain, chainComment, chainSize, emptyCall, findParamsMatchingMethod, forStaticMethod, fromBuilderMethod, getImports, getReturnType, getStaticImports, headingComment, isCommented, prependChild, reChain, replaceChild, setCommented, unchain
-
-
-
-
Constructor Detail
-
FragmentMethodCall
public FragmentMethodCall(org.apache.jmeter.testelement.TestElement element, MethodCall methodDefinitionBody, MethodCallContext context)
-
-
Method Detail
-
child
public MethodCall child(MethodCall child)
Description copied from class:MethodCallAllows adding a child call to this call.This method should only be used in seldom scenarios where you need to manually add children calls. In most of the cases this is not necessary, since DSL framework automatically takes care of JMeter children conversion.
If the call defines a
ChildrenParamparameter, then children are just added as parameters of the call. Otherwise, a children method will be looked into the class retunrned by this method, and if there is, then chained into this call and used to register provided child element.Warning: You should only use this method after applying any required chaining.
- Overrides:
childin classMethodCall- Parameters:
child- specifies the method call to be added as child call of this call.- Returns:
- the current call instance for further configuration.
-
getMethodDefinitions
public Map<String,MethodCall> getMethodDefinitions()
- Specified by:
getMethodDefinitionsin interfaceCodeSegment- Overrides:
getMethodDefinitionsin classMethodCall
-
-