Let's say, I want to test an application with Jmeter. How ever, i want the test to stop if one step get higher than 50% errors or if the step is getting an 404 error.
Thanks for any advice.
You can use AutoStop Listener plugin which can stop your test basing on various criteria including custom ones coming i.e. from the Response Assertion
Auto Stop Listener can be installed using JMeter Plugins Manager
You can use Taurus tool as a wrapper for JMeter tests. It has flexible and powerful Pass/Fail Criteria subsystem which not only stops the test, but also returns non-zero exit code so you can use it from scripts or a Continuous Integration tool to mark the build as unstable or failed.