https://bz.apache.org/bugzilla/show_bug.cgi?id=59963
Bug ID: 59963
Summary: New Function __RandomFromMultipleVars: Ability to
compute a random value from values of 1 or more
variables
Product: JMeter
Version: 3.0
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Created attachment 34119
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34119&action=edit
Patch that implements function
In our campaigns and during our exchanges with our customer we frequently face
the need to extract a random value from values of variables extracted by the
core JMeter extractors Regex, CSS/JQuery, JSON Path, XPath Extractor.
Knowing that those extractors can create 1 to N+1 variables depending on number
of matches (one suffixed with _matchNr, and the ones suffixed with _n where n
is between 1 and n when you select Match to be equal to 1).
When we need to use one value from those ones, we always have to code this in a
custom JSR223 code using Groovy for example.
This code is not easy for beginners and error prone, and for other users it
makes code less readable.
To overcome this limitation, we have coded a new function that does that.
Find the patch attached that we donate to Apache JMeter knowing we have signed
a CCLA.
--
You are receiving this mail because:
You are the assignee for the bug.