Technology Radar
Published : Oct 26, 2022
NOT ON THE CURRENT EDITION
This blip is not on the current edition of the Radar. If it was on one of the last few editions, it is likely that it is still relevant. If the blip is older, it might no longer be relevant and our assessment might be different today. Unfortunately, we simply don't have the bandwidth to continuously review blips from previous editions of the Radar.
Understand more
Oct 2022
Trial
使用真实电子邮箱的测试账户,或使用 SMTP(简单邮件传输协议)服务器进行测试仍然是较为常见的软件测试方法。 然而,使用真实的服务进行测试会带来测试邮件将被发送到真实的人的风险,也常常会使自动集成测试变得复杂。 我们完全可以使用 虚拟 SMTP 服务器来测试邮件发送 ,它记录了发送电子邮件的请求,但并没有实际发送。 在这个领域存在多个开源工具,比如 fake-smtp-server,它提供了 Web UI 来展示邮件,便于可视化测试;以及 mountebank,它提供了 REST API 来获取已发送的邮件,便于集成测试。 我们建议探索这种技术,以减少风险,提高测试效率。