Global state objects
Posted: Fri Feb 24, 2012 6:49 pm
Hello,
I'm looking for where to store references to some .NET runtime objects which get initialized in the first module of the test suite, and are shared across all modules, up until the end of the test.
The main repository seems to be a proper place to store global variables like that. But repository vars seem to be limited to strings only, while I need to keep live objects in there. I'd hate creating a static member of the Program class. There should be a better way to share the state between modules.
I apologize if that's been answered before, could not find it.
Thanks,
Andrew.
I'm looking for where to store references to some .NET runtime objects which get initialized in the first module of the test suite, and are shared across all modules, up until the end of the test.
The main repository seems to be a proper place to store global variables like that. But repository vars seem to be limited to strings only, while I need to keep live objects in there. I'd hate creating a static member of the Program class. There should be a better way to share the state between modules.
I apologize if that's been answered before, could not find it.
Thanks,
Andrew.