Anyone can give me a quick tip on accessing global var?
I defined in an .inc file
share String x
Then I say
x+ //once I load the string I want to read it in different test case
I am getting an error describing that var "must be accessed before referenced". I am referencing it in balh(), is this correct?
Are you doing multithreaded stuff? Otherwise I don't think you need those keywords: access/share. Just put your globals in an inc that you include into your "main". Then from your main you can call into into other scripts, which you also need to add includes for. All the testcases in main or in the scripts called from main will have visibility to your globals. Does that make sense? I think access/share are only for multithreaded concerns, but I may be wrong.
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.