datatable.Import("E:\Programming Samples\QTP
Samples\OrderNumbers.xls")

Asume we have 4 records in datatable
Code reads the 4 rows in the sheet ok, but does it 5 times?
It doesn't sound like closing the datasheet is the problem

Can we close the datasheet runtime ?

Answers were Sorted based on User's Feedback



datatable.Import("E:\Programming Samples\QTP Samples\OrderNumbers.xls") Asume we have..

Answer / nath .t

u have entered 5 records in datatable. may be u have
deleted after one record but u have n't deleted the row
that's why it's taking 5 times. if u delete what u have
removed data row then it will run 4 times only.

Is This Answer Correct ?    1 Yes 0 No

datatable.Import("E:\Programming Samples\QTP Samples\OrderNumbers.xls") Asume we have..

Answer / contacthari

Because the iteration counts needs to be set "run one iteration only" under run settings. If you have set it to "run on all rows". It will loop the run based on no of rows available.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, after run..........it shows the already exists. so how to enter random ro mmultiple names names into webedit box(company Name). without using DATATABLE THanks Ramesh

4 Answers   TCS,


How do you know the location Id of an object if you know its index id?

0 Answers  


if we made any changes in shared object repository how it reflects of others like our team members?

2 Answers   CTS,


How you can delete excel file in qtp?

0 Answers  


How to use debug tools?

0 Answers  






please tell me how to identify the index of the link in the web table .links are not constant.example i want to click the link in the inbox ,search the item and click the partcular mail.(mail links count is not constant)

1 Answers   IBM,


Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

0 Answers  


How to add a runtime parameter to a datasheet?

1 Answers   Crea,


Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot

3 Answers  


Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value

1 Answers   TCS,


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

0 Answers  


Explain types of exception handling and script for that?

2 Answers  


Categories