Skip to content

jmetertea/JMeterAdditionalFunctions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

ChangeCase function

Change Case function update string according to given case, support the following cases:

  • Lower camel case, as: lowerCamelCase - name: "LOWER_CAMEL_CASE"
  • Upper camel case, as: UpperCamelCase - name: "UPPER_CAMEL_CASE"
  • Snake or lower underscore case, as: snake_lower_underscore_case - name: "SNAKE_CASE"/"LOWER_UNDERSCORE"
  • Lisp or kebab or spinal or lower hyphen case, as: lis-keba-spinal-lower-case - name: "KEBAB_CASE"/"LISP_CASE"/"SPINAL_CASE"/"LOWER_HYPHEN"
  • Train case, as: TRAIN-CASE - name: "TRAIN_CASE"
  • Upper underscore case, as: UPPER_UNDERSCORE_CASE - name: "UPPER_UNDERSCORE"
  • Usage

    Parameter 1 - String to change case. Mandatory

    Parameter 2 - Case Mode (case insenstive). Optional (Default "LOWER_CAMEL_CASE")

    • if not valid mode will return string as is.

    Parameter 3 - Name of variable. Optional reference name for reusing the value computed by this function.

    For example: ${__caseFormat("MyString", "LOWER_CAMEL_CASE", outputVariable);

    Will save in outputVariable value "myString"

About

add functions to be added to JMeter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages