On Tue, 30 Nov 2004 17:21:09 -0600, praveen <[EMAIL PROTECTED]> wrote: > hi all. > > i need logic similar to the psuedocode below: > > .. .. > HTTP sampler > Regular Expression Extractor gets a value for VAR > If Controller > "${VAR}"=="null" > Stop thread > > What can I use to stop the thread, other than using a sampler? > Selecting the option "stop thread on error" in the thread group > element stops the thread only on error. But there are situations in > which, although there is a valid response, it is an error page > manufactured by the application server. So I want to stop threads that > run into such pages during a run.
Use an Assertion that fails. Sampler errors are either samples that fail entirely (e.g. page not found) or sample that fails one of the Assertions. These both show up as failed samples, e.g. in the Table Listener (and in the sample log files). If you don't want every sample failure to cause the thread to stop, add a Result Status Action Post-Processor in the appropriate place. S. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]