Class 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
    • 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: MethodCall
        Allows 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 ChildrenParam parameter, 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:
        child in class MethodCall
        Parameters:
        child - specifies the method call to be added as child call of this call.
        Returns:
        the current call instance for further configuration.