3.How to record a word doc using qtp i.e open a word
doc,type something and save the doc can someone send me the
code.
Answer Posted / ashish wadhwa
'For TextFile
'Creating a file system object
Dim objFSO
'Creating a text file object
Dim objTextFile
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("D:\SampleFile.txt"
,True)
objTextFile.Write("Sample Automation Example of saving text
file"
objTextFile.Close
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Output values? i want a practical example
How would you export a script from one pc to another in qtp?
How to export quicktest professional results to an .xls file?
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks
Can any suggest me what is exposure testing?
Discuss quicktest professional (qtp) environment?
How is UFT 11.5 version different from UFT 12.0?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
What is QTP and the use of QTP in TD?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
is it possible to add sheets to excel at runtime
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
Is QTP supports Unix. If yes, then how the test automation is done?
How to start recording using quicktest professional?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com