How to terminate the execution of Jmeter script/test when assertion is failed - (GUI run)

Solution 1:

You will have to use If Controller and Flow Control Action after your assertion

enter image description here

enter image description here

OR

You may use ctx variable from your JSR223 Assertion to get access to JMeter Engine to stop test

See details here