Email body validation using ATF

Ravi Sharma
Tera Contributor

Dear Experts,

We are automating the test cases for one of our scoped application in HR module using ATF [San diego]. One of the requirement is to validate the email body. 
We are using validated outbound email  option but when provide body, ATF is getting failed with error" Could not find email matching condition"

Please shed some light if you have implemented the above in your instances. Thanks!

2 REPLIES 2

Luke Van Epen
Tera Guru

Make sure you're waiting long enough, emails are processed via events so the ATF is likely failing before the event has time to processes. 

I have provided wait time, but still I am not. Infact I am validating the email content which should not have the time concern. However the email is triggered and later i am navigating to sent item from where i m trying to validate email from HTML content using query as Body Contains