Package kg.apc.jmeter.functions
Class CaseFormat
- java.lang.Object
-
- org.apache.jmeter.functions.AbstractFunction
-
- kg.apc.jmeter.functions.CaseFormat
-
- All Implemented Interfaces:
org.apache.jmeter.functions.Function
public class CaseFormat extends org.apache.jmeter.functions.AbstractFunctionCase Formating Function Support String manipulations of:- Lower and upper camel case
- as: lowerCamelCase and UpperCamelCase
- Snake/lower underscore case
- as: snake_lower_underscore_case
- Lisp/kebab/spinal/lower hyphen case
- as: lis-keba-spinal-lower-case
- upper underscore case
- as: UPPER_UNDERSCORE_CASE
- Train case
- as: TRAIN-CASE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaseFormat.CaseFormatModeChangeCase Modes Modes for different cases
-
Constructor Summary
Constructors Constructor Description CaseFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringchangeCase(String originalString, String mode)Change case optionsStringexecute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler)List<String>getArgumentDesc()StringgetReferenceKey()voidsetParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters)
-
-
-
Method Detail
-
execute
public String execute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) throws org.apache.jmeter.functions.InvalidVariableException
- Specified by:
executein interfaceorg.apache.jmeter.functions.Function- Specified by:
executein classorg.apache.jmeter.functions.AbstractFunction- Throws:
org.apache.jmeter.functions.InvalidVariableException
-
changeCase
protected String changeCase(String originalString, String mode)
Change case options- Parameters:
originalString-mode-- Returns:
- string after change case
-
setParameters
public void setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) throws org.apache.jmeter.functions.InvalidVariableException
- Specified by:
setParametersin interfaceorg.apache.jmeter.functions.Function- Specified by:
setParametersin classorg.apache.jmeter.functions.AbstractFunction- Throws:
org.apache.jmeter.functions.InvalidVariableException
-
getReferenceKey
public String getReferenceKey()
- Specified by:
getReferenceKeyin interfaceorg.apache.jmeter.functions.Function- Specified by:
getReferenceKeyin classorg.apache.jmeter.functions.AbstractFunction
-
-