Class ThreadGroupName

java.lang.Object
org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.ThreadGroupName
All Implemented Interfaces:
org.apache.jmeter.functions.Function

@AutoService(org.apache.jmeter.functions.Function.class) public class ThreadGroupName extends org.apache.jmeter.functions.AbstractFunction
Returns Thread Group Name
Since:
5.0
  • Constructor Details

    • ThreadGroupName

      public ThreadGroupName()
  • Method Details

    • execute

      public String execute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) throws org.apache.jmeter.functions.InvalidVariableException
      Get current thread group using sampler's context
      Specified by:
      execute in interface org.apache.jmeter.functions.Function
      Specified by:
      execute in class org.apache.jmeter.functions.AbstractFunction
      Throws:
      org.apache.jmeter.functions.InvalidVariableException
    • getArgumentDesc

      public List<String> getArgumentDesc()
    • setParameters

      public void setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters, Integer min, Integer max) throws org.apache.jmeter.functions.InvalidVariableException
      Throws:
      org.apache.jmeter.functions.InvalidVariableException
    • getReferenceKey

      public String getReferenceKey()
      Specified by:
      getReferenceKey in interface org.apache.jmeter.functions.Function
      Specified by:
      getReferenceKey in class org.apache.jmeter.functions.AbstractFunction
    • getParameterValues

      protected final Object[] getParameterValues()
    • setParameters

      public void setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) throws org.apache.jmeter.functions.InvalidVariableException
      Specified by:
      setParameters in interface org.apache.jmeter.functions.Function
      Specified by:
      setParameters in class org.apache.jmeter.functions.AbstractFunction
      Throws:
      org.apache.jmeter.functions.InvalidVariableException