i ve an excel in a QC folder. Thru my QTP script i want to
open that excel in runtime. I am running this script from
QC itself
Answer Posted / karishma
got to options and select folders tab and give path of the
folder where the excelsheet is present in QC
and then try out this:
x=PathFinder.Locate("Results.xls")
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
Set objWorkbook2 = objExcel.Workbooks.Open(x)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is QTP testing process?
What are the different recording modes and how do they work?
How to handle dynamic objects in quicktest professional?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
Where to use function or action?
I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!
Did the scripts need lot of maintenance? If yes, why?
Can we run test with out adding object in object repository? How it is possible?
What is file database?
Through array we can execute the testcase how ? give me example
when will you do debug your script? and explain that process?
How to analyzing test results using quicktest professional (qtp)?
How you are developing the script? Using record and play back or manual?
What is the difference between run time object and test object in QTP?
what is command for executing files?