TestProject Forum
Powered by leading experts in the test automation community

Automating password reset by e-mail

I need to automate and test a workflow that creates new users in an application, and to set the initial password I need to be able to access a link in an e-mail (the link has a random(guid) key in it).

Has anyone some experience with automating a work-flow whereby it is possible to, within the script it-self, access a specific e-mail (also generated by actions occurring in the test itself)?

Hello @nathan1,
You can record a test that perform the code retrieval from the email: do login, open the last email from the provider and get the text inside the email. You can use the String Utils addon to extract the specific text you are looking for.

Thanks guy :slight_smile:

In the end, I decided to use testmail and the API plugin to handle this.