Forum Discussion
I don't understand what you want to do. Are you asking me:
1) The file you send to the disk will be deleted after you perform SendMail()?
2) Do you always want to take only the latest log file to sendMail()?
- BenoitB5 years agoCommunity Hero
For these cases i built a path test\date based name and export to this path and i send mail the exported log.
The exported log contains also timestamp.
testexecute.mht -> exported to \results\myApp\03-19-2020\myAPP03-19-2020-100005.mht
But as Wamboo i dunnot understand clearly what u want.
- tristaanogre5 years agoEsteemed Contributor
BenoitB is correct.... you best practice would be to make sure that your MHT file has a unique name each time it's created. That will prevent over-writing/replacement.
- hkim55 years agoStaff
adding on to all of the other comments, I'd suggest using aqDateTime to get a timestamp (when you are initally creating these mht files) or using something lke ProjectSuite.TestItems.Current.ProjectName to get the relevant unique name for each of your runs.
Related Content
Recent Discussions
- 3 hours agoSvetaG