Forum Discussion
Marsha_R
11 years agoChampion Level 3
We use something like this with our keyword tests when we want to post a separate log.
script is called SubmitLog
Sub ExportResults(LogsName)
FileName = Project.ConfigPath + "Log\" + LogsName + ".mht"
Log.SaveResultsAs FileName, 2
'call Log.SaveResultsAs("C:\\TCResults\\", lsHTML)
End Sub
At the end of the keyword test we run it with
Run Script Routine SubmitLog -- ExportResults LogsName
where LogsName is the name of the keyword test.
You should be able to put something similar at the end of each of your tests, or wherever you want a separate log.
script is called SubmitLog
Sub ExportResults(LogsName)
FileName = Project.ConfigPath + "Log\" + LogsName + ".mht"
Log.SaveResultsAs FileName, 2
'call Log.SaveResultsAs("C:\\TCResults\\", lsHTML)
End Sub
At the end of the keyword test we run it with
Run Script Routine SubmitLog -- ExportResults LogsName
where LogsName is the name of the keyword test.
You should be able to put something similar at the end of each of your tests, or wherever you want a separate log.