Search code examples
performancejmeterbeanshell

Mail Reader Sampler connection error


I got an error during execution of Mail Reader sampler. I also tried IMAP but still got the error, any solutions, please ?

 Thread Name: Thread Group 1-1  
Sample Start: 2017-06-02 12:20:45 EDT  
Load time: 21015  
Connect Time: 0  
Latency: 0  
Size in bytes: 0  
Sent bytes:0  
Headers size in bytes: 0  
Body size in bytes: 0  
Sample Count: 1  
Error Count: 1  
Data type ("text"|"bin"|""):  
Response code: 500  
Response message: javax.mail.MessagingException: Connect failed;  
  nested exception is:  
    java.net.ConnectException: Connection timed out: connect  
pop3s://[email protected]@pop.googlemail.com:995/INBOX[1]  

 Response headers:


 SampleResult fields:  
ContentType:  
DataEncoding: null 

Solution

  • According to Read Gmail messages on other email clients using POP article:

    Incoming Mail (POP) Server pop.gmail.com

    Requires SSL: Yes

    Port: 995

    So try changing your Server Host setting to pop.gmail.com

    Also double check the following:

    1. You have enabled POP in Gmail Settings
    2. You can access port 995 of pop.gmail.com server (you can check it using telnet client, i.e. it isn't blocked in your OS firewall, organization, router, etc.
    3. You are not blocked by Gmail for retrieving messages too fast

    See Load Testing Your Email Server: How to Send and Receive E-mails with JMeter article for more information on sending and receiving emails using JMeter