Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding rows to the DataTable
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
the idea was to load columns that match the raw data from loadrunner that I am gathering so I could extrapolate the page rendering time rather than having to cut rows and paste them into columns manually. the following solution worked:
Code:
Set ExcelApp = CreateObject("Excel.Application")
ExcelApp.Workbooks.Add
Set ExcelSheet = ExcelApp.ActiveSheet
...
While intIteration < 30
...  
MercuryTimers("Save").Start
Browser("WebBrowser").Page("WebPage").Link("Save").Click
Browser("WebBrowser").Page("WebPage").WebElement("Success").CheckProperty "visible", True, 30000
intSave= MercuryTimers("Save").Stop
...
Services.SetTransaction "Iteration",intIteration, Pass
labels = Array("Login", "Mainpage","Search", "Save", "Logout")
results = Array(intLogin, intMainpage, intSearch, intSave, intLogout)
For i=0 to 4
results(i) = results(i)/1000
ExcelSheet.Cells(intIteration,i+1).Value = results(i)
Services.SetTransaction labels(i), results(i), Pass
Next
...
Wend
...
ExcelSheet.SaveAs "C:\Automation Data\SingleUser.xls"
ExcelSheet.Application.Quit
Set ExcelSheet = Nothing
Reply


Messages In This Thread
Adding rows to the DataTable - by bdc - 02-07-2009, 06:56 AM
RE: Adding rows to the DataTable - by bdc - 02-07-2009, 07:10 AM
RE: Adding rows to the DataTable - by newqtp - 02-17-2009, 06:41 AM
RE: Adding rows to the DataTable - by bdc - 02-25-2009, 11:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question adding two conditions into a while statement lotos 4 5,087 11-10-2017, 04:49 AM
Last Post: lotos
  Uft: Adding a property to all ojects into Repository ProTester 0 1,358 06-09-2017, 12:48 AM
Last Post: ProTester
  How to Delete Rows with duplicate values in 1 columns in excel thru QTP. arpan 0 2,810 02-09-2015, 08:47 PM
Last Post: arpan
  adding an object to OR seven 1 2,658 02-17-2014, 02:23 PM
Last Post: basanth27
  How to access webtables without adding into Object Repository ramkumarad 7 9,674 12-30-2013, 07:38 PM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 1 Guest(s)