How to access variables from a different modules?
Posted: Thu Dec 02, 2021 8:20 pm
If I do:
string variablename = "test.";
in one module, for example, "modulename.usercode.cs"
How could I call this variable in another module? I've tried doing modulename.variablename but that doesn't seem to work. And also I've tried doing TestSuite.Current.Parameters["parametername"] but it gives me the error: The given key was not present in the dictionary.
I'm pretty sure that I did the right parameter name though... Any advice, is there any other way to access a variable from another module? Thank you.
string variablename = "test.";
in one module, for example, "modulename.usercode.cs"
How could I call this variable in another module? I've tried doing modulename.variablename but that doesn't seem to work. And also I've tried doing TestSuite.Current.Parameters["parametername"] but it gives me the error: The given key was not present in the dictionary.
I'm pretty sure that I did the right parameter name though... Any advice, is there any other way to access a variable from another module? Thank you.