I put the following into the first script of my suite:
put “The Automation Run at:” && the long date && return && “Start Time:” && the long time & return into file “qa1”
Also put the rest into last script of my suite:
put " End Time:" && the long time after file “qa1”
put line 1 of file “qa1” as data into myline1
put line 2 of file “qa1” as data into myline2
put line 3 of file “qa1” as data into myline3
SendMail(to: emailaddress, from: “emailaddress”, subject: “Automation result”, body: "myline1 & return &&myline2 & return &&myline3)
It works well.
But if I want to add the failed test cases info into my result file “qa1”, what is the best way to do it?
Format like following:
Failed test cases:
Thanks in advance.