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 basic concept of quicktest professional (qtp)?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
How do you capture tooltip using QTP?
hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u
What is meant by Output Value in UFT?
How many types of recording modes in qtp? Which will be used when?
What is action split and the purpose of using this in qtp?
How to call a test from another test?
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
What are the factors on which script execution time is dependent?
what is meant by source control?
how to idetfy which test cases are automated?who will deside that plz tell me
How many types of recording modes in the qtp?
What is object spy in quicktest professional (qtp)?