Thursday, August 4, 2011

Tip: Generating Multiple Email IDs instantly for testing your application

There might be multiple situations where you might need to use a new email ID for each test case but still you want to receive all those emails into a single account Inbox so that you can check them right away without logging into other accounts.

Say for example your website might be giving some discount for the people who subscribe for the first time. And you would receive an email & discount only for the first time. Assume that you have ten test cases for verifying this. So you would need ten different email addresses for verifying these ten test cases.

In such scenarios, creating ten different accounts and checking each one of them would be a time consuming thing.

Instead you can simply use your existing Gmail account to save lot of time.

Say for example your email ID is:

everythingaboutqa@gmail.com

Now everytime you need a new email ID, simply add a '+' sybmol followed by any text before @gmail.com. Meaning

everythingaboutqa+123@gmail.com

or

everythingaboutqa+hello@gmail.com

All these emails would be forwarded to everythingaboutqa@gmail.com

Note: Some applications may not accept '+' sybmol in their email entry fields. In that case this tip might not be helpful. Also you can use 'mailinator' to acheive your goal of testing. Also you can ask your developers to add an email ID to the code for your testing purpose which would be considered as a new email ID everytime by your application no matter how many times you use it.

No comments:

Post a Comment