You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Noel O'Brien <no...@newbay.com> on 2009/09/23 13:46:12 UTC

Mail Reader Sampler Question

Hi, 

I can successfully run a Mail Reader Sampler against an IMAP mail account I have. Looking in the View Results Tree Listener I can see all the message that are in that accounts inbox. 

I need to assert that a certain message has arrived in the mail account. I added a response assertion with a "Text Response" "contains" .*http.* (all the messages contain a http link). However, nothing matches. 

I used a reger extractor to see what the response body was; turns out all response assertions are run on the parent response, which is usually something like "50 messages found" 

Is there any way to assert on the individual messages (subject & body)? 

FWIW: 
JMeter 2.3.2 
Java: Sun 1.6.0_12 
OS: Kubuntu 9.0.4 

Regards, 
Noel 

Re: Mail Reader Sampler Question

Posted by Noel O'Brien <no...@newbay.com>.
Thanks for the quick reply Sebb. Guess I should have read the fine manual first :) 

Regards, 
Noel 

----- "sebb" <se...@gmail.com> wrote: 
> On 23/09/2009, Noel O'Brien <no...@newbay.com> wrote: 
> > Hi, 
> > 
> > I can successfully run a Mail Reader Sampler against an IMAP mail account I have. Looking in the View Results Tree Listener I can see all the message that are in that accounts inbox. 
> > 
> > I need to assert that a certain message has arrived in the mail account. I added a response assertion with a "Text Response" "contains" .*http.* (all the messages contain a http link). However, nothing matches. 
> > 
> > I used a reger extractor to see what the response body was; turns out all response assertions are run on the parent response, which is usually something like "50 messages found" 
> > 
> > Is there any way to assert on the individual messages (subject & body)? 
> > 
> > FWIW: 
> > JMeter 2.3.2 
> 
> Upgrade to JMeter 2.3.4: 
> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion 
> 
> "Which samples to test" 
> 
> > Java: Sun 1.6.0_12 
> > OS: Kubuntu 9.0.4 
> > 
> > Regards, 
> > 
> > Noel 
> > 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org 
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org 
> 
> 

Re: Mail Reader Sampler Question

Posted by sebb <se...@gmail.com>.
On 23/09/2009, Noel O'Brien <no...@newbay.com> wrote:
> Hi,
>
>  I can successfully run a Mail Reader Sampler against an IMAP mail account I have. Looking in the View Results Tree Listener I can see all the message that are in that accounts inbox.
>
>  I need to assert that a certain message has arrived in the mail account. I added a response assertion with a "Text Response" "contains" .*http.* (all the messages contain a http link). However, nothing matches.
>
>  I used a reger extractor to see what the response body was; turns out all response assertions are run on the parent response, which is usually something like "50 messages found"
>
>  Is there any way to assert on the individual messages (subject & body)?
>
>  FWIW:
>  JMeter 2.3.2

Upgrade to JMeter 2.3.4:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion

"Which samples to test"

>  Java: Sun 1.6.0_12
>  OS: Kubuntu 9.0.4
>
>  Regards,
>
> Noel
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org