Is it possible for Nunit to read a configuration file with information for test run (Release ID, etc...)

Wednesday, June 19, 2013 5:21:56 PM
Currently we are running automated tests in Nunit that are associated with test cases in a test set in SpiraTest.
In order to test different iterations, we need to recompile each time with an updated release ID, username, password, etc...
Is there any way to get Nunit to read these values from a configuration file?  We've reviewed the documentation online for Nunit, without any luck.

Thanks!
Matthew
3 Replies
Friday, June 21, 2013 2:00:44 PM
Avatar
re: mattvilleneuve on Wednesday, June 19, 2013 5:21:56 PM

Hi Matthew

We use the NUnit Add-In ourselves internally for SpiraTest and KronoDesk, what we do is have a separate .cs file that has the defined current release in a single page and then use that value as the attribute on the test cases. You could try using a .NET application settings member as the value instead and then it would read that from the App.config file. If that doesn't work for you, we can supply the source code to the add-in so that you can modify and recompile it to use an external file.

Regards

Adam

Tuesday, July 30, 2013 1:00:21 PM
Avatar
re: inflectra.adam on Friday, June 21, 2013
Hi Adam,

We're still having issues with this, can you please supply the source code so we can use the configuration file?

Thanks,
Matthew
Tuesday, August 13, 2013 1:43:56 PM
Avatar
re: mattvilleneuve on Tuesday, July 30, 2013

Hi Matthew

If you check the folders in the zipfile, it should actually contain the source code to the plugin?

Regards

Adam

Statistics
  • Started: Wednesday, June 19, 2013 5:21:56 PM
  • Last Reply: Tuesday, August 13, 2013 1:43:56 PM
  • Replies: 3
  • Views: 862