Class SplitFunction

  • All Implemented Interfaces:
    Function

    public class SplitFunction
    extends AbstractFunction
    Function to split a string into variables

    Parameters:

    • String to split
    • Variable name prefix
    • String to split on (optional, default is comma)

    Returns: the input string

    Also sets the variables:
    • VARNAME - the input string
    • VARNAME_n - number of fields found
    • VARNAME_1..n - fields
    Since:
    2.0.2
    • Constructor Detail

      • SplitFunction

        public SplitFunction()
    • Method Detail

      • getArgumentDesc

        public List<String> getArgumentDesc()
        Return a list of strings briefly describing each parameter your function takes. Please use JMeterUtils.getResString(resource_name) to grab a resource string. Otherwise, your help text will be difficult to internationalize. This list is not optional. If you don't wish to write help, you must at least return a List containing the correct number of blank strings, one for each argument.
        Returns:
        List with brief descriptions for each parameter the function takes