The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Unified Functional Testing Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with parameter iteration while using datatable method "addparameter"

Highlighted
bhasker_reddy
Acclaimed Contributor

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
Kunal_Zunjarrao
Acclaimed Contributor

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

Kunal_Zunjarrao
Acclaimed Contributor

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

//Add this to "OnDomLoad" event