Micro Focus QTP (UFT) Forums
How to print value in QTP Log using .vbs - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to print value in QTP Log using .vbs (/Thread-How-to-print-value-in-QTP-Log-using-vbs)



How to print value in QTP Log using .vbs - kalyaniR - 10-25-2013

print "Hi" will not work while executing .vbs file..So could someone let me know how to print value in QTP Log?


RE: How to print value in QTP Log using .vbs - ssvali - 10-25-2013

You can use FSO to write log.

Ex:-
Code:
Set FSO = CreateObject("Scripting.FileSystemObject")
Set LogFile = FSO.OpenTextFile("D:\QTPLOGFILE.txt",2,TRUE)
LogFile.Writeline("Hi")