在JMeter的SMTP采样给AuthenticationFailedException [英] In JMeter SMTP sampler give AuthenticationFailedException

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

问题描述

手动其实我的Gmail帐户适当的开放,但SMTP采样给出错误,PLZ帮助我,给我一个答案。

取样结果:

主题名称:​​线程组1-1
采样开始:2016年2月1日10时49分54秒IST
加载时间:3032
延迟:0
大小的字节数:16
头大小的字节数:0
机身大小的字节数:16
采样数量:1
错误计数:1
响应code:500
响应消息:AuthenticationFailedException:验证失败 - 错误的用户名/密码!
javax.mail.AuthenticationFailedException:534-5.7.14请通过你的网络浏览器登录并
534-5.7.14然后再试一次。
534-5.7.14了解更多
534 5.7.14 https://support.google.com/mail/answer/78754 m86sm39534293pfi.27 - gsmtp

响应头:

SampleResult字段:
ContentType的:

DataEncoding:空

SMTP采样ScreenShoot:
  


解决方案

 确保启用下面提到设置您的Gmail帐户
** 1 **你需要已打开不够安全的应用

https://www.google.com/settings/security/lesssecureapps

  ** 2 **允许每个应用程序发送电子邮件转到

https://accounts.google.com/b/0/DisplayUnlockCaptcha

 键,点击继续。
现在尝试执行你的线程。

Actually manually my gmail account proper open but SMTP sampler give the error, PLZ help me and give me a answer.

Sampler Result :

Thread Name: Thread Group 1-1 Sample Start: 2016-02-01 10:49:54 IST Load time: 3032 Latency: 0 Size in bytes: 16 Headers size in bytes: 0 Body size in bytes: 16 Sample Count: 1 Error Count: 1 Response code: 500 Response message: AuthenticationFailedException: authentication failed - wrong username / password! javax.mail.AuthenticationFailedException: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 m86sm39534293pfi.27 - gsmtp

Response headers:

SampleResult fields: ContentType:

DataEncoding: null

SMTP Sampler ScreenShoot :

解决方案

Make sure that enable below mentioned setting for your gmail account
**1.**You need to TURNED ON Less secure apps

https://www.google.com/settings/security/lesssecureapps

**2.**Allow each app to send email Go to

https://accounts.google.com/b/0/DisplayUnlockCaptcha

And click on Continue.
Now try to execute your thread.

这篇关于在JMeter的SMTP采样给AuthenticationFailedException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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