Send log reports to co-workers
Our tests are run every night project by project through Sessioncreate with batchscripting. we have an email message service which logs which projects fail but not the details where or why it failed a.k.a the actual logs.
Is there a way to make a toggleable send html logs to email adres of choosing?
The mail looks like this now:
It only shows OK or Errors, not much to go off.
I think running with Testexecute generates an html log when complete, it just want to send this log to my coworkers when needed.
I am the only Testcomplete tester for my software, and if I go on vacation I'd like to know the software is being looked after.
The command that I use is,
$tc_timestamp = (Get-Date).ToString('yyyyMMdd_HHmmss') $summary_report = "C:\Sandbox\Log\TC_Automation_$tc_timestamp\SummaryReport.xml" & 'C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin\SessionCreator.exe' RunTest /UserName:Tester1 /password:'Tester1' /UseActiveSession /ScreenResolution:"1920*1080" /ProjectPath:"C:\Sandbox\TestComplete\ALS\ALS.pjs" /ExportLog:"C:\Sandbox\Log\TC_Automation_$tc_timestamp\index.html" /ExportSummary:"$summary_report" | Out-Null
The log filenames are based on the timestamp, so I keep a record of execution runs/results.
/ExportSummary produces an XML file, which I parse via PowerShell to produce a HMTL report. /ExportLog is the actual log produced by TC. See Command-Line Syntax.