Problem with parameter iteration while using datatable method "addparameter" (157 Views)
Reply
Occasional Visitor
bhasker_reddy
Posts: 2
Registered: ‎01-11-2014
Message 1 of 1 (157 Views)

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

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.