Any thoughts as when to load .vbs ORs?
I am trying out a new approach to managing my ORs and was wondering if anyone could help decide where the most sensible stage is to load my objects.
Basically, the application I am testing has a series of different web pages. I am creating sepearate .vbs ORs for each page and also have another .vbs containing generic objects which appear on every page (e.g. Log out).
My scripts will then consist of a main action calling either reuseable actions or vbs functions (I haven't made my mind up which to use, I may use a combination). Therefore I have 2 places in which I can load the .vbs ORs.
1) Globally within the Test Settings Resources
2) Use "ExecuteFile" at the start of each function/action to just load the objects I need (e.g. For the login action, just load the login page OR)
Having an intial think, if I want to change the path of the OR folder, option 2 would allow me to just set up an environmental variable, where as option 1 would mean changing the Test Settings.
Any thoughts are appreciated.
Re: Any thoughts as when to load .vbs ORs?
Robbie using relative paths in the resources files can help when you move QTP scripts around.