jmeterbeanshell

Executing shell commands through beanshell in jmeter


Executing shell commands through beanshell in jmeter. I want to execute shell commands in beanshell preprocessor in jmeter

Can any one tell how to do so.


Solution

  • Beanshell is JAVA (scripting language). Below statement should help.

    Runtime.getRuntime().exec("COMMAND");