How to read test run settings parameter value in specflow tests?
问题 We use .runsettings file in visual studio for running specflow tests. There we have certain parameters configured. I need to access those parameter values at run time to use in specflow test methods. I tried accessing those via TestContext as below [ClassInitialize] public static void Initialize(TestContext testContext) { var value= Convert.ToString(testContext.Properties["testParameter1"]); } I am getting the exception for testcontext instance at run time as below. "System