I have a JMeter script wherein the thread group has eight samplers and each sampler depends on the response of the preceding one. When I run this jmx script with 'Number of Threads' as one, it works fine but when I increase the number things fall apart and many requests fail as the sequence of execution breaks!
To handle this, as a Post Processor to my first sampler I added a Beanshell Post-Processor with ${__setProperty(ThreadValue,${__threadNum},)} in the script area. Then I kept the rest of the samplers in individual If Controllers with Condition as (${JMeterThread.last_sample_ok}==true) && (${__property(ThreadValue,,)} == ${__threadNum})
But now only the top two samplers get executed multiple times and the rest get executed only once! What maybe the reason?