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

Wednesday, June 19, 2013
Avatar
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
4 Replies
Friday, June 21, 2013
Avatar
re: mattvilleneuve Wednesday, June 19, 2013

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
Avatar
re: inflectra.david 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
Avatar
re: mattvilleneuve 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

Friday, August 31, 2018
Avatar
re: inflectra.david Tuesday, August 13, 2013

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, June 19, 2013
  • Last Reply: Friday, August 31, 2018
  • Replies: 4
  • Views: 2651