Thread

Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > Is it possible for Nunit ...

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

Wednesday, June 19, 2013
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
Adam SAdam S
re: Matthew G Villeneuve on Wednesday, June 19, 2013
Friday, June 21, 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

Matthew G VilleneuveMatthew G Villeneuve
re: Adam S on Friday, June 21, 2013
Tuesday, July 30, 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
Adam SAdam S
re: Matthew G Villeneuve on Tuesday, July 30, 2013
Tuesday, August 13, 2013

Hi Matthew

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

Regards

Adam

Tagged
Statistics
  • Started: 6/19/2013
  • Last Reply: 8/13/2013
  • Replies: 3
  • Views: 716
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.