OS Process Sampler PhantomJS Mac

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

OS Process Sampler PhantomJS Mac

iamsummer
This post has NOT been accepted by the mailing list yet.
Hi,

I am trying to run the following in jmeter but I get an error
command: phantomjs
working directory: [phantomjs dir]
command parameters
value:
/Users/mine/Downloads/phantomjs-2.1.1-macosx/examples/netsniff.js
http://www.google.com
>
/Users/mine/Documents/HAR/test.har

Response message:
Exception occured whilst executing System Call: java.io.IOException: Cannot run program "phantomjs" (in directory "/Users/mine/Downloads/phantomjs-2.1.1-macosx/bin"): error=2, No such file or directory

Thanks,
Era
Reply | Threaded
Open this post in threaded view
|

Re: OS Process Sampler PhantomJS Mac

glinius@live.com
This post has NOT been accepted by the mailing list yet.
Your configuration is slightly vague, you need either to:

 1. Provide full path to phantomjs binary in "Command" input like /Users/mine/Downloads/phantomjs-2.1.1-macosx/bin/phantomjs
 2. or add it to system PATH variable prior to JMeter launch like PATH=$PATH:/Users/mine/Downloads/phantomjs-2.1.1-macosx/bin && export PATH

See How to Run External Commands and Programs Locally and Remotely from JMeter article for more details

Reply | Threaded
Open this post in threaded view
|

Re: OS Process Sampler PhantomJS Mac

iamsummer
This post has NOT been accepted by the mailing list yet.
You are heaven sent. Thank you so much glinius.