Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to print value in QTP Log using .vbs
#1
Solved: 10 Years, 10 Months, 2 Weeks ago
print "Hi" will not work while executing .vbs file..So could someone let me know how to print value in QTP Log?
Reply
#2
Solved: 10 Years, 10 Months, 2 Weeks ago
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")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Grab multiple line data from log file haziqwebs 0 1,794 10-19-2016, 01:28 PM
Last Post: haziqwebs
  Getting an error to open UFT using vbs file Naresh 1 5,389 06-11-2015, 06:34 PM
Last Post: venkatesh9032
  QTP Report to respective QC test Set Path through VBS Anand Saboo 0 2,413 11-01-2013, 02:36 PM
Last Post: Anand Saboo
  To view log files in QTP sheetal 5 16,760 10-08-2013, 02:27 PM
Last Post: Gurpreet
  How to run .vbs files through wscript.exe sams001 0 2,686 03-23-2013, 11:08 AM
Last Post: sams001

Forum Jump:


Users browsing this thread: 2 Guest(s)