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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / saranya
hi manoj,
Try this. Even I am doing the same thing for my application.
First connect your QTP to QC. Then open the code which you
have saved in QC in QTP. Click on Test->settings(in QTP9.2
it will be File->settings) -> click on resource tab . In
that you can see a frame called DataTable. In that select
the option "Other Location" and click on the browse icon
beside that option. It will display you all the excel
sheets in QC. Select your Excel sheet. Now autopmatically
the excel sheet will be embedded to your code in
runtime.You need not include any code for this excel sheet
in your main code. (But do take care of the sheet names in
the excel sheet. It should be correctly mentioned in your
code.)
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / manoj
with that code we can open a new excel or even open an
excel that is saved in our system
but i want to open an excel (which is saved in Mercury
Quality Center ) during run time.
is there any piece of code to download the excel from
Mercury Quality Center to local machine during runtime?
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / giridhar reddy
Hi
try this one, I am not giving you the whole syntax because
if you start analyze you will get more information on this
right? thats why...
SystemUtil.Run "excel",""
if you have any doubts let me know
| Is This Answer Correct ? | 2 Yes | 12 No |
What are output values and why they are used ?
What is the difference betweent test and component?
what is the difference btn risks & Therads in the Test plan documentation?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
Hi, Can anyone help me in esimating time for an application using QTP tool.. What factors should be considered while calculating the estimation time for QTP... Thanks in advance... Prasad Gali
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
0 Answers Magna Infotech, Oracle,
how to retrieve data from the data table (from a particular cell)
How to customize checkpoints with parameters?
Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).
What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.
what is the difference between data driver & data driven and driver script?