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 / jagdish
'For Excel
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
'Adding the workbook
Set objWorkbook = objExcel.Workbooks.Add
'Adding the text in the workbook in 1st row and 1st Column
objExcel.Cells(1, 1).Value = "Hi This is me Ashish"
'Saving the excel file
objWorkbook.SaveAs("D:\Sample.xls")
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is error and fault in terms of software quality?
What is quicktest professional (qtp)?
hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career
How does qtp identify gui object?
How to creating an output value using quicktest professional?
How you can find length of array in qtp?
what is defenetion of kiran can u tell me plz CVS, SVN
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
What are the check points can be inserted without recording?
What are the types of data tables in qtp?
Explain different recording modes?
I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api