QTP parameter iteration times problem (619 Views)
Reply
Occasional Advisor
kernelkoder
Posts: 33
Registered: ‎12-11-2012
Message 1 of 4 (619 Views)
Accepted Solution

QTP parameter iteration times problem

i'm using qtp 9.2, I paramterized 2 parameter for user id, after run, the result only showed 1 iteration, no other result showed, i think it should run 2 times because i set 2 parameter for user id, what 's wrong?

 

Advisor
AkhileshTapdiya
Posts: 19
Registered: ‎10-18-2010
Message 2 of 4 (608 Views)

Re: QTP parameter iteration times problem

Hi,

 

There might be two problem which i can think -

1. Your first iteration is having some run time error so it can cause to execute second iteration or

2. Your Run setting may be selected to "Run only one iteration"

To change run setting, go to File -> Settings -> select Run option and change it to "Run on all rows" option.

 

I think it would help you.

 

Regards,

Akhilesh

Occasional Advisor
kernelkoder
Posts: 33
Registered: ‎12-11-2012
Message 3 of 4 (587 Views)

Re: QTP parameter iteration times problem

dear AkhileshTapdiya , thank you, i set that setting, problem solved

Occasional Visitor
bhasker_reddy
Posts: 2
Registered: ‎01-11-2014
Message 4 of 4 (426 Views)

Re: UFT 11.50 parameter iteration times problem

[ Edited ]

am importing a excel sheet into newly added sheet in UFT,and am adding one parameter dynamically to the newly created sheet in UFT using "Addparameter" method.then i use "getrowcount"...it returns the count number as 65536......

Here the thing is my excel sheet contains 2 parameters,for that two parameters i given 4 values for each...

*****my requirement is it returns the count number as 3 only

..................................................................

my code is here..

 

 

Datatable.AddSheet"new"

Datatable.ImportSheet"D:\TestData.xls","Inputs","new"

Datatable.GetSheet("new").Addparameter"result",""          //here am adding a parameter to datatable sheet "new"                                                                                                                                    dynamically with the name "result "and value as blank value

Rc=Datatable.GetSheet("new").GetRowCount

msgbox Rc

 

***NOTE: in this case am using UFT in windows7 os

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.