Forum Discussion
mazhar555
14 years agoContributor
Hi,
I am using the following code, actually trying to bind the current date and time with Log File and saving it on a network location, but it does not save the log. Any idea what would be the problem with that code.
Sub GeneralEvents_OnStopTest(Sender)
FolderPath = "P:\\QA Activity\\01. AUTOMATION\\08 - Test Scripts\\Test Result\\"
strDate = aqConvert.DateTimeToStr(Date)
strDate = aqString.Replace(strDate,"/","-")
LogName = FolderPath&"("&Sys.UserName&")-CDB-"&strDate&"-"&Time&".mht"
Log.SaveResultsAs LogName,2
End Sub
Thanks in advance.
Regards,
I am using the following code, actually trying to bind the current date and time with Log File and saving it on a network location, but it does not save the log. Any idea what would be the problem with that code.
Sub GeneralEvents_OnStopTest(Sender)
FolderPath = "P:\\QA Activity\\01. AUTOMATION\\08 - Test Scripts\\Test Result\\"
strDate = aqConvert.DateTimeToStr(Date)
strDate = aqString.Replace(strDate,"/","-")
LogName = FolderPath&"("&Sys.UserName&")-CDB-"&strDate&"-"&Time&".mht"
Log.SaveResultsAs LogName,2
End Sub
Thanks in advance.
Regards,
Related Content
Recent Discussions
- 2 days agoMW_Didata