Jmeter plugin installation problem on Mac OS

1,107 views
Skip to first unread message

Wenzhong

unread,
Apr 11, 2016, 10:51:08 PM4/11/16
to jmeter-plugins
Hi,

Experiencing problem on installing plugins. any help will be appreciated, thanks in advance.

I am using Mac OS X Yosemite with a Jmeter 2.13 installed by Homebrew.

After download the plugin package and unzip to the specific path as described in http://jmeter-plugins.org/wiki/PluginInstall/ , I restart Jmeter but seems they are not taking effect.

I pasted some of the information as below. 

====================
$ jmeter -v
Copyright (c) 1998-2015 The Apache Software Foundation
Version 2.13 r1665067

 ✔  [10:15:51] wenzhong@musicforever:~/temp
$ which jmeter
/usr/local/bin/jmeter

 ✔  [10:15:58] wenzhong@musicforever:~/temp
$ ll /usr/local/bin/jmeter
8 lrwxr-xr-x  1 wenzhong  admin    32B Mar  4 10:45 /usr/local/bin/jmeter@ -> ../Cellar/jmeter/2.13/bin/jmeter

 ✔  [10:16:02] wenzhong@musicforever:~/temp
$ tree /usr/local/bin/../Cellar/jmeter/2.13/lib
/usr/local/bin/../Cellar/jmeter/2.13/lib
├── asm-5.0.3.jar
├── commons-beanutils-1.8.3.jar
├── commons-lang-2.6.jar
├── commons-pool-1.6.jar
├── ext
│   └── JMeterPlugins-ExtrasLibs.jar
├── ezmorph-1.0.6.jar
├── jedis-2.2.1.jar
├── json-lib-2.4-jdk15.jar
├── json-path-2.1.0.jar
├── json-smart-2.2.jar
├── qpid-client-0.20.jar
├── qpid-common-0.20.jar
├── spring-core-2.5.6.jar
├── spring-jms-2.5.6.jar
└── xom-1.2.10.jar

1 directory, 15 files
===================

I am trying to use the json-path-extractor feature, however, I could not find it from the processors.

Here are some successful installation screenshot from my colleague's PC.



but this plugins does not appears on my MBP.

Any thoughts? or where I could find the logs of plugin loading?

Thanks,

Wenzhong

wenzho...@gmail.com

unread,
Apr 12, 2016, 1:47:02 AM4/12/16
to jmeter-plugins, wenzho...@gmail.com
after I reinstall jmeter with homebrew using the “brew install jmeter --with-plugins", things goes well now.

and I found the plugins are actually stored in /libexec/lib/ directory, not /lib .

Vincent Daburon

unread,
Apr 12, 2016, 3:48:30 AM4/12/16
to jmeter-plugins, wenzho...@gmail.com
Hi,
Another solution it's to use the JMeter 3.0 beta with good support for JSON.

19.8.9 JSON Path PostProcessor

The JSON PostProcessor enables you extract data from JSON responses using JSON-PATH syntax. This post processor is very similar to Regular expression extractor. It must be placed as a child of HTTP Sampler or any other sampler that has responses. It will alow you to extract in a very easy way text content, see JSON Path syntax .

Parameters

AttributeDescriptionRequired
NameDescriptive name for this element that is shown in the tree. No
Variable NamesSemi-colon separated names of variables that will contain the results of JSON-PATH expressions (must match number of JSON-PATH expressions) Yes
JSON Path ExpressionsSemi-colon separated JSON-PATH expressions (must match number of variables) Yes
Default ValuesSemi-colon separated default values if JSON-PATH expressions do not return any result(must match number of variables) No
Match NumbersIf the JSON Path query leads to many results, you can choose which one(s) to extract as Variables:
  • 0 : means random (Default Value)
  • -1 means extract all results, they will be named as _N (where N goes from 1 to Number of results
  • X : means extract the X th result. If this X th is greater than number of matches, then nothing is returned. Default value will be used
No
Compute concatenation varIf many results are found, plugin will concat them using ‘,’ separator and store it a var named _ALL No

Regards.
Vincent D.

Reply all
Reply to author
Forward
0 new messages