Answer Posted / 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 |
Post New Answer View All Answers
What is the use of text output value in quicktest professional (qtp)?
images are dynamically changes how to compare two images with out using the bitmap
How to capture a window in QTP?
How to use conditional loops in qtp ?
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
Explain the concept of how quicktest professional identifies object?
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
how do u plan test automation?
What VBScript operators, functions, and statements do you use in QuickTest Professional?
What is a quick test professional?
how to convert 100 into hundred repees only and viceversa
What are the 3 main stages involved in testing with qtp?
What is the meaning Work bench?