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



i ve an excel in a QC folder. Thru my QTP script i want to open that excel in runtime. I am runnin..

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

i ve an excel in a QC folder. Thru my QTP script i want to open that excel in runtime. I am runnin..

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

i ve an excel in a QC folder. Thru my QTP script i want to open that excel in runtime. I am runnin..

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

i ve an excel in a QC folder. Thru my QTP script i want to open that excel in runtime. I am runnin..

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

Post New Answer

More QTP Interview Questions

how to download mercury qtp9.2 ny internet ?

0 Answers  


Can I change properties of a test object?

0 Answers  


what is the test process followed for your project?

1 Answers   ADP, Satyam,


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  


What are the 3 main stages involved in testing with qtp?

0 Answers  






what are the attributes of QTP?

3 Answers  


For Data-Driven testing can you use micro soft word document instead of using Datatable what is your approach?

0 Answers   Nokia,


For example one window is there the window contain some of Check boxes but my question is how many check boxes are there particular window? Please solve the problem gi_raju@rediffmail.com ippaliraju@yahoo.co.in

3 Answers  


I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?

1 Answers   FAI,


How to add multiple values in rows, under a single column of a run time datatable?

3 Answers   NIIT,


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

0 Answers   iFocus,


cud anybody please tell me the full form's of the extention files that we use in real time---.tsr,.mtr,.qrs

7 Answers   Symphony,


Categories