Class DslWeightedSwitchController.CodeBuilder

    • Constructor Detail

      • CodeBuilder

        public CodeBuilder​(List<Method> builderMethods)
    • Method Detail

      • buildMethodCall

        protected MethodCall buildMethodCall​(com.blazemeter.jmeter.control.WeightedSwitchController testElement,
                                             MethodCallContext context)
        Description copied from class: SingleTestElementCallBuilder
        Builds a MethodCall for the given test element.

        When this method is invoked, the test element has already been checked to be of the proper type, so no further checking in that regard should be needed.

        Specified by:
        buildMethodCall in class SingleTestElementCallBuilder<com.blazemeter.jmeter.control.WeightedSwitchController>
        Parameters:
        testElement - is the test element instance to build the MethodCall for.
        context - is the context of the method call.
        Returns:
        the generated MethodCall instance.
      • extractSamplersWeights

        public Map<String,​Long> extractSamplersWeights​(com.blazemeter.jmeter.control.WeightedSwitchController testElement)