Using runsettings file when running NUnit tests via command line
问题 I created a runsettings file which looks like this <?xml version="1.0" encoding="utf-8"?> <RunSettings> <TestRunParameters> <Parameter name ="environment" value="PROD" /> </TestRunParameters> </RunSettings> And then in my TestSetup portion (using LeanFT for UI tests) I specify that the target environment is contained under a paramater called environment string env= TestContext.Parameters["environment"]; This doesnt seem to work, and I am not getting any particular error messages. Is this the