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 / feroz
Dim objWord
Dim wrdDoc
set objword = CreateObject("Word.Application")
objword.visible = true
Set wrdDoc = objword.Documents.Add
wrdDoc.Range.InsertBefore "Hi Good Morning!"
wrdDoc.SaveAs "C:\Greetings.doc"
objword.quit
Set objword = nothing
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Does QTP record on Objects created on XWindows Environment?
Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
Connect to QC using AOM.
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
How QTP identify the system time that's changes every seconds?
What is object spy in quicktest professional?
what is the difference between the modular framework and datadriven frame work
Explain how qtp identifies objects?
how will load the object during runtime?
What is active screen?
What are the automation metrice in your project?
Explain types of output values?
How many types of actions are there in quicktest professional (qtp)?
How to build scripts that access data from external sources?