user66854
user66854

Reputation: 875

Can you run a Shell script or a windows batch file from jmeter?

I have a windows batch file and a shell script . Does jmeter have the functionality to run a shell script or a bat file . maybe a plugin or so ? .

Any help is appreciated

Upvotes: 4

Views: 10504

Answers (2)

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34516

Since jmeter 2.7 there is a new sampler that allows this:

Upvotes: 7

BlackGaff
BlackGaff

Reputation: 7707

I believe you can use the javascript or jexl function to do this:

http://jmeter.apache.org/usermanual/functions.html#__javaScript

Failing that, add a beanshell step and use code to call your script/batch file.

Upvotes: -2

Related Questions