Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script work too slow..
#1
Not Solved
good day!
Help me please.

I have web page with big table (about 550 rows and 17 columns).
I want to put "inner text" of all cells of certain colum to DataTable.

At first I try to use this structure:
Code:
...
rn=1
For i = 2 To oWebTable.RowCount
    DataTable.SetCurrentRow(rn)
    DataTable.Value("A")=oWebTable.GetCellData(i,1)
    rn=rn+1
Next

it's work tooooooo slow Sad

then, I made function

Code:
Public Function getCellVal(byRef table, byRef col)

    set oTable = table.Object
    rn=1
    col = col-1

    For i=1 to table.rowcount-1
        set curCell=oTable.rows(i).cells(col)
        DataTable.SetCurrentRow(rn)
        
        DataTable.Value("A")=curCell.innertext
        
        rn=rn+1
        Next

End Function

It works about 5 minutes.
How can I force it to work faster?
..or, 5 minutes - it's normal time for QTP?

Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Action Response Times Slow kdunn 0 933 11-09-2018, 09:24 PM
Last Post: kdunn
  Same code on running with UFT11.5 gets slow and browser hangs but works fine inQTP11 Rashi 1 2,403 03-02-2013, 04:12 PM
Last Post: vinod123
  DP and called .vbs make for slow runtime wheelercha 0 1,837 01-05-2011, 02:39 AM
Last Post: wheelercha

Forum Jump:


Users browsing this thread: 1 Guest(s)