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

Reply via email to