2
votes

In JMeter, when using a Beanshell script, is there a way to determine if I'm running my *.jmx file in the GUI vs on the command line? Is there a way to know if I'm running it interactively?

1
In command line you can add extra special property to identify - user7294900

1 Answers

2
votes

In your code call:

org.apache.jmeter.gui.GuiPackage.getInstance()

if it returns null, you’re in Non Gui mode otherwise you’re in Gui mode

See: