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

Problem with parameter iteration while using datatable method "addparameter"

Highlighted
Occasional Visitor

Problem with parameter iteration while using datatable method "addparameter"

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

2 REPLIES
Frequent Visitor

Re: Problem with parameter iteration while using datatable method "addparameter"

Frequent Visitor

Re: Problem with parameter iteration while using datatable method "addparameter"