On 21 January 2011 08:00, Felix Frank <f...@mpexnet.de> wrote: >>> If specific error that you seem to have mentioned then you could try > adding >>> a BeanShell listener(scoped to the if statement) to set the variable. >>> >>> http://jakarta.apache.org/jmeter/api/org/apache/jmeter/samplers/SampleResult.html#getAssertionResults() >>> The listener could check which assertion failed and set the variable >>> accordingly. >> >> Ok, but isn't it the case that listeners are only executed on the JMeter >> controller in distributed mode and not on the agents? Therefore the variable >> that would be set would not be available on the agent executing the test. > > I believe so, yes. > > Maybe a BeanshellPostProcessor will do you more good then?
Note that the status of any sample is saved in JMeterThread.last_sample_ok - whether or not the last sample was OK - true/false See: http://jakarta.apache.org/jmeter/usermanual/functions.html#predefinedvars This can be used in an If Controller to skip subsequent parts of a test. > Cheers, > Felix > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org