| || |
how to declare public variables??
Some of my scripts use the same variables. However if I decalre these variables in the public functions test script, QARUn doesn't recognize the variables and throws a syntax error. When I remove these variables and place them in the begining of my scripts, it works fine. Can anyone suggest how can I put all the variables in one file so that it's accessible to all my scripts. That way i don't have to go and make changes to the variables in each of my test scripts. The help in QARUN manual gives examples with Public variables but it doesn't work when I implement it in my script.
Re: how to declare public variables??
if i remember correctly you need to declare these variables as public in an include file i.e. a script that does not contain a sub main, and then include that filr in your script as follows:
'substitute "public_functions" with the name of your include file