How to create log file in qtp?
Answers were Sorted based on User's Feedback
Answer / naveen
Using CreateTextFile method of File System Object property.
we can create a log file and write the data into it.
Sub CreateAfile
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("c:\testfile.txt", True)
MyFile.WriteLine("This is a test.")
MyFile.Close
End Sub
Is This Answer Correct ? | 7 Yes | 4 No |
Answer / 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 |
How the smart identification is used in real time?Please explain with an example
difference Between LowLevel and Normal Recording Modes?
HOW DO U CALL A ACTION IN QTP?
Explain the benefits of quick test pro(qtp)?
what is object repository size?
How to connect to data base?
suppose there r 10 action in a test i want to execute action 5 to 10 how would i do that
Plz send one Tracebilitymatrix example? Anybody working on Realtime QTP Plz give contact deatils?
i have 2 year experience in manual and automation testing, I have less percentages in X, Xii (Second grade), can i elgible to TCS interview (Or MNC's)
what is the extension for QTP files?
16 Answers American Solutions,
How to use the object spy in quicktest professional (qtp) 8.0 version?
What are the Test design techniques you uses in ur project?