Forum Discussion
Hi,
So just to have same understanding, you would like to search in 300+ email inboxes? If that's the case, what you can do is - use a technique called data-drive.
Basically, create a table in database or excel or anywhere to hold those email addresses. i.e
Email | Password
email1@test.com | Password1
email2@test.com | Password1
email3@test.com | Password1
Then you call those emails in your login step and use email1@test.com to login, search for specific email address and validate and logout, create a loop to go back to the first step (login), but this time you login with email2@test.com and use the same flow, find that email, validate and then next row.. etc..
You can even have the list of emails in a variable within your application or db or any data holder as long as you can call and use it in your test step.
Hope it helps.
What you are saying is correct but it will achieve only a positive scenario. I also need to check that if an email has not received by the unexpected recipient. Hence to achieve that I am thinking to do it in a reverse way i.e. read the excel and open the mailbox of email1@test.com verify that expected all emails are present then verify if there are any more emails. If yes, then log the subject line of such emails. Then go back and take another mailbox and do the same thing. This way I can identify that if an email has exchanged between email ids.
What's your opinion.