Capture QuickTest Print log
Question ID: 104555
4
0

I use the QuickTest Print log for debugging wich is obtained by using the call print.

**Example**



a=5
print "a=" & a

Does anybody know how I can capture the data in that log for later use?

Marked as spam
Posted by (Questions: 63, Answers: 1)
Asked on July 24, 2012 3:54 pm
75 views
Answers (1)
5
Private answer

If you go to the file %temp%QTPrintLog.txt you can see all of the QuickTest Print logs. This will have complete history since this file was created. Recommend deleting this file before writing to file so that you do not get previous history usages.

Below is example code to delete log file.


Sub DelLog 
	Dim fso, MyFile
	Set fso = CreateObject(''Scripting.FileSystemObject'')
	Set MyFile = fso.GetFile(Environment(''SystemTempDir'') & ''QTPrintLog.txt'')
	MyFile.Delete
        Set MyFile = nothing
        Set fso = nothing
End Sub

Note: %temp% is the reference to the Environment variable which holds the value is the system temp directory.

Marked as spam
Posted by (Questions: 17, Answers: 5)
Answered on July 24, 2012 4:15 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top