How to select random value from array using jp@gc json path extractor

1,176 views
Skip to first unread message

mdvali...@gmail.com

unread,
Nov 29, 2016, 12:17:57 PM11/29/16
to jmeter-plugins
How to select random value from array using jp@gc json path extractor
Json response
Employees{
Id : 1
Id : 2
Id : 3
}

I want to select random id from the above json. Please advise

Andrey Pokhilko

unread,
Nov 29, 2016, 1:30:23 PM11/29/16
to jmeter-...@googlegroups.com
Hi,

Sorry, there is no such feature in this JSONPath Extractor plugin.

Andrey Pokhilko

Tom Tran

unread,
Dec 23, 2016, 5:52:35 AM12/23/16
to jmeter-plugins, mdvali...@gmail.com
Please use JSON Extractor instead, it's an official feature of JMeter from version 3.0.

Try to config the JSON Extractor like above, you can get random ID from your response


For more detail usage of this element, you can check it out here: JSON Extractor in JMeter

Reply all
Reply to author
Forward
0 new messages