Hi. A lot of QTP/UFT testers love using the print log when creating and debugging automation scripts. This is why we have an awesome function for you that saves this print log to specific location.
1. Copy function below
Function fn_savePrintLog (strFullPath)
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.GetFile(Environment("SystemTempDir") & "\QTPrintLog.txt")
Set MyFile = Nothing
Set fso = Nothing
2. To use the function, just call the name and enter the path to where you want to save this print log!
Now go to the C drive and you can see that the log has been saved! Cool right? Let us know your thoughts and feedback below!! We love hearing what our users have to say.
Latest posts by Admin (see all)
- SQA QTP tutorial – WebList identified as a web element and how to select an item from this list - December 9, 2015
- Automation QTP tutorial-double clicking on any object - December 4, 2015
- Software Automation QTP tutorial – 5 top reasons for using automation - November 23, 2015