Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP and Excel - Performance
#1
Not Solved
Hi Folks,

I have built an automatical test with QTP that retrieves values in a excel file (on one line), checks those values in a web application and reports the results (OK/KO) into the processed excel line. The excel file is processed line by line.

I can see how fast the programm is running by observing how fast the excel line are fulfilled from top to bottom.

The strange thing is that i've observed that when as I was clicking the horizontal scroll bar of the excel window and maintaining the click on it (not releasing the left button), QTP would update the Excel file twice as fast (at least).

Am I clear ?

Is there anybody who could explain me why clicking on the scroll bar makes QTP perform better ? Do you have any idea of how I could improve my program so that it runs as fast as if I was clicking the Excel window ? If turn my excel application to Set ...Visible=No, would it change something ?

Notes :

- in QTP script my excel file is opened that way :
-----------------------------------------------

Code:
Nom_Xls = "C:\...\TESTS QTP\INPUT\Extract_OpenCat_Offres.xls"
Set ObjExcel = CreateObject("Excel.Application")
Set Classeur = ObjExcel.WorkBooks.open (Nom_Xls)
Set Onglet = Classeur.Worksheets("Extraction")
ObjExcel.Visible = TRUE

- The QTP script is launched by a vbs file :
-----------------------------------------

Code:
qtApp.Launch
qtApp.Visible = True
qtApp.Options.Run.RunMode = "Fast"
qtApp.Options.Run.ViewResults = True
qtApp.Open Test_path, True
Set qtTest = qtApp.Tt
qtTest.Run ' Run the test
Reply


Messages In This Thread
QTP and Excel - Performance - by Vandembergue - 11-29-2010, 09:30 PM
RE: QTP and Excel - Performance - by Saket - 11-30-2010, 10:42 AM
RE: QTP and Excel - Performance - by Vandembergue - 11-30-2010, 07:28 PM
RE: QTP and Excel - Performance - by Saket - 12-01-2010, 12:54 PM
RE: QTP and Excel - Performance - by Vandembergue - 12-01-2010, 03:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Performance Issues Using '.Exist' AndyBSG 2 3,216 12-12-2014, 03:24 PM
Last Post: AndyBSG
  QTP Performance is very slow rajaselvan.d 0 2,694 04-10-2012, 04:25 PM
Last Post: rajaselvan.d
Question Writing performance tests using QTP 9.2? pointguard888 1 2,953 02-23-2011, 08:00 PM
Last Post: basanth27
  QTP9.2 concurrent version performance TaraNavin 3 2,810 07-14-2010, 12:55 PM
Last Post: TaraNavin
  excel macro to open QTP from excel karthik1979_us 1 10,935 11-07-2009, 02:57 AM
Last Post: geethwind

Forum Jump:


Users browsing this thread: 1 Guest(s)