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 is QTP testing process?
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
How many add-ins comes by default with qtp?
Hybrid framework supports Descriptive programming. Is it true?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
What are the different types of recording modes in qtp? Which will be used when?
How can i check items sorted or not in a weblist ? Give me the script for this...
Explain the concept of object repository and how qtp recognises objects?
How to use transactions in qtp?
what is review
What is qtp window?