How to create log file in qtp?

Answer Posted / keerthykannan

Dim fso,objLogFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set objLogFile = fso.OpenTextFile ("C:\Log" &var
&".txt",2,true)
objLogFile.Writeline(time)
objLogFile.Close

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2655


what is object and child object.. explain ..if possible give some example for better understanding ..

1527


Have you faced any problems with object repository?

586


Why qtp the best testing tool?

558


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

1947






how to write xml output check point bu useing descriptive programing .means without useing output check point

1646


How many add-ins comes by default with quicktest professional (qtp)?

554


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1508


Name the different types of recording modes?

570


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1437


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1577


How to use the object spy in quicktest professional 8.0 version?

538


what is profile tool?

1599


How you can decide which type of object repository you have to use?

697


How to create runtime property for an object?

1441