Hi You probably need to poll. create a while controller which has the timer and Mail Reader sampler and some BSH sampler If you've found what you are looking for the first time , set some flag in BSH that causes the while to quit, otherwise keep increasing the timer's value (or fixed intervals) and wait for a set of iterations , if max iterations/time reached set some other flag that causes the controller to quit.
regards deepak On Thu, Nov 12, 2009 at 12:41 PM, David Levine <[email protected]>wrote: > I have a test script that pushes a web site through a process that > generates an email, and then uses the Mail Reader Sampler to check to see if > the email came in. I'm currently using a Constant Timer to wait 10 seconds > for the email to come in, and that's working fine. However, I want to > handle cases where it takes more than 10 seconds for the email to get > delivered - I'd like to wait up to a minute or two for worst case scenarios. > But I don't want a constant delay equal to my worst case mail delivery > time. So I'm wondering if there's a way to make the Mail Reader Sampler > check for new mail and return as soon as it has some, but give up after a > certain amount of time if there's no new email? That way the test would run > as fast as possible, but handle the occasional long delay in email delivery. > > Do I need to create my own custom version of the Mail Reader Sampler or is > there a way to achieve the same effect using existing JMeter machinery? > > David

