Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DP and called .vbs make for slow runtime
01-05-2011, 02:39 AM
Post: #1
DP and called .vbs make for slow runtime

Need advice.
I've built a suite of test cases that operate from a framework of called public sub routines and descriptive programming that uses a variable to pass in the description at runtime.

Test Settings refernces the file of variables :

Example: Variable = Public Const Browser := "Title = Browser"

Action calls a public sub :

navigate()


Browser(Browser).click


ISSUES:
The issue is that to do anything in this method is about 10x slower than simply running the routines within the action.

My theory is that the fact that I am paasing in the variables(that hold the descriptions) to the sub routines at runtime is slowing the automation performance down. I tried using a dictionary object but when the sub routine is called I don't see the that the descriptions are being passed so the code fails. What can I do? I am doing it this way so that rather changing 100's of subroutines I can simply change 1 variable in one file.

Variables <---> 100 Sub routines

Any help is appreciated.

Thanks Charles
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  VBS to DLL to QTP ssco77 5 3,107 12-16-2011 01:21 PM
Last Post: prashants1
Exclamation how to Pass Optional Parameters in VBS? ShrikantBiradar3449 1 1,390 06-13-2011 03:12 AM
Last Post: Skepsis
  script work too slow.. jovik2003 0 328 06-23-2010 02:31 PM
Last Post: jovik2003
  QTP Actions in to vbs function anbarasu 2 1,143 04-05-2010 11:58 AM
Last Post: anbarasu
  set data from excel file in vbs devanggoel 0 810 03-08-2010 06:27 PM
Last Post: devanggoel

Forum Jump:


User(s) browsing this thread: 1 Guest(s)