Unified Functional Testing Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

QTP parameter iteration times problem

SOLVED
Go to Solution
Occasional Advisor

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?

 

1 ACCEPTED SOLUTION

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

3 REPLIES

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

Re: QTP parameter iteration times problem

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

Highlighted
Occasional Visitor

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