ATF email validation failing

ASN18
Tera Contributor

Hello,

 

I'm trying to validate the email body of a notification through ATF using the validate outbound email/validate outbound email generated by notification test steps.

The contents from the preview email of a notification are matching to that of the validate conditions but still the step is failing. What could be the reason? Can anyone please help me with this?

PFA the screenshots:

 

Preview email: 

ASN18_2-1748024182383.png

 

validation step:

ASN18_3-1748024214169.png

 

ASN18_1-1748024114138.png

 

7 REPLIES 7

shun6
Giga Sage

@ASN18 

You need to check the Body field instead of preview.

shun6_1-1748052471298.png

 

For exmaple, I configured Test step like Conditions: body contains "<div style="padding-bottom: 32px;">" and execute test, the test result is success because email body contains "<div style="padding-bottom: 32px;">". 

shun6_2-1748052661009.png

shun6_3-1748052856869.png

shun6_4-1748052948887.png

Thanks.

ASN18
Tera Contributor

@shun6 So can we not validate the email contents through preview email?

 

@ASN18 

Yes, I think so. When I have a same requirement like you I use body field value to validate email body content.

SumanthDosapati
Mega Sage
Mega Sage

@ASN18 

'Resolved by' value didnt match in your ATF Test Result and the email preview screenshot.

One says 'ITIL Test User' and the other says 'Asignee user'.

 

Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth