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
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
Can any body please tell me the steps of keyword driven framework of QTP.
Explain different checkpoints in qtp.
Give the syntax to load function at run time.
What are the views available in quicktest professional (qtp)?
Hello friends..... On which areas of an application we can not test with QTP
can i compare two databases using QTP ?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
what is the difference between modular framework & datadriven framework
Tell me about qtp?
Define Environment Variable in UFT and its uses?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
Sql questions to find second max salary and how to use joins
How to remove the associated function library?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?