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

I have test cases in excel sheet but i am using quality center.How can i copy the testcases from excel sheet to quality center?explain this process.

3 Answers   TCS,


How can we close all webbrowsers which are opened in out desktop?

3 Answers  


why we use sendkey method in qtp?

2 Answers   ABC,


what is the smart identification techniqu?what r the different mechanisums used in it?

0 Answers   Accenture,


What is the use of an object spy tool in qtp?

0 Answers  






please any one can explain the keyword driven framework. with gmail example.

0 Answers  


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

1 Answers  


Associated files in QTP?

1 Answers  


how will you check how many members visited the website www.infosys.com?

0 Answers   Logica CMG,


How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row.

3 Answers   Virtusa,


What is Parameterizing Tests?

1 Answers   Crea,


how to test background color and dynamic images during runtime

4 Answers   Accenture, Oracle,


Categories