jmeter邮件阅读器采样器连接问题 [英] jmeter mail reader sampler connection issues

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

问题描述

我试图用 jmeter 中的邮件阅读器采样器检查我的Gmail,并启用 imap pop3 在我的Gmail帐户。

I am trying to check my gmail with a mail reader sampler in jmeter and enabled both imap and pop3 in my gmail account.

每次尝试连接gmail时,我都会收到以下错误:

Everytime I try to connect to gmail, I keep getting this error:


响应消息:javax.mail.MessagingException:Connect failed;
嵌套异常是:java.net.ConnectException:Connection refused:connect

这是我的查询:
点击我

我在底部尝试了 SSL TLS 选项。我尝试添加和删除该端口。还试着在我的电子邮件地址中删除@ gmail.com部分。并且还将协议写成pop3和pop3s。不知道为什么不行。

I tried both SSL and TLS option at the bottom. I tried adding and leaving out the port. Also experimented with leaving out "@gmail.com" portion in my email address. And also wrote the protocol as pop3 and as pop3s. Not sure why it won't work.

我在公司的wifi上,不知道是否会导致这个问题。

I am on a corporate wifi, I don't know if that could be the thing causing the issue.

推荐答案

首先,确保JMeter可以连接互联网。要验证,请添加 HTTP请求采样器,并将其中的任何Internet IP地址或主机名插入相关输入,即 example.com

First of all, make sure JMeter can connect the Internet. To validate it add HTTP Request sampler and insert any Internet IP address or hostname in the relevant input, i.e. example.com

如果请求成功 - 双击邮件读取器采样器设置。如果请求失败 - 很有可能你坐在企业代理后面,需要配置JMeter使用它

If the request succeeds - double check Mail Reader Sampler settings. If request is failing - most likely you're sitting behind corporate proxy and need to configure JMeter to use it.

关于邮件阅读器POP3协议的采样器配置应如下所示:

In regards to the Mail Reader Sampler configuration for POP3 protocol should look as follows:


  • 协议: pop3s

  • 主机: pop .googlemail.com

  • 端口: 995

  • 用户名: username@gmail.com

  • 密码:您的帐户密码

  • 安全设置: code>使用SSL

  • Protocol: pop3s
  • Host: pop.googlemail.com
  • Port: 995
  • Username: username@gmail.com
  • Password: your account password
  • Security Settings: Use SSL

您可能还需要打开访问权限较低的应用您的Google帐户设置

You may also need to turn on access for less secure apps in your Google Account settings

请参阅加载测试您的电子邮件服务器:如何使用JMeter发送和接收电子邮件

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

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