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 / vijay
Set word = CreateObject("Word.Application")
Set doc = word.documents.Add
word.visible = True
word.selection.typetext " Open MSWord"
doc.saveAs "C:vin.doc"
word.quit
Set word = nothing
Set doc = nothing
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is Unicode Compatibility?
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
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
Explain the difference between check point and output value?
How to find Operating system information using QTP script?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
how to test Web application using QTP software
Object repositories types, which and when to use?
Where to use function or action?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
What is the difference between analog and low level recording?
How to get Traceability matrix from TD?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
How many scripts did you have?