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 / chaitu
Dim word
Dim doc
Set word = CreateObject("Word.Application")
Set doc = word.documents.Add
word.visible = True
doc.selection.typetext " Open MSWord"
doc.saveAs "C:\chaitu.doc"
word.quit
Set word = nothing
Set doc = nothing
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
what are the utilities and drivers
How many add-ins comes by default with qtp?
Sql questions to find second max salary and how to use joins
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
What is quicktest professional (qtp window?
How to analyzing test results using quicktest professional (qtp)?
What is checkpoints for qtp?
What are private functions in QTP? How they can be called from the function library?
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
What is a recovery scenario?
What is the difference between call to existing action and copy of an action?
For which type of projects the iterative model is not suitable?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet