<p>Hello everyone,</p>
<p>I just wanted to see if anyone knows any packages that may be helpful in a task I have to take up for work. For Email verification, after someone logs in we send a link to their email to verify. All they have to do is click the link. For test automation, the solution they want me to try out is to write an SMTP server that takes in any message it is sent, parses it, and does an HTTP GET on the link. Are there any projects I should look into extending or will I need to start from scratch?</p>
<p>EDIT: I forgot to mention that it will be handling hundreds of accounts which is why our solution is to just accept any email it receives so that our functional and load tests can just make up accounts</p>
<hr/>**评论:**<br/><br/>SlideNinja: <pre><p>Tryout go-guerilla (<a href="https://github.com/flashmob/go-guerrilla" rel="nofollow">https://github.com/flashmob/go-guerrilla</a>)</p></pre>lovetocode: <pre><p>I have a question rather than an answer and is in no intention of being snarky -- I am just curious because I don't really understand the logic and would like to better understand the underlying purpose of this test.</p>
<p>Isn't standing up an SMTP server overkill for this type of test? You mention that you are testing the functionality of the email verification process but how do we know that the tests are not failing because of the SMTP server? The SMTP server, to my understanding, will only be used in testing. Can't you test both the load and functionality organically within your application without the need of an extra layer of complexity? </p></pre>Holojack12: <pre><p>So it is not for one specific test per se. We just want a server that we can send many random emails irregardless of intended recipient since we can't use the same email address over and over.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传