邮件阅读器采样器 [英] Mail Reader Sampler

查看:310
本文介绍了邮件阅读器采样器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用邮件阅读器采样器从Gmail中读取电子邮件,并从电子邮件中获取令牌ID,这是我们进行进一步测试所必需的.但是,我一直都遇到以下错误:

I am using the Mail Reader Sampler to read the email from Gmail and get a token Id from the email which is required for our further testing. But all the time I am getting the below error:

响应码:500 响应消息:javax.mail.MessagingException:连接超时:connect; 嵌套的异常是: java.net.ConnectException:连接超时:connect imaps://manish14feb@gmail.com@imap.googlemail.com/INBOX [5]

Response code: 500 Response message: javax.mail.MessagingException: Connection timed out: connect; nested exception is: java.net.ConnectException: Connection timed out: connect imaps://manish14feb@gmail.com@imap.googlemail.com/INBOX[5]

响应头:

SampleResult fields:
ContentType: 
DataEncoding: null

有人可以帮忙吗?

推荐答案

我假设您有在Gmail设置中启用了IMAP ?

使用Gmail可能不是一个好主意,因为它具有同时使用的限制连接,如果您以多线程方式检查邮箱,则可能会被阻止.

Using Gmail might be not a very good idea as it has i.e. limits on simultaneous connections and if you checking your mailbox in multithreaded manner you might be blocked.

检查是否可以使用POP3协议和以下配置接收电子邮件:

Check whether you can receive email using POP3 protocol and the following configuration:

  • 协议:pop3s
  • 服务器主机:pop.googlemail.com
  • 服务器端口:995
  • 用户名:manish14feb@gmail.com
  • 密码:your_password
  • 要检索的消息数:我相信应该是1
  • 安全设置:Use SSL
  • Protocol: pop3s
  • Server Host: pop.googlemail.com
  • Server Port: 995
  • Username: manish14feb@gmail.com
  • Password: your_password
  • Number of messages to retrieve: I believe it should be 1
  • Security settings: Use SSL

请参见加载测试您的电子邮件服务器:如何使用JMeter发送和接收电子邮件进行设置说明.

如果没有,请考虑设置自己的邮件服务器(最好在公司Intranet中的某处),这样您就可以完全控制它,而不会受到任何形式的限制或安全约束.

And if not - consider setting up your own mail server (better somewhere in your company intranet) so you could have full control of it and won't suffer from any form of limits or security constraints.

这篇关于邮件阅读器采样器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆