Managing Function Names.
New to QTP.
We are starting to create a function library spread over many .vbs files. From what I understand, the names of the functions will have to be unique among all the .vbs files. As the number of functions we create grows I can forsee that eventually we are going to be running into naming conflicts. Does anyone have a good strategy to prevent this?
Also, I'm finding that when I look at a script that calls some of these functions, it is difficult to find where the functions comes from. Again, any suggestions?
I come from a java background, where these aren't really an issue and would appreciate any feedback.
Re: Managing Function Names.
I keep my VBS files in logical groups
I use NotePad++ to edit all the vbs stuff and you can view the list of functions and subs in each file.
Test_Master has all the high level tests this includes loop control and data.
System_Forms has all the form objects and conditional application flow.
Navigation holds common nav and object subs
General has all funny little subs
Global has all the Public vars
Excel has all the excel functions.