I need a way to stop my main sample from being executed and also stop my test.
I have read this post on stackoverflow but this does not prevent the main sample from being executed. JMeter - Stop Thread from within a BeanShell PreProcessor
I have an HTTP sampler (Could be any other samples besides a BeanShell sampler) in JMeter 3.2 with a BeanShell PreProcessor that contains the following line of code:
org.apache.jmeter.engine.StandardJMeterEngine.stopThread(Thread.currentThread().getName());
Now this does stop my test but not after executing the main sample. So I need something that stops my test and prevents the main sample from ever being executed.
Any help would be greatly appreciated!