Junit/其他 - 电子邮件测试
我正在开发一个基于 Java 构建的项目,并向遗留系统发送一些电子邮件,目前在开发环境中我们正在使用 gmail 来测试电子邮件。
我想问是否有任何现有的测试框架可以连接到邮件/交换服务器并执行测试电子邮件是否正确发送并且内容是否正确。或类似的或者是否有解决方法。此外,电子邮件的内容是动态生成的。
在发布这个问题之前我检查了另一个问题......但似乎没有一个是我的问题的答案
I am working on a project that is built on Java and sends some email to legacy systems, at the moment in the dev env we are using gmail to test the emails.
I wanted to ask that if there is any existing test framework that can hook up to the mail/exchange server and perform the test that if the email are getting sent correctly and have the content is correct. or similar or if there is a workaround for that. Also, the content of the emails is dynamically generated.
I checked out the other question before I posted this question... but none seems to be an answer to my question
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尝试过Dumbster吗?
如果这不符合您的标准,请查看 在没有电子邮件实际发出的情况下运行 Junit 电子邮件测试
Have you tried Dumbster?
If this doesn't meet your criteria, then see the other answers to Running Junit Email Tests Without Emails Actually Going Out