79116744

Date: 2024-10-23 07:10:19
Score: 1.5
Natty:
Report link

The options are in:

  1. Surround the function with quotation marks. However as per JSR223 Sampler documentation it will result into caching the compiled value and generated string will be "random" during first iteration only

  2. Pass it via "Parameters" section like

    enter image description here

  3. Use RandomStringUtils class instead:

    String randomString = org.apache.commons.lang3.RandomStringUtils.randomAlphanumeric(100, 4500)
    

More information on Groovy scripting in JMeter: Apache Groovy: What Is Groovy Used For?

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Ivan G