Use a counter variable put a string parameter in your test plan then use an if condition and add to it beanshell sampler which contain code that fail the test.
On Jul 2, 2015 5:07 PM, Niraj <[email protected]> wrote: > > Hello, > > My Jmeter script have only one request which get's input from CSV file and > which executes 1000 times. > > Now what I want, if my request failed for more than 10 times, I need to > stop my Jmeter test automatically. > > I know there is Test Action sampler. But I am not sure how can get failure > count. I can use If controller. But what condition should I use so after 10 > request failed. My If loop will execute and Test Action sampler will stop > my test. > > If there is any other option, please let me know. > > Thanks, > Niraj
