I've decided to have the user add two global parameters to the test suite and provide a value for them, as opposed to them setting it directly from the code. Unfortunately these are not derived and must be provided directly.
To check for these parameters prior to test case execution, I've attached another custom handler to the TestSuiteStarted event where I simply throw in a check:
Code: Select all
If Not TestSuite.Current.Parameters.ContainsKey("Parm_Name") Then
I'd appreciate any suggestions or ideas. The only real constraints are that I'm trying to get this done at the TestSuite level so I don't have to worry about adding teardown modules and other such shenanigans.