Public variables in separate .vbs file??
Today I am spending a whole day doing an experiment of putting public variables into a separate .vbs file and have a separate .vbs file to storing functions/subs to initialize the public variables.
Here is what I do:
1. in QTP, call setup() to initialize the public variables
2. setup() contains a line Print Not globalBrowser Is Nothing and it returns True everytime
3. in the QTP test, I put the same line and I have a runtime error: Object Required
Does it mean variables stored in a separate file can only be initialized but not used in the actual QTP test?
I also wrote the following to do a simple test:
abc = "abc"
msgbox abc Is Nothing
And I got the same runtime error again. Am I doing anything wrong here?